类 AbstractTransactSQLIdentityColumnSupport
- java.lang.Object
-
- org.hibernate.dialect.identity.IdentityColumnSupportImpl
-
- org.hibernate.dialect.identity.AbstractTransactSQLIdentityColumnSupport
-
- 所有已实现的接口:
IdentityColumnSupport
public class AbstractTransactSQLIdentityColumnSupport extends IdentityColumnSupportImpl
- 作者:
- Andrea Boriero
-
-
构造器概要
构造器 构造器 说明 AbstractTransactSQLIdentityColumnSupport()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 StringappendIdentitySelectToInsert(String insertSQL)Provided weIdentityColumnSupport.supportsInsertSelectIdentity(), then attach the "select identity" clause to the insert statement.StringgetIdentityColumnString(int type)The syntax used during DDL to define a column as being an IDENTITY of a particular type.StringgetIdentitySelectString(String table, String column, int type)Get the select command to use to retrieve the last generated IDENTITY value for a particular tablebooleansupportsIdentityColumns()Does this dialect support identity column key generation?booleansupportsInsertSelectIdentity()Does the dialect support some form of inserting and selecting the generated IDENTITY value all in the same statement.-
从类继承的方法 org.hibernate.dialect.identity.IdentityColumnSupportImpl
buildGetGeneratedKeysDelegate, getIdentityInsertString, hasDataTypeInIdentityColumn
-
-
-
-
方法详细资料
-
supportsIdentityColumns
public boolean supportsIdentityColumns()
从接口复制的说明:IdentityColumnSupportDoes this dialect support identity column key generation?- 指定者:
supportsIdentityColumns在接口中IdentityColumnSupport- 覆盖:
supportsIdentityColumns在类中IdentityColumnSupportImpl- 返回:
- True if IDENTITY columns are supported; false otherwise.
-
getIdentityColumnString
public String getIdentityColumnString(int type) throws MappingException
从接口复制的说明:IdentityColumnSupportThe syntax used during DDL to define a column as being an IDENTITY of a particular type.- 指定者:
getIdentityColumnString在接口中IdentityColumnSupport- 覆盖:
getIdentityColumnString在类中IdentityColumnSupportImpl- 参数:
type- TheTypestype code.- 返回:
- The appropriate DDL fragment.
- 抛出:
MappingException- If IDENTITY generation is not supported.
-
getIdentitySelectString
public String getIdentitySelectString(String table, String column, int type) throws MappingException
从接口复制的说明:IdentityColumnSupportGet the select command to use to retrieve the last generated IDENTITY value for a particular table- 指定者:
getIdentitySelectString在接口中IdentityColumnSupport- 覆盖:
getIdentitySelectString在类中IdentityColumnSupportImpl- 参数:
table- The table into which the insert was donecolumn- The PK column.type- TheTypestype code.- 返回:
- The appropriate select command
- 抛出:
MappingException- If IDENTITY generation is not supported.
-
supportsInsertSelectIdentity
public boolean supportsInsertSelectIdentity()
从接口复制的说明:IdentityColumnSupportDoes the dialect support some form of inserting and selecting the generated IDENTITY value all in the same statement.- 指定者:
supportsInsertSelectIdentity在接口中IdentityColumnSupport- 覆盖:
supportsInsertSelectIdentity在类中IdentityColumnSupportImpl- 返回:
- True if the dialect supports selecting the just generated IDENTITY in the insert statement.
-
appendIdentitySelectToInsert
public String appendIdentitySelectToInsert(String insertSQL)
从接口复制的说明:IdentityColumnSupportProvided weIdentityColumnSupport.supportsInsertSelectIdentity(), then attach the "select identity" clause to the insert statement. Note, ifIdentityColumnSupport.supportsInsertSelectIdentity()== false then the insert-string should be returned without modification.- 指定者:
appendIdentitySelectToInsert在接口中IdentityColumnSupport- 覆盖:
appendIdentitySelectToInsert在类中IdentityColumnSupportImpl- 参数:
insertSQL- The insert command- 返回:
- The insert command with any necessary identity select clause attached.
-
-