类 SQLServerIdentityColumnSupport
- java.lang.Object
-
- org.hibernate.dialect.identity.IdentityColumnSupportImpl
-
- org.hibernate.dialect.identity.AbstractTransactSQLIdentityColumnSupport
-
- org.hibernate.dialect.identity.SQLServerIdentityColumnSupport
-
- 所有已实现的接口:
IdentityColumnSupport
public class SQLServerIdentityColumnSupport extends AbstractTransactSQLIdentityColumnSupport
- 作者:
- Andrea Boriero
-
-
构造器概要
构造器 构造器 说明 SQLServerIdentityColumnSupport()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 StringappendIdentitySelectToInsert(String insertSQL)Use insert table(...) values(...) select SCOPE_IDENTITY()-
从类继承的方法 org.hibernate.dialect.identity.AbstractTransactSQLIdentityColumnSupport
getIdentityColumnString, getIdentitySelectString, supportsIdentityColumns, supportsInsertSelectIdentity
-
从类继承的方法 org.hibernate.dialect.identity.IdentityColumnSupportImpl
buildGetGeneratedKeysDelegate, getIdentityInsertString, hasDataTypeInIdentityColumn
-
-
-
-
方法详细资料
-
appendIdentitySelectToInsert
public String appendIdentitySelectToInsert(String insertSQL)
Use insert table(...) values(...) select SCOPE_IDENTITY() Provided 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在类中AbstractTransactSQLIdentityColumnSupport- 参数:
insertSQL- The insert command- 返回:
- The insert command with any necessary identity select clause attached.
-
-