Package org.jumpmind.db.platform.generic
Class GenericJdbcSqlTemplate
java.lang.Object
org.jumpmind.db.sql.AbstractSqlTemplate
org.jumpmind.db.sql.JdbcSqlTemplate
org.jumpmind.db.platform.generic.GenericJdbcSqlTemplate
- 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
ConstructorsConstructorDescriptionGenericJdbcSqlTemplate
(DataSource dataSource, SqlTemplateSettings settings, SymmetricLobHandler lobHandler, DatabaseInfo databaseInfo) -
Method Summary
Modifier and TypeMethodDescriptionprotected long
insertWithGeneratedKey
(Connection conn, String sql, String column, String sequenceName, Object[] args, int[] types) boolean
boolean
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, getIsolationLevel, 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, setTinyIntValue, setValues, setValues, startSqlTransaction, startSqlTransaction, supportsReturningKeys, testConnection, update, update, update, update, verifyArgType
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
-
GenericJdbcSqlTemplate
public GenericJdbcSqlTemplate(DataSource dataSource, SqlTemplateSettings settings, SymmetricLobHandler lobHandler, DatabaseInfo databaseInfo)
-
-
Method Details
-
isUniqueKeyViolation
- Specified by:
isUniqueKeyViolation
in interfaceISqlTemplate
- Overrides:
isUniqueKeyViolation
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
-