Package org.jumpmind.db.platform.voltdb
Class VoltDbJdbcSqlTemplate
java.lang.Object
org.jumpmind.db.sql.AbstractSqlTemplate
org.jumpmind.db.sql.JdbcSqlTemplate
org.jumpmind.db.platform.voltdb.VoltDbJdbcSqlTemplate
- All Implemented Interfaces:
ISqlTemplate
-
Field Summary
Fields inherited from class org.jumpmind.db.sql.JdbcSqlTemplate
dataSource, dataTruncationCodes, dataTruncationStates, deadlockCodes, deadlockSqlStates, foreignKeyChildExistsViolationCodes, foreignKeyChildExistsViolationMessageParts, foreignKeyChildExistsViolationSqlStates, foreignKeyViolationCodes, foreignKeyViolationMessageParts, foreignKeyViolationSqlStates, isolationLevel, lobHandler, objectAlreadyExistsCodes, objectAlreadyExistsStates, objectDoesNotExistCodes, objectDoesNotExistStates, primaryKeyViolationCodes, primaryKeyViolationMessageParts, primaryKeyViolationSqlStates, requiresAutoCommitFalseToSetFetchSize, settings, supportsGetGeneratedKeys, uniqueKeyViolationNameRegexFields inherited from class org.jumpmind.db.sql.AbstractSqlTemplate
dateOverrideToTimestamp, identifierQuoteString, logSqlBuilder -
Constructor Summary
ConstructorsConstructorDescriptionVoltDbJdbcSqlTemplate(DataSource dataSource, SqlTemplateSettings settings, SymmetricLobHandler lobHandler, DatabaseInfo databaseInfo) -
Method Summary
Modifier and TypeMethodDescriptionintprotected longinsertWithGeneratedKey(Connection conn, String sql, String column, String sequenceName, Object[] args, int[] types) booleanprotected voidsetTinyIntValue(PreparedStatement ps, int i, Object arg, int argType) booleanprotected intverifyArgType(Object arg, int argType) Methods inherited from class org.jumpmind.db.sql.JdbcSqlTemplate
allowsNullForIdentityColumn, close, close, close, close, close, close, doesObjectAlreadyExist, doesObjectNotExist, doSetValue, execute, findSQLException, getConnection, getDatabaseMajorVersion, getDatabaseMinorVersion, getDatabaseProductName, getDatabaseProductVersion, getDataSource, getDriverName, getDriverVersion, getLobHandler, getObjectFromResultSet, getResultSetValue, getResultSetValue, getSelectLastInsertIdSql, getSettings, getSqlKeywords, getUniqueKeyViolationIndexName, getUpdateCount, insertWithGeneratedKey, isDataTruncationViolation, isDeadlock, isForeignKeyChildExistsViolation, isForeignKeyViolation, isRequiresAutoCommitFalseToSetFetchSize, isStoresLowerCaseIdentifiers, isStoresMixedCaseQuotedIdentifiers, isStoresUpperCaseIdentifiers, lookupColumnName, queryForBlob, queryForBlob, queryForClob, queryForClob, queryForCursor, queryForCursor, queryForCursor, queryForCursor, queryForMap, queryForObject, setDecimalValue, setIsolationLevel, setNanOrNull, setSettings, setValues, setValues, startSqlTransaction, supportsReturningKeys, testConnection, update, update, update, updateMethods inherited from class org.jumpmind.db.sql.AbstractSqlTemplate
expandArgs, expandSql, query, query, query, query, query, query, query, query, query, query, query, query, queryForCursor, queryForCursor, queryForInt, queryForInt, queryForLong, queryForMap, queryForMap, queryForObject, queryForRow, queryForString, queryWithHandler, translate, translate, updateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jumpmind.db.sql.ISqlTemplate
query, query, query, query, query, query, query, query, query, query, queryForCursor, queryForCursor, queryForInt, queryForInt, queryForLong, queryForMap, queryForMap, queryForObject, queryForRow, queryForString, queryWithHandler, translate, update
-
Constructor Details
-
VoltDbJdbcSqlTemplate
public VoltDbJdbcSqlTemplate(DataSource dataSource, SqlTemplateSettings settings, SymmetricLobHandler lobHandler, DatabaseInfo databaseInfo)
-
-
Method Details
-
isUniqueKeyViolation
- Specified by:
isUniqueKeyViolationin interfaceISqlTemplate- Overrides:
isUniqueKeyViolationin classJdbcSqlTemplate
-
getIsolationLevel
public int getIsolationLevel()- Overrides:
getIsolationLevelin classJdbcSqlTemplate
-
startSqlTransaction
- Specified by:
startSqlTransactionin interfaceISqlTemplate- Overrides:
startSqlTransactionin classJdbcSqlTemplate
-
setTinyIntValue
protected void setTinyIntValue(PreparedStatement ps, int i, Object arg, int argType) throws SQLException - Overrides:
setTinyIntValuein classJdbcSqlTemplate- Throws:
SQLException
-
verifyArgType
- Overrides:
verifyArgTypein classJdbcSqlTemplate
-
supportsGetGeneratedKeys
public boolean supportsGetGeneratedKeys()- Specified by:
supportsGetGeneratedKeysin interfaceISqlTemplate- Overrides:
supportsGetGeneratedKeysin classJdbcSqlTemplate
-
insertWithGeneratedKey
protected long insertWithGeneratedKey(Connection conn, String sql, String column, String sequenceName, Object[] args, int[] types) throws SQLException - Overrides:
insertWithGeneratedKeyin classJdbcSqlTemplate- Throws:
SQLException
-