接口的使用
org.hibernate.id.IdentifierGenerator
-
使用IdentifierGenerator的程序包 程序包 说明 org.hibernate.engine.spi org.hibernate.id This package contains internal implementation classes for the main API interfaces.org.hibernate.id.enhanced Enhanced/improved versions of table and sequence based identifier generators targeting portability and unified configurationorg.hibernate.id.factory org.hibernate.id.factory.internal org.hibernate.internal An internal package containing mostly implementations of central Hibernate APIs.org.hibernate.mapping This package defines the Hibernate configuration-time metamodel.org.hibernate.persister.collection This package abstracts the persistence mechanism for collections.org.hibernate.persister.entity This package abstracts persistence mechanisms for entities, and defines the Hibernate runtime metamodel.org.hibernate.tuple This package defines a runtime metamodel for entities at the object level and abstracts the differences between the various entity modes. -
-
org.hibernate.engine.spi中IdentifierGenerator的使用
返回IdentifierGenerator的org.hibernate.engine.spi中的方法 修饰符和类型 方法 说明 IdentifierGeneratorSessionFactoryDelegatingImpl. getIdentifierGenerator(String rootEntityName)IdentifierGeneratorSessionFactoryImplementor. getIdentifierGenerator(String rootEntityName)Get the identifier generator for the hierarchy -
org.hibernate.id中IdentifierGenerator的使用
org.hibernate.id中IdentifierGenerator的子接口 修饰符和类型 接口 说明 interfaceBulkInsertionCapableIdentifierGeneratorSpecialized contract forIdentifierGeneratorimplementations capable of being used in conjunction with HQL insert statements.interfacePersistentIdentifierGeneratorAn IdentifierGenerator that requires creation of database objects.interfacePostInsertIdentifierGenerator实现IdentifierGenerator的org.hibernate.id中的类 修饰符和类型 类 说明 classAbstractPostInsertGeneratorBasic implementation of thePostInsertIdentifierGeneratorcontract.classAbstractUUIDGeneratorThe base class for identifier generators that use a UUID algorithm.classAssignedassigned
An IdentifierGenerator that returns the current identifier assigned to an instance.classCompositeNestedGeneratedValueGeneratorFor composite identifiers, defines a number of "nested" generations that need to happen to "fill" the identifier property(s).classForeignGeneratorforeign
An Identifier generator that uses the value of the id property of an associated object
One mapping parameter is required: property.classGUIDGeneratorGenerates string values using the SQL Server NEWID() function.classIdentityGeneratorA generator for use with ANSI-SQL IDENTITY columns used as the primary key.classIncrementGeneratorincrement
An IdentifierGenerator that returns a long, constructed by counting from the maximum primary key value at startup.classMultipleHiLoPerTableGenerator已过时。UseTableGeneratorinstead.classSelectGeneratorA generator that selects the just inserted row to determine the identifier value assigned by the database.classSequenceGenerator已过时。UseSequenceStyleGeneratorinsteadclassSequenceHiLoGenerator已过时。See deprecation discussion onSequenceGeneratorclassSequenceIdentityGenerator已过时。See deprecation discussion onSequenceGeneratorclassUUIDGeneratorclassUUIDHexGeneratoruuid
A UUIDGenerator that returns a string of length 32, This string will consist of only hex digits. -
org.hibernate.id.enhanced中IdentifierGenerator的使用
实现IdentifierGenerator的org.hibernate.id.enhanced中的类 修饰符和类型 类 说明 classSequenceStyleGeneratorGenerates identifier values based on a sequence-style database structure.classTableGeneratorAn enhanced version of table-based id generation. -
org.hibernate.id.factory中IdentifierGenerator的使用
返回IdentifierGenerator的org.hibernate.id.factory中的方法 修饰符和类型 方法 说明 IdentifierGeneratorIdentifierGeneratorFactory. createIdentifierGenerator(String strategy, Type type, Properties config)Given a strategy, retrieve the appropriate identifier generator instance. -
org.hibernate.id.factory.internal中IdentifierGenerator的使用
返回IdentifierGenerator的org.hibernate.id.factory.internal中的方法 修饰符和类型 方法 说明 IdentifierGeneratorDefaultIdentifierGeneratorFactory. createIdentifierGenerator(String strategy, Type type, Properties config) -
org.hibernate.internal中IdentifierGenerator的使用
返回IdentifierGenerator的org.hibernate.internal中的方法 修饰符和类型 方法 说明 IdentifierGeneratorSessionFactoryImpl. getIdentifierGenerator(String rootEntityName) -
org.hibernate.mapping中IdentifierGenerator的使用
返回IdentifierGenerator的org.hibernate.mapping中的方法 修饰符和类型 方法 说明 IdentifierGeneratorComponent. createIdentifierGenerator(IdentifierGeneratorFactory identifierGeneratorFactory, Dialect dialect, String defaultCatalog, String defaultSchema, RootClass rootClass)IdentifierGeneratorKeyValue. createIdentifierGenerator(IdentifierGeneratorFactory identifierGeneratorFactory, Dialect dialect, String defaultCatalog, String defaultSchema, RootClass rootClass)IdentifierGeneratorSimpleValue. createIdentifierGenerator(IdentifierGeneratorFactory identifierGeneratorFactory, Dialect dialect, String defaultCatalog, String defaultSchema, RootClass rootClass)参数类型为IdentifierGenerator的org.hibernate.mapping中的构造器 构造器 说明 ValueGenerationPlan(IdentifierGenerator subGenerator, Setter injector) -
org.hibernate.persister.collection中IdentifierGenerator的使用
返回IdentifierGenerator的org.hibernate.persister.collection中的方法 修饰符和类型 方法 说明 IdentifierGeneratorAbstractCollectionPersister. getIdentifierGenerator()IdentifierGeneratorCollectionPersister. getIdentifierGenerator()Get the surrogate key generation strategy (optional operation) -
org.hibernate.persister.entity中IdentifierGenerator的使用
返回IdentifierGenerator的org.hibernate.persister.entity中的方法 修饰符和类型 方法 说明 IdentifierGeneratorAbstractEntityPersister. getIdentifierGenerator()IdentifierGeneratorEntityPersister. getIdentifierGenerator()Determine which identifier generation strategy is used for this entity. -
org.hibernate.tuple中IdentifierGenerator的使用
返回IdentifierGenerator的org.hibernate.tuple中的方法 修饰符和类型 方法 说明 IdentifierGeneratorIdentifierAttribute. getIdentifierGenerator()IdentifierGeneratorIdentifierProperty. getIdentifierGenerator()参数类型为IdentifierGenerator的org.hibernate.tuple中的方法 修饰符和类型 方法 说明 static IdentifierPropertyPropertyFactory. buildIdentifierAttribute(PersistentClass mappedEntity, IdentifierGenerator generator)Generates the attribute representation of the identifier for a given entity mapping.参数类型为IdentifierGenerator的org.hibernate.tuple中的构造器 构造器 说明 IdentifierProperty(String name, Type type, boolean embedded, IdentifierValue unsavedValue, IdentifierGenerator identifierGenerator)Construct a non-virtual identifier property.IdentifierProperty(Type type, boolean embedded, boolean hasIdentifierMapper, IdentifierValue unsavedValue, IdentifierGenerator identifierGenerator)Construct a virtual IdentifierProperty.
-