Package org.hibernate.dialect.identity
Class MariaDBIdentityColumnSupport
- java.lang.Object
-
- org.hibernate.dialect.identity.IdentityColumnSupportImpl
-
- org.hibernate.dialect.identity.MySQLIdentityColumnSupport
-
- org.hibernate.dialect.identity.MariaDBIdentityColumnSupport
-
- All Implemented Interfaces:
IdentityColumnSupport
public class MariaDBIdentityColumnSupport extends MySQLIdentityColumnSupport
-
-
Field Summary
Fields Modifier and Type Field Description static MariaDBIdentityColumnSupport
INSTANCE
-
Constructor Summary
Constructors Constructor Description MariaDBIdentityColumnSupport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
appendIdentitySelectToInsert(String identityColumnName, String insertString)
Provided weIdentityColumnSupport.supportsInsertSelectIdentity()
, then attach the "select identity" clause to the insert statement.-
Methods inherited from class org.hibernate.dialect.identity.MySQLIdentityColumnSupport
getIdentityColumnString, getIdentitySelectString, supportsIdentityColumns
-
Methods inherited from class org.hibernate.dialect.identity.IdentityColumnSupportImpl
appendIdentitySelectToInsert, buildGetGeneratedKeysDelegate, getIdentityInsertString, 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
buildGetGeneratedKeysDelegate, hasIdentityInsertKeyword
-
-
-
-
Field Detail
-
INSTANCE
public static final MariaDBIdentityColumnSupport INSTANCE
-
-
Method Detail
-
appendIdentitySelectToInsert
public String appendIdentitySelectToInsert(String identityColumnName, String insertString)
Description copied from interface:IdentityColumnSupport
Provided weIdentityColumnSupport.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.- Parameters:
identityColumnName
- The name of the identity columninsertString
- The insert command- Returns:
- The insert command with any necessary identity select clause attached.
-
-