Package org.jumpmind.db.sql
Interface ISqlTransaction
- All Known Implementing Classes:
AseJdbcSqlTransaction,CassandraSqlTransaction,H2JdbcSqlTransaction,JdbcSqlTransaction,MsSqlJdbcSqlTransaction
public interface ISqlTransaction
-
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)
-
Method Details
-
addSqlTransactionListener
-
isInBatchMode
boolean isInBatchMode() -
setInBatchMode
void setInBatchMode(boolean batchMode) -
queryForObject
-
queryForRow
-
queryForInt
-
queryForLong
-
execute
-
prepareAndExecute
-
prepareAndExecute
-
prepareAndExecute
-
query
-
query
-
commit
void commit() -
rollback
void rollback() -
close
void close() -
prepare
Each time the SQL changes it needs to be submitted for preparation -
addRow
-
flush
int flush() -
getUnflushedMarkers
-
allowInsertIntoAutoIncrementColumns
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. This is specific to SQL Server. -
isAllowInsertIntoAutoIncrement
boolean isAllowInsertIntoAutoIncrement() -
insertWithGeneratedKey
-
clearBatch
void clearBatch()
-