public class SQLServerIdentityColumnSupport extends AbstractTransactSQLIdentityColumnSupport
Constructor and Description |
---|
SQLServerIdentityColumnSupport() |
Modifier and Type | Method and Description |
---|---|
String |
appendIdentitySelectToInsert(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 String appendIdentitySelectToInsert(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 © 2019 JBoss by Red Hat. All rights reserved.