primaryKeyViolationCodes
protected int[] primaryKeyViolationCodes
ISqlTemplateDb2JdbcSqlTemplate, DerbyJdbcSqlTemplate, FirebirdJdbcSqlTemplate, GenericJdbcSqlTemplate, H2JdbcSqlTemplate, HanaSqlJdbcSqlTemplate, HsqlDb2JdbcSqlTemplate, HsqlDbJdbcSqlTemplate, InformixJdbcSqlTemplate, IngresJdbcSqlTemplate, InterbaseJdbcSqlTemplate, MsSqlJdbcSqlTemplate, MySqlJdbcSqlTemplate, NuoDbJdbcSqlTemplate, OracleJdbcSqlTemplate, PostgreSqlJdbcSqlTemplate, RaimaJdbcSqlTemplate, RedshiftJdbcSqlTemplate, SqliteJdbcSqlTemplate, SybaseJdbcSqlTemplate, VoltDbJdbcSqlTemplateprotected DataSourceprotected int[]protected String[]protected int[]protected String[]protected int[]protected String[]protected String[]protected int[]protected String[]protected String[]protected booleanprotected intprotected SymmetricLobHandlerprotected int[]protected String[]protected int[]protected String[]protected int[]protected String[]protected String[]protected booleanprotected SqlTemplateSettingsprotected Booleanprotected String[]dateOverrideToTimestamp, identifierQuoteString, logSqlBuilderJdbcSqlTemplate(DataSource dataSource,
SqlTemplateSettings settings,
SymmetricLobHandler lobHandler,
DatabaseInfo databaseInfo) protected booleanstatic voidclose(boolean autoCommitValue,
int transactionIsolationLevel,
Connection c) static voidclose(boolean autoCommitValue,
Connection c) static voidclose(Connection c) static voidstatic voidstatic voidbooleanbooleanvoiddoSetValue(PreparedStatement ps,
int parameterPosition,
Object argValue) <T> Texecute(IConnectionCallback<T> callback) protected SQLExceptionprotected Connectionintintint<T> TgetObjectFromResultSet(ResultSet rs,
Class<T> clazz) static ObjectgetResultSetValue(ResultSet rs,
int index,
boolean readStringsAsBytes) static ObjectgetResultSetValue(ResultSet rs,
ResultSetMetaData metaData,
int index,
boolean readStringsAsBytes,
boolean returnLobObjects) protected StringgetSelectLastInsertIdSql(String sequenceName) protected intgetUpdateCount(Statement stmt) longinsertWithGeneratedKey(String sql,
String column,
String sequenceName,
Object[] args,
int[] types) protected longinsertWithGeneratedKey(Connection conn,
String sql,
String column,
String sequenceName,
Object[] args,
int[] types) booleanbooleanisDeadlock(Throwable ex) booleanbooleanbooleanbooleanbooleanbooleanbooleanstatic StringlookupColumnName(ResultSetMetaData resultSetMetaData,
int columnIndex) byte[]queryForBlob(String sql,
int jdbcTypeCode,
String jdbcTypeName,
Object... args) byte[]queryForBlob(String sql,
Object... args) queryForClob(String sql,
int jdbcTypeCode,
String jdbcTypeName,
Object... args) queryForClob(String sql,
Object... args) <T> ISqlReadCursor<T>queryForCursor(String sql,
ISqlRowMapper<T> mapper,
boolean returnLobObjects) <T> ISqlReadCursor<T>queryForCursor(String sql,
ISqlRowMapper<T> mapper,
Object[] args,
int[] types) <T> ISqlReadCursor<T>queryForCursor(String sql,
ISqlRowMapper<T> mapper,
IConnectionHandler connectionHandler,
Object[] args,
int[] types) <T> ISqlReadCursor<T>queryForCursor(String sql,
ISqlRowMapper<T> mapper,
IConnectionHandler connectionHandler,
Object[] args,
int[] types,
boolean returnLobObjects) queryForMap(String sql,
Object... args) <T> TqueryForObject(String sql,
Class<T> clazz,
Object... args) protected voidsetDecimalValue(PreparedStatement ps,
int i,
Object arg,
int argType) voidsetIsolationLevel(int isolationLevel) protected voidsetNanOrNull(PreparedStatement ps,
int i,
Object arg,
int argType) voidsetSettings(SqlTemplateSettings settings) protected voidsetTinyIntValue(PreparedStatement ps,
int i,
Object arg,
int argType) voidsetValues(PreparedStatement ps,
Object[] args) voidsetValues(PreparedStatement ps,
Object[] args,
int[] argTypes,
org.springframework.jdbc.support.lob.LobHandler lobHandler) startSqlTransaction(boolean autoCommit) booleanbooleanvoidintupdate(boolean autoCommit,
boolean failOnError,
boolean failOnDrops,
boolean failOnSequenceCreate,
int commitRate,
ISqlResultsListener resultsListener,
ISqlStatementSource source) intintupdate(boolean autoCommit,
boolean failOnError,
int commitRate,
ISqlResultsListener resultsListener,
String... sql) intprotected intverifyArgType(Object arg,
int argType) 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, updateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitquery, query, query, query, query, query, query, query, query, query, queryForCursor, queryForCursor, queryForInt, queryForInt, queryForLong, queryForMap, queryForMap, queryForObject, queryForRow, queryForString, queryWithHandler, translate, updateSQLExceptionqueryForCursor in interface ISqlTemplatequeryForCursor in interface ISqlTemplatequeryForCursor in class AbstractSqlTemplatequeryForCursor in interface ISqlTemplatequeryForCursor in class AbstractSqlTemplatequeryForObject in interface ISqlTemplatequeryForBlob in interface ISqlTemplatequeryForClob in interface ISqlTemplatequeryForMap in interface ISqlTemplatestartSqlTransaction in interface ISqlTemplatestartSqlTransaction in interface ISqlTemplateSQLExceptionupdate in interface ISqlTemplateupdate in interface ISqlTemplateupdate in interface ISqlTemplateupdate in interface ISqlTemplatetestConnection in interface ISqlTemplateThis method implementation takes into account recent clarifications expressed in the JDBC 4.0 specification:
columnLabel - the label for the column specified with the SQL AS clause. If the SQL AS clause was not specified, then the label is the name of the column.
resultSetMetaData - the current meta data to usecolumnIndex - the index of the column for the look upSQLException - in case of lookup failureSQLException
Uses the getObject(index) method, but includes additional "hacks" to get around Oracle 10g returning a non-standard object for its TIMESTAMP
datatype and a java.sql.Date for DATE columns leaving out the time portion: These columns will explicitly be extracted as standard
java.sql.Timestamp object.
rs - is the ResultSet holding the datametaData - index - is the column indexreadStringsAsBytes - TODOSQLException - if thrown by the JDBC APIgetDatabaseMajorVersion in interface ISqlTemplategetDatabaseMinorVersion in interface ISqlTemplategetDatabaseProductName in interface ISqlTemplateisStoresMixedCaseQuotedIdentifiers in interface ISqlTemplateisStoresUpperCaseIdentifiers in interface ISqlTemplateisStoresLowerCaseIdentifiers in interface ISqlTemplategetDatabaseProductVersion in interface ISqlTemplategetDriverName in interface ISqlTemplategetDriverVersion in interface ISqlTemplategetSqlKeywords in interface ISqlTemplatesupportsGetGeneratedKeys in interface ISqlTemplateinsertWithGeneratedKey in interface ISqlTemplateSQLExceptionisUniqueKeyViolation in interface ISqlTemplateisForeignKeyViolation in interface ISqlTemplateisForeignKeyChildExistsViolation in interface ISqlTemplateisForeignKeyChildExistsViolation in class AbstractSqlTemplateisDeadlock in interface ISqlTemplateisDeadlock in class AbstractSqlTemplateisDataTruncationViolation in interface ISqlTemplatedoesObjectAlreadyExist in interface ISqlTemplatedoesObjectAlreadyExist in class AbstractSqlTemplatedoesObjectNotExist in interface ISqlTemplatedoesObjectNotExist in class AbstractSqlTemplateSQLExceptionSQLExceptionSQLExceptionSQLExceptionSQLExceptionSQLExceptionps - the PreparedStatementparameterPosition - index of the parameter positionargValue - the value to setSQLExceptiongetUniqueKeyViolationIndexName in interface ISqlTemplategetUniqueKeyViolationIndexName in class AbstractSqlTemplate