public class CassandraConnectionImpl extends BasicConnection implements CassandraConnection
| Constructor and Description |
|---|
CassandraConnectionImpl(CassandraManagedConnectionFactory config) |
CassandraConnectionImpl(CassandraManagedConnectionFactory config,
com.datastax.driver.core.Metadata metadata) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
com.datastax.driver.core.ResultSetFuture |
executeBatch(List<String> updates)
Execute a batch of updates
|
com.datastax.driver.core.ResultSetFuture |
executeBatch(String update,
List<Object[]> values)
Execute a bulk update
|
com.datastax.driver.core.ResultSetFuture |
executeQuery(String query)
Executes a CQL query.
|
com.datastax.driver.core.VersionNumber |
getVersion()
Get the version in use for this connection
|
boolean |
isAlive()
Tests the connection to see if it is still valid.
|
com.datastax.driver.core.KeyspaceMetadata |
keyspaceInfo()
Returns metadata about Cassandra keyspace (column families, columns metadata etc.)
|
cleanUp, createInteraction, getLocalTransaction, getMetaData, getResultSetInfo, getXAResourcepublic CassandraConnectionImpl(CassandraManagedConnectionFactory config, com.datastax.driver.core.Metadata metadata)
public CassandraConnectionImpl(CassandraManagedConnectionFactory config)
public void close()
throws javax.resource.ResourceException
close in interface javax.resource.cci.Connectionjavax.resource.ResourceExceptionpublic boolean isAlive()
BasicConnectionisAlive in class BasicConnectionpublic com.datastax.driver.core.ResultSetFuture executeQuery(String query)
CassandraConnectionexecuteQuery in interface CassandraConnectionpublic com.datastax.driver.core.ResultSetFuture executeBatch(List<String> updates)
CassandraConnectionexecuteBatch in interface CassandraConnectionpublic com.datastax.driver.core.ResultSetFuture executeBatch(String update, List<Object[]> values)
CassandraConnectionexecuteBatch in interface CassandraConnectionpublic com.datastax.driver.core.KeyspaceMetadata keyspaceInfo()
throws javax.resource.ResourceException
CassandraConnectionkeyspaceInfo in interface CassandraConnectionjavax.resource.ResourceExceptionpublic com.datastax.driver.core.VersionNumber getVersion()
CassandraConnectiongetVersion in interface CassandraConnectionCopyright © 2017 JBoss by Red Hat. All rights reserved.