Class CassandraPreparedStatement

java.lang.Object
org.eclipse.jnosql.databases.cassandra.communication.CassandraPreparedStatement

public class CassandraPreparedStatement extends Object
Wrapper class for PreparedStatement in JNoSQL. Allows execution of CQL queries and binding of parameters.
  • Method Details

    • executeQuery

      public Stream<org.eclipse.jnosql.communication.semistructured.CommunicationEntity> executeQuery()
      Executes the prepared statement as a query and returns the results as a stream of CommunicationEntity.
      Returns:
      a stream of CommunicationEntity containing the results of the query
    • bind

      public CassandraPreparedStatement bind(Object... values)
      Binds values to the prepared statement.
      Parameters:
      values - the values to bind
      Returns:
      this CassandraPreparedStatement instance
    • toString

      public String toString()
      Returns a string representation of this CassandraPreparedStatement.
      Overrides:
      toString in class Object
      Returns:
      a string representation of this CassandraPreparedStatement