public class TableIdGenerator
extends org.hibernate.id.enhanced.TableGenerator
TableGenerator
and OptimizerFactory
into a single class because of
weirdness in their implementation. Instead, uses our own ome_nextval(?,?)
method to keep the Hibernate sequence values (hiValue
) in sync with
the database values.CONFIG_PREFER_SEGMENT_PER_ENTITY, DEF_SEGMENT_COLUMN, DEF_SEGMENT_LENGTH, DEF_SEGMENT_VALUE, DEF_TABLE, DEF_VALUE_COLUMN, DEFAULT_INCREMENT_SIZE, DEFAULT_INITIAL_VALUE, INCREMENT_PARAM, INITIAL_PARAM, OPT_PARAM, SEGMENT_COLUMN_PARAM, SEGMENT_LENGTH_PARAM, SEGMENT_VALUE_PARAM, TABLE_PARAM, VALUE_COLUMN_PARAM
Constructor and Description |
---|
TableIdGenerator() |
Modifier and Type | Method and Description |
---|---|
void |
configure(org.hibernate.type.Type type,
java.util.Properties params,
org.hibernate.dialect.Dialect dialect) |
java.io.Serializable |
generate(org.hibernate.engine.SessionImplementor session,
java.lang.Object obj) |
void |
setSqlAction(SqlAction sql) |
buildInsertQuery, buildSelectQuery, buildUpdateQuery, determineDefaultSegmentValue, determineGeneratorTableName, determineIncrementSize, determineInitialValue, determineSegmentColumnName, determineSegmentColumnSize, determineSegmentValue, determineValueColumnName, doWorkInCurrentTransaction, generatorKey, getIdentifierType, getIncrementSize, getInitialValue, getOptimizer, getSegmentColumnName, getSegmentValue, getSegmentValueLength, getTableAccessCount, getTableName, getValueColumnName, sqlCreateStrings, sqlDropStrings
public void configure(org.hibernate.type.Type type, java.util.Properties params, org.hibernate.dialect.Dialect dialect) throws org.hibernate.MappingException
configure
in interface org.hibernate.id.Configurable
configure
in class org.hibernate.id.enhanced.TableGenerator
org.hibernate.MappingException
public void setSqlAction(SqlAction sql)
public java.io.Serializable generate(org.hibernate.engine.SessionImplementor session, java.lang.Object obj)
generate
in interface org.hibernate.id.IdentifierGenerator
generate
in class org.hibernate.id.enhanced.TableGenerator
Version: 5.4.6-ice35-b87
Copyright © 2018 The University of Dundee & Open Microscopy Environment. All Rights Reserved.