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,
Properties params,
org.hibernate.dialect.Dialect dialect) |
Serializable |
generate(org.hibernate.engine.SessionImplementor session,
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, 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 Serializable generate(org.hibernate.engine.SessionImplementor session, Object obj)
generate
in interface org.hibernate.id.IdentifierGenerator
generate
in class org.hibernate.id.enhanced.TableGenerator
Version: 5.3.5-ice35-b73
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.