程序包 org.hibernate.id
接口 PersistentIdentifierGenerator
-
- 所有超级接口:
ExportableProducer,IdentifierGenerator
- 所有已知实现类:
MultipleHiLoPerTableGenerator,SequenceGenerator,SequenceHiLoGenerator,SequenceIdentityGenerator,SequenceStyleGenerator,TableGenerator
public interface PersistentIdentifierGenerator extends IdentifierGenerator, ExportableProducer
An IdentifierGenerator that requires creation of database objects.
All PersistentIdentifierGenerators that also implement Configurable have access to a special mapping parameter: schema- 作者:
- Gavin King, Steve Ebersole
- 另请参阅:
IdentifierGenerator,Configurable
-
-
字段概要
字段 修饰符和类型 字段 说明 static StringCATALOGThe configuration parameter holding the catalog namestatic StringIDENTIFIER_NORMALIZERThe key under which to find theObjectNameNormalizerin the config param map.static StringPKThe configuration parameter holding the primary key column name of the generated idstatic StringSCHEMAThe configuration parameter holding the schema namestatic StringTABLEThe configuration parameter holding the table name for the generated idstatic StringTABLESThe configuration parameter holding the table names for all tables for which the id must be unique-
从接口继承的字段 org.hibernate.id.IdentifierGenerator
ENTITY_NAME, GENERATOR_NAME, JPA_ENTITY_NAME
-
-
方法概要
所有方法 实例方法 抽象方法 已过时的方法 修饰符和类型 方法 说明 ObjectgeneratorKey()Return a key unique to the underlying database objects.String[]sqlCreateStrings(Dialect dialect)已过时。Utilize the ExportableProducer contract insteadString[]sqlDropStrings(Dialect dialect)已过时。Utilize the ExportableProducer contract instead-
从接口继承的方法 org.hibernate.boot.model.relational.ExportableProducer
registerExportables
-
从接口继承的方法 org.hibernate.id.IdentifierGenerator
generate, supportsJdbcBatchInserts
-
-
-
-
字段详细资料
-
TABLE
static final String TABLE
The configuration parameter holding the table name for the generated id- 另请参阅:
- 常量字段值
-
TABLES
static final String TABLES
The configuration parameter holding the table names for all tables for which the id must be unique- 另请参阅:
- 常量字段值
-
PK
static final String PK
The configuration parameter holding the primary key column name of the generated id- 另请参阅:
- 常量字段值
-
CATALOG
static final String CATALOG
The configuration parameter holding the catalog name- 另请参阅:
- 常量字段值
-
IDENTIFIER_NORMALIZER
static final String IDENTIFIER_NORMALIZER
The key under which to find theObjectNameNormalizerin the config param map.- 另请参阅:
- 常量字段值
-
-
方法详细资料
-
sqlCreateStrings
@Deprecated String[] sqlCreateStrings(Dialect dialect) throws HibernateException
已过时。Utilize the ExportableProducer contract insteadThe SQL required to create the underlying database objects.- 参数:
dialect- The dialect against which to generate the create command(s)- 返回:
- The create command(s)
- 抛出:
HibernateException- problem creating the create command(s)
-
sqlDropStrings
@Deprecated String[] sqlDropStrings(Dialect dialect) throws HibernateException
已过时。Utilize the ExportableProducer contract insteadThe SQL required to remove the underlying database objects.- 参数:
dialect- The dialect against which to generate the drop command(s)- 返回:
- The drop command(s)
- 抛出:
HibernateException- problem creating the drop command(s)
-
generatorKey
Object generatorKey()
Return a key unique to the underlying database objects. Prevents us from trying to create/remove them multiple times.- 返回:
- Object an identifying key for this generator
-
-