Class CassandraSqlTransaction
java.lang.Object
org.jumpmind.db.platform.cassandra.CassandraSqlTransaction
- All Implemented Interfaces:
ISqlTransaction
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> intvoidvoidallowInsertIntoAutoIncrementColumns(boolean value, Table table, String quote, String catalogSeparator, String schemaSeparator) Indicate that the current session is to allow updates to columns that have been marked as auto increment.voidvoidclose()voidcommit()intintflush()<T> List<T>getUnflushedMarkers(boolean clear) longinsertWithGeneratedKey(String sql, String column, String sequenceName, Object[] args, int[] types) booleanbooleanvoidEach time the SQL changes it needs to be submitted for preparationintprepareAndExecute(String sql, Object... args) intprepareAndExecute(String sql, Object[] args, int[] types) intprepareAndExecute(String sql, Map<String, Object> args) <T> List<T>query(String sql, ISqlRowMapper<T> mapper, Object[] args, int[] types) <T> List<T>intqueryForInt(String sql, Object... args) longqueryForLong(String sql, Object... args) <T> TqueryForObject(String sql, Class<T> clazz, Object... args) queryForRow(String sql, Object... args) voidrollback()voidsetInBatchMode(boolean batchMode)
-
Constructor Details
-
CassandraSqlTransaction
public CassandraSqlTransaction()
-
-
Method Details
-
addSqlTransactionListener
- Specified by:
addSqlTransactionListenerin interfaceISqlTransaction
-
isInBatchMode
public boolean isInBatchMode()- Specified by:
isInBatchModein interfaceISqlTransaction
-
setInBatchMode
public void setInBatchMode(boolean batchMode) - Specified by:
setInBatchModein interfaceISqlTransaction
-
queryForObject
- Specified by:
queryForObjectin interfaceISqlTransaction
-
queryForRow
- Specified by:
queryForRowin interfaceISqlTransaction
-
queryForInt
- Specified by:
queryForIntin interfaceISqlTransaction
-
queryForLong
- Specified by:
queryForLongin interfaceISqlTransaction
-
execute
- Specified by:
executein interfaceISqlTransaction
-
prepareAndExecute
- Specified by:
prepareAndExecutein interfaceISqlTransaction
-
prepareAndExecute
- Specified by:
prepareAndExecutein interfaceISqlTransaction
-
prepareAndExecute
- Specified by:
prepareAndExecutein interfaceISqlTransaction
-
query
- Specified by:
queryin interfaceISqlTransaction
-
query
- Specified by:
queryin interfaceISqlTransaction
-
commit
public void commit()- Specified by:
commitin interfaceISqlTransaction
-
rollback
public void rollback()- Specified by:
rollbackin interfaceISqlTransaction
-
close
public void close()- Specified by:
closein interfaceISqlTransaction
-
prepare
Description copied from interface:ISqlTransactionEach time the SQL changes it needs to be submitted for preparation- Specified by:
preparein interfaceISqlTransaction
-
addRow
- Specified by:
addRowin interfaceISqlTransaction
-
flush
public int flush()- Specified by:
flushin interfaceISqlTransaction
-
getUnflushedMarkers
- Specified by:
getUnflushedMarkersin interfaceISqlTransaction
-
allowInsertIntoAutoIncrementColumns
public void allowInsertIntoAutoIncrementColumns(boolean value, Table table, String quote, String catalogSeparator, String schemaSeparator) Description copied from interface:ISqlTransactionIndicate that the current session is to allow updates to columns that have been marked as auto increment. This is specific to SQL Server.- Specified by:
allowInsertIntoAutoIncrementColumnsin interfaceISqlTransaction
-
insertWithGeneratedKey
public long insertWithGeneratedKey(String sql, String column, String sequenceName, Object[] args, int[] types) - Specified by:
insertWithGeneratedKeyin interfaceISqlTransaction
-
isAllowInsertIntoAutoIncrement
public boolean isAllowInsertIntoAutoIncrement()- Specified by:
isAllowInsertIntoAutoIncrementin interfaceISqlTransaction
-
clearBatch
public void clearBatch()- Specified by:
clearBatchin interfaceISqlTransaction
-