Package org.hibernate.dialect.identity
Class Oracle12cIdentityColumnSupport
java.lang.Object
org.hibernate.dialect.identity.IdentityColumnSupportImpl
org.hibernate.dialect.identity.Oracle12cIdentityColumnSupport
- All Implemented Interfaces:
IdentityColumnSupport
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildGetGeneratedKeysDelegate
(EntityPersister persister) The delegate for dealing withIDENTITY
columns usingStatement.getGeneratedKeys()
.getIdentityColumnString
(int type) The syntax used during DDL to define a column as being an IDENTITY of a particular type.The keyword used to insert a generated value into an identity column (or null).boolean
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, hasIdentityInsertKeyword
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
Oracle12cIdentityColumnSupport
public Oracle12cIdentityColumnSupport()
-
-
Method Details
-
supportsIdentityColumns
public boolean supportsIdentityColumns()Description copied from interface:IdentityColumnSupport
Does this dialect support identity column key generation?- Specified by:
supportsIdentityColumns
in interfaceIdentityColumnSupport
- Overrides:
supportsIdentityColumns
in classIdentityColumnSupportImpl
- Returns:
- True if IDENTITY columns are supported; false otherwise.
-
getIdentityColumnString
Description copied from interface:IdentityColumnSupport
The syntax used during DDL to define a column as being an IDENTITY of a particular type.- Specified by:
getIdentityColumnString
in interfaceIdentityColumnSupport
- Overrides:
getIdentityColumnString
in classIdentityColumnSupportImpl
- Parameters:
type
- TheTypes
type code.- Returns:
- The appropriate DDL fragment.
-
buildGetGeneratedKeysDelegate
Description copied from interface:IdentityColumnSupport
The delegate for dealing withIDENTITY
columns usingStatement.getGeneratedKeys()
.- Specified by:
buildGetGeneratedKeysDelegate
in interfaceIdentityColumnSupport
- Overrides:
buildGetGeneratedKeysDelegate
in classIdentityColumnSupportImpl
- Parameters:
persister
- The persister- Returns:
- the dialect-specific
GetGeneratedKeysDelegate
-
getIdentityInsertString
Description copied from interface:IdentityColumnSupport
The 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:
getIdentityInsertString
in interfaceIdentityColumnSupport
- Overrides:
getIdentityInsertString
in classIdentityColumnSupportImpl
- Returns:
- The appropriate keyword.
-