public class SQLServerIdentityColumnSupport extends AbstractTransactSQLIdentityColumnSupport
| Constructor and Description |
|---|
SQLServerIdentityColumnSupport() |
| Modifier and Type | Method and Description |
|---|---|
String |
appendIdentitySelectToInsert(String insertSQL)
Use <tt>insert table(…) values(…) select SCOPE_IDENTITY()</tt>
<p/>
Provided we
IdentityColumnSupport.supportsInsertSelectIdentity(), then attach the
"select identity" clause to the insert statement. |
getIdentityColumnString, getIdentitySelectString, supportsIdentityColumns, supportsInsertSelectIdentitybuildGetGeneratedKeysDelegate, getIdentityInsertString, hasDataTypeInIdentityColumnpublic String appendIdentitySelectToInsert(String insertSQL)
Use <tt>insert table(…) values(…) select SCOPE_IDENTITY()</tt> <p/>
Provided we IdentityColumnSupport.supportsInsertSelectIdentity(), then attach the
"select identity" clause to the insert statement.
<p/>
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-2018 Red Hat, Inc. All Rights Reserved.