Package org.hibernate.dialect.identity
Class CockroachDB1920IdentityColumnSupport
- java.lang.Object
-
- org.hibernate.dialect.identity.IdentityColumnSupportImpl
-
- org.hibernate.dialect.identity.CockroachDB1920IdentityColumnSupport
-
- All Implemented Interfaces:
IdentityColumnSupport
public class CockroachDB1920IdentityColumnSupport extends IdentityColumnSupportImpl
-
-
Constructor Summary
Constructors Constructor Description CockroachDB1920IdentityColumnSupport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetIdentityColumnString(int type)The syntax used during DDL to define a column as being an IDENTITY of a particular type.java.lang.StringgetIdentitySelectString(java.lang.String table, java.lang.String column, int type)Get the select command to use to retrieve the last generated IDENTITY value for a particular tablebooleanhasDataTypeInIdentityColumn()Whether this dialect have an Identity clause added to the data type or a completely separate identity data typebooleansupportsIdentityColumns()Does this dialect support identity column key generation?-
Methods inherited from class org.hibernate.dialect.identity.IdentityColumnSupportImpl
appendIdentitySelectToInsert, buildGetGeneratedKeysDelegate, getIdentityInsertString, 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
-
-
-
-
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.
-
getIdentitySelectString
public java.lang.String getIdentitySelectString(java.lang.String table, java.lang.String column, int type)Description copied from interface:IdentityColumnSupportGet the select command to use to retrieve the last generated IDENTITY value for a particular table- Specified by:
getIdentitySelectStringin interfaceIdentityColumnSupport- Overrides:
getIdentitySelectStringin classIdentityColumnSupportImpl- Parameters:
table- The table into which the insert was donecolumn- The PK column.type- TheTypestype code.- Returns:
- The appropriate select command
-
getIdentityColumnString
public java.lang.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.
-
hasDataTypeInIdentityColumn
public boolean hasDataTypeInIdentityColumn()
Description copied from interface:IdentityColumnSupportWhether this dialect have an Identity clause added to the data type or a completely separate identity data type- Specified by:
hasDataTypeInIdentityColumnin interfaceIdentityColumnSupport- Overrides:
hasDataTypeInIdentityColumnin classIdentityColumnSupportImpl- Returns:
- boolean
-
-