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, isEmptyStringNulled, isolationLevel, lobHandler, objectAlreadyExistsCodes, objectAlreadyExistsStates, objectDoesNotExistCodes, objectDoesNotExistStates, primaryKeyViolationCodes, primaryKeyViolationMessageParts, primaryKeyViolationSqlStates, requiresAutoCommitFalseToSetFetchSize, settings, supportsGetGeneratedKeys, uniqueKeyViolationNameRegex
Fields 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 TypeMethodDescriptionint
protected long
insertWithGeneratedKey
(Connection conn, String sql, String column, String sequenceName, Object[] args, int[] types) boolean
protected void
setTinyIntValue
(PreparedStatement ps, int i, Object arg, int argType) boolean
protected int
verifyArgType
(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, update
Methods 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, update
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
isUniqueKeyViolation
in interfaceISqlTemplate
- Overrides:
isUniqueKeyViolation
in classJdbcSqlTemplate
-
getIsolationLevel
public int getIsolationLevel()- Overrides:
getIsolationLevel
in classJdbcSqlTemplate
-
startSqlTransaction
- Specified by:
startSqlTransaction
in interfaceISqlTemplate
- Overrides:
startSqlTransaction
in classJdbcSqlTemplate
-
setTinyIntValue
protected void setTinyIntValue(PreparedStatement ps, int i, Object arg, int argType) throws SQLException - Overrides:
setTinyIntValue
in classJdbcSqlTemplate
- Throws:
SQLException
-
verifyArgType
- Overrides:
verifyArgType
in classJdbcSqlTemplate
-
supportsGetGeneratedKeys
public boolean supportsGetGeneratedKeys()- Specified by:
supportsGetGeneratedKeys
in interfaceISqlTemplate
- Overrides:
supportsGetGeneratedKeys
in classJdbcSqlTemplate
-
insertWithGeneratedKey
protected long insertWithGeneratedKey(Connection conn, String sql, String column, String sequenceName, Object[] args, int[] types) throws SQLException - Overrides:
insertWithGeneratedKey
in classJdbcSqlTemplate
- Throws:
SQLException
-