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, supportsInsertSelectIdentitybuildGetGeneratedKeysDelegate, getIdentityInsertString, hasDataTypeInIdentityColumnpublic 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 IdentityColumnSupportappendIdentitySelectToInsert in class AbstractTransactSQLIdentityColumnSupportinsertSQL - The insert commandCopyright © 2001-2022 Red Hat, Inc. All Rights Reserved.