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
-
-
Constructor Summary
Constructors Constructor Description Oracle12cIdentityColumnSupport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GetGeneratedKeysDelegate
buildGetGeneratedKeysDelegate(PostInsertIdentityPersister persister, Dialect dialect)
The Delegate for dealing with IDENTITY columns using JDBC3 getGeneratedKeysjava.lang.String
getIdentityColumnString(int type)
The syntax used during DDL to define a column as being an IDENTITY of a particular type.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.-
Methods inherited from class org.hibernate.dialect.identity.IdentityColumnSupportImpl
appendIdentitySelectToInsert, getIdentityInsertString, getIdentitySelectString, hasDataTypeInIdentityColumn
-
-
-
-
Method Detail
-
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.
-
supportsInsertSelectIdentity
public boolean supportsInsertSelectIdentity()
Description copied from interface:IdentityColumnSupport
Does the dialect support some form of inserting and selecting the generated IDENTITY value all in the same statement.- Specified by:
supportsInsertSelectIdentity
in interfaceIdentityColumnSupport
- Overrides:
supportsInsertSelectIdentity
in classIdentityColumnSupportImpl
- Returns:
- True if the dialect supports selecting the just generated IDENTITY in the insert statement.
-
getIdentityColumnString
public java.lang.String getIdentityColumnString(int type)
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
public GetGeneratedKeysDelegate buildGetGeneratedKeysDelegate(PostInsertIdentityPersister persister, Dialect dialect)
Description copied from interface:IdentityColumnSupport
The Delegate for dealing with IDENTITY columns using JDBC3 getGeneratedKeys- Specified by:
buildGetGeneratedKeysDelegate
in interfaceIdentityColumnSupport
- Overrides:
buildGetGeneratedKeysDelegate
in classIdentityColumnSupportImpl
- Parameters:
persister
- The persisterdialect
- The dialect against which to generate the delegate- Returns:
- the dialect specific GetGeneratedKeys delegate
-
-