Class CassandraSqlTransaction
java.lang.Object
org.jumpmind.db.platform.cassandra.CassandraSqlTransaction
- All Implemented Interfaces:
ISqlTransaction
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> int
void
void
allowInsertIntoAutoIncrementColumns
(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.void
void
close()
void
commit()
int
int
flush()
<T> List<T>
getUnflushedMarkers
(boolean clear) long
insertWithGeneratedKey
(String sql, String column, String sequenceName, Object[] args, int[] types) boolean
boolean
void
Each time the SQL changes it needs to be submitted for preparationint
prepareAndExecute
(String sql, Object... args) int
prepareAndExecute
(String sql, Object[] args, int[] types) int
prepareAndExecute
(String sql, Map<String, Object> args) <T> List<T>
query
(String sql, ISqlRowMapper<T> mapper, Object[] args, int[] types) <T> List<T>
int
queryForInt
(String sql, Object... args) long
queryForLong
(String sql, Object... args) <T> T
queryForObject
(String sql, Class<T> clazz, Object... args) queryForRow
(String sql, Object... args) void
rollback()
void
setInBatchMode
(boolean batchMode)
-
Constructor Details
-
CassandraSqlTransaction
public CassandraSqlTransaction()
-
-
Method Details
-
addSqlTransactionListener
- Specified by:
addSqlTransactionListener
in interfaceISqlTransaction
-
isInBatchMode
public boolean isInBatchMode()- Specified by:
isInBatchMode
in interfaceISqlTransaction
-
setInBatchMode
public void setInBatchMode(boolean batchMode) - Specified by:
setInBatchMode
in interfaceISqlTransaction
-
queryForObject
- Specified by:
queryForObject
in interfaceISqlTransaction
-
queryForRow
- Specified by:
queryForRow
in interfaceISqlTransaction
-
queryForInt
- Specified by:
queryForInt
in interfaceISqlTransaction
-
queryForLong
- Specified by:
queryForLong
in interfaceISqlTransaction
-
execute
- Specified by:
execute
in interfaceISqlTransaction
-
prepareAndExecute
- Specified by:
prepareAndExecute
in interfaceISqlTransaction
-
prepareAndExecute
- Specified by:
prepareAndExecute
in interfaceISqlTransaction
-
prepareAndExecute
- Specified by:
prepareAndExecute
in interfaceISqlTransaction
-
query
- Specified by:
query
in interfaceISqlTransaction
-
query
- Specified by:
query
in interfaceISqlTransaction
-
commit
public void commit()- Specified by:
commit
in interfaceISqlTransaction
-
rollback
public void rollback()- Specified by:
rollback
in interfaceISqlTransaction
-
close
public void close()- Specified by:
close
in interfaceISqlTransaction
-
prepare
Description copied from interface:ISqlTransaction
Each time the SQL changes it needs to be submitted for preparation- Specified by:
prepare
in interfaceISqlTransaction
-
addRow
- Specified by:
addRow
in interfaceISqlTransaction
-
flush
public int flush()- Specified by:
flush
in interfaceISqlTransaction
-
getUnflushedMarkers
- Specified by:
getUnflushedMarkers
in interfaceISqlTransaction
-
allowInsertIntoAutoIncrementColumns
public void allowInsertIntoAutoIncrementColumns(boolean value, Table table, String quote, String catalogSeparator, String schemaSeparator) Description copied from interface:ISqlTransaction
Indicate 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:
allowInsertIntoAutoIncrementColumns
in interfaceISqlTransaction
-
insertWithGeneratedKey
public long insertWithGeneratedKey(String sql, String column, String sequenceName, Object[] args, int[] types) - Specified by:
insertWithGeneratedKey
in interfaceISqlTransaction
-
isAllowInsertIntoAutoIncrement
public boolean isAllowInsertIntoAutoIncrement()- Specified by:
isAllowInsertIntoAutoIncrement
in interfaceISqlTransaction
-
clearBatch
public void clearBatch()- Specified by:
clearBatch
in interfaceISqlTransaction
-