public class AbstractTransactSQLIdentityColumnSupport extends IdentityColumnSupportImpl
| Constructor and Description | 
|---|
AbstractTransactSQLIdentityColumnSupport()  | 
| Modifier and Type | Method and Description | 
|---|---|
String | 
appendIdentitySelectToInsert(String insertSQL)
Provided we  
IdentityColumnSupport.supportsInsertSelectIdentity(), then attach the
 "select identity" clause to the  insert statement. | 
String | 
getIdentityColumnString(int type)
The syntax used during DDL to define a column as being an IDENTITY of
 a particular type. 
 | 
String | 
getIdentitySelectString(String table,
                       String column,
                       int type)
Get the select command to use to retrieve the last generated IDENTITY
 value for a particular table 
 | 
boolean | 
supportsIdentityColumns()
Does this dialect support identity column key generation? 
 | 
boolean | 
supportsInsertSelectIdentity()
Does the dialect support some form of inserting and selecting
 the generated IDENTITY value all in the same statement. 
 | 
buildGetGeneratedKeysDelegate, getIdentityInsertString, hasDataTypeInIdentityColumnpublic AbstractTransactSQLIdentityColumnSupport()
public boolean supportsIdentityColumns()
IdentityColumnSupportsupportsIdentityColumns in interface IdentityColumnSupportsupportsIdentityColumns in class IdentityColumnSupportImplpublic String getIdentityColumnString(int type) throws MappingException
IdentityColumnSupportgetIdentityColumnString in interface IdentityColumnSupportgetIdentityColumnString in class IdentityColumnSupportImpltype - The Types type code.MappingException - If IDENTITY generation is not supported.public String getIdentitySelectString(String table, String column, int type) throws MappingException
IdentityColumnSupportgetIdentitySelectString in interface IdentityColumnSupportgetIdentitySelectString in class IdentityColumnSupportImpltable - The table into which the insert was donecolumn - The PK column.type - The Types type code.MappingException - If IDENTITY generation is not supported.public boolean supportsInsertSelectIdentity()
IdentityColumnSupportsupportsInsertSelectIdentity in interface IdentityColumnSupportsupportsInsertSelectIdentity in class IdentityColumnSupportImplpublic String appendIdentitySelectToInsert(String insertSQL)
IdentityColumnSupportIdentityColumnSupport.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 IdentityColumnSupportImplinsertSQL - The insert commandCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.