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, uniqueKeyViolationNameRegexFields 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 longinsertWithGeneratedKey(Connection conn, String sql, String column, String sequenceName, Object[] args, int[] types) booleanbooleanMethods 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, verifyArgTypeMethods 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
-
GenericJdbcSqlTemplate
public GenericJdbcSqlTemplate(DataSource dataSource, SqlTemplateSettings settings, SymmetricLobHandler lobHandler, DatabaseInfo databaseInfo)
-
-
Method Details
-
isUniqueKeyViolation
- Specified by:
isUniqueKeyViolationin interfaceISqlTemplate- Overrides:
isUniqueKeyViolationin 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
-