Class IdOverrideTableGenerator
java.lang.Object
org.hibernate.id.enhanced.TableGenerator
org.broadleafcommerce.common.persistence.IdOverrideTableGenerator
- All Implemented Interfaces:
org.hibernate.boot.model.relational.ExportableProducer,org.hibernate.id.Configurable,org.hibernate.id.IdentifierGenerator,org.hibernate.id.PersistentIdentifierGenerator
public class IdOverrideTableGenerator
extends org.hibernate.id.enhanced.TableGenerator
- Author:
- Jeff Fischer
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class org.hibernate.id.enhanced.TableGenerator
CONFIG_PREFER_SEGMENT_PER_ENTITY, DEF_SEGMENT_COLUMN, DEF_SEGMENT_LENGTH, DEF_SEGMENT_VALUE, DEF_TABLE, DEF_VALUE_COLUMN, DEFAULT_INITIAL_VALUE, INCREMENT_PARAM, INITIAL_PARAM, OPT_PARAM, SEGMENT_COLUMN_PARAM, SEGMENT_LENGTH_PARAM, SEGMENT_VALUE_PARAM, TABLE_PARAM, VALUE_COLUMN_PARAMFields inherited from interface org.hibernate.id.IdentifierGenerator
ENTITY_NAME, GENERATOR_NAME, JPA_ENTITY_NAMEFields inherited from interface org.hibernate.id.PersistentIdentifierGenerator
CATALOG, IDENTIFIER_NORMALIZER, PK, SCHEMA, TABLE, TABLES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(org.hibernate.type.Type type, Properties params, org.hibernate.service.ServiceRegistry registry) protected FieldgetIdField(Class<?> clazz) voidsetEntityName(String entityName) Methods inherited from class org.hibernate.id.enhanced.TableGenerator
buildInsertQuery, buildSelectQuery, buildUpdateQuery, determineDefaultSegmentValue, determineGeneratorTableName, determineIncrementSize, determineInitialValue, determineSegmentColumnName, determineSegmentColumnSize, determineSegmentValue, determineValueColumnName, generateInsertInitCommand, generatorKey, getAllSqlForTests, getIdentifierType, getIncrementSize, getInitialValue, getOptimizer, getSegmentColumnName, getSegmentValue, getSegmentValueLength, getTableAccessCount, getTableName, getValueColumnName, initialize, registerExportablesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.id.IdentifierGenerator
supportsJdbcBatchInserts
-
Field Details
-
ENTITY_NAME_PARAM
- See Also:
-
DEFAULT_TABLE_NAME
- See Also:
-
DEFAULT_SEGMENT_COLUMN_NAME
- See Also:
-
DEFAULT_VALUE_COLUMN_NAME
- See Also:
-
DEFAULT_INCREMENT_SIZE
public static final int DEFAULT_INCREMENT_SIZE- See Also:
-
-
Constructor Details
-
IdOverrideTableGenerator
public IdOverrideTableGenerator()
-
-
Method Details
-
getIdField
-
configure
public void configure(org.hibernate.type.Type type, Properties params, org.hibernate.service.ServiceRegistry registry) throws org.hibernate.MappingException - Specified by:
configurein interfaceorg.hibernate.id.Configurable- Specified by:
configurein interfaceorg.hibernate.id.IdentifierGenerator- Overrides:
configurein classorg.hibernate.id.enhanced.TableGenerator- Throws:
org.hibernate.MappingException
-
getEntityName
-
setEntityName
-