public class SQLServerIdentityColumnSupport extends AbstractTransactSQLIdentityColumnSupport
Constructor and Description |
---|
SQLServerIdentityColumnSupport() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
appendIdentitySelectToInsert(java.lang.String insertSQL)
Use insert table(...) values(...) select SCOPE_IDENTITY()
Provided we
IdentityColumnSupport.supportsInsertSelectIdentity() , then attach the
"select identity" clause to the insert statement. |
getIdentityColumnString, getIdentitySelectString, supportsIdentityColumns, supportsInsertSelectIdentity
buildGetGeneratedKeysDelegate, getIdentityInsertString, hasDataTypeInIdentityColumn
public java.lang.String appendIdentitySelectToInsert(java.lang.String insertSQL)
IdentityColumnSupport.supportsInsertSelectIdentity()
, then attach the
"select identity" clause to the insert statement.
Note, if IdentityColumnSupport.supportsInsertSelectIdentity()
== false then
the insert-string should be returned without modification.appendIdentitySelectToInsert
in interface IdentityColumnSupport
appendIdentitySelectToInsert
in class AbstractTransactSQLIdentityColumnSupport
insertSQL
- The insert commandCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.