Package org.hibernate.dialect.identity
Class Oracle12cIdentityColumnSupport
- java.lang.Object
-
- org.hibernate.dialect.identity.IdentityColumnSupportImpl
-
- org.hibernate.dialect.identity.Oracle12cIdentityColumnSupport
-
- All Implemented Interfaces:
IdentityColumnSupport
public class Oracle12cIdentityColumnSupport extends IdentityColumnSupportImpl
-
-
Field Summary
Fields Modifier and Type Field Description static Oracle12cIdentityColumnSupportINSTANCE
-
Constructor Summary
Constructors Constructor Description Oracle12cIdentityColumnSupport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GetGeneratedKeysDelegatebuildGetGeneratedKeysDelegate(EntityPersister persister)The delegate for dealing withIDENTITYcolumns usingStatement.getGeneratedKeys().StringgetIdentityColumnString(int type)The syntax used during DDL to define a column as being an IDENTITY of a particular type.StringgetIdentityInsertString()The keyword used to insert a generated value into an identity column (or null).booleansupportsIdentityColumns()Does this dialect support identity column key generation?-
Methods inherited from class org.hibernate.dialect.identity.IdentityColumnSupportImpl
appendIdentitySelectToInsert, getIdentitySelectString, hasDataTypeInIdentityColumn, supportsInsertSelectIdentity
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.dialect.identity.IdentityColumnSupport
appendIdentitySelectToInsert, buildGetGeneratedKeysDelegate, hasIdentityInsertKeyword
-
-
-
-
Field Detail
-
INSTANCE
public static final Oracle12cIdentityColumnSupport INSTANCE
-
-
Method Detail
-
supportsIdentityColumns
public boolean supportsIdentityColumns()
Description copied from interface:IdentityColumnSupportDoes this dialect support identity column key generation?- Specified by:
supportsIdentityColumnsin interfaceIdentityColumnSupport- Overrides:
supportsIdentityColumnsin classIdentityColumnSupportImpl- Returns:
- True if IDENTITY columns are supported; false otherwise.
-
getIdentityColumnString
public String getIdentityColumnString(int type)
Description copied from interface:IdentityColumnSupportThe syntax used during DDL to define a column as being an IDENTITY of a particular type.- Specified by:
getIdentityColumnStringin interfaceIdentityColumnSupport- Overrides:
getIdentityColumnStringin classIdentityColumnSupportImpl- Parameters:
type- TheTypestype code.- Returns:
- The appropriate DDL fragment.
-
buildGetGeneratedKeysDelegate
public GetGeneratedKeysDelegate buildGetGeneratedKeysDelegate(EntityPersister persister)
Description copied from interface:IdentityColumnSupportThe delegate for dealing withIDENTITYcolumns usingStatement.getGeneratedKeys().- Specified by:
buildGetGeneratedKeysDelegatein interfaceIdentityColumnSupport- Overrides:
buildGetGeneratedKeysDelegatein classIdentityColumnSupportImpl- Parameters:
persister- The persister- Returns:
- the dialect-specific
GetGeneratedKeysDelegate
-
getIdentityInsertString
public String getIdentityInsertString()
Description copied from interface:IdentityColumnSupportThe keyword used to insert a generated value into an identity column (or null). Need if the dialect does not support inserts that specify no column values.- Specified by:
getIdentityInsertStringin interfaceIdentityColumnSupport- Overrides:
getIdentityInsertStringin classIdentityColumnSupportImpl- Returns:
- The appropriate keyword.
-
-