SequenceHiLoGenerator, TableHiLoGenerator
| Modifier and Type | Field and Description |
|---|---|
| private Type | |
| private static final Logger | |
| public static final String | PARAMETERS
The parameters parameter, appended to the create sequence DDL. |
| private String | |
| public static final String | SEQUENCE
The sequence parameter |
| private String | |
| private String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected IntegralDataTypeHolder | |
| public void | configure(Type type, Properties
param values, keyed by parameter name params, Dialect dialect)Implements org. |
| public Serializable | generate(SessionImplementor session, Object
the entity or toplevel collection for which the id is being generated obj)Implements org. |
| protected IntegralDataTypeHolder | |
| public Object | generatorKey()
Implements org. |
| protected Type | |
| public String | |
| public String[] | sqlCreateStrings(Dialect
The dialect against which to generate the create command(s) dialect)Implements org. |
| public String[] | sqlDropStrings(Dialect
The dialect against which to generate the drop command(s) dialect)Implements org. |
| identifierType | back to summary |
|---|---|
| private Type identifierType | |
| log | back to summary |
|---|---|
| private static final Logger log | |
| PARAMETERS | back to summary |
|---|---|
| public static final String PARAMETERS The parameters parameter, appended to the create sequence DDL. For example (Oracle): INCREMENT BY 1 START WITH 1 MAXVALUE 100 NOCACHE. | |
| parameters | back to summary |
|---|---|
| private String parameters | |
| SEQUENCE | back to summary |
|---|---|
| public static final String SEQUENCE The sequence parameter | |
| sequenceName | back to summary |
|---|---|
| private String sequenceName | |
| sql | back to summary |
|---|---|
| private String sql | |
| SequenceGenerator | back to summary |
|---|---|
| public SequenceGenerator() | |
| buildHolder | back to summary |
|---|---|
| protected IntegralDataTypeHolder buildHolder() | |
| configure | back to summary |
|---|---|
| public void configure(Type type, Properties params, Dialect dialect) throws MappingException Implements org. Doc from org. Configure this instance, given the value of parameters specified by the user as <param> elements. This method is called just once, following instantiation.
| |
| generate | back to summary |
|---|---|
| public Serializable generate(SessionImplementor session, Object obj) Implements org. Doc from org. Generate a new identifier.
| |
| generateHolder | back to summary |
|---|---|
| protected IntegralDataTypeHolder generateHolder(SessionImplementor session) | |
| generatorKey | back to summary |
|---|---|
| public Object generatorKey() Implements org. Doc from org. Return a key unique to the underlying database objects. Prevents us from trying to create/remove them multiple times.
| |
| getIdentifierType | back to summary |
|---|---|
| protected Type getIdentifierType() | |
| getSequenceName | back to summary |
|---|---|
| public String getSequenceName() | |
| sqlCreateStrings | back to summary |
|---|---|
| public String[] sqlCreateStrings(Dialect dialect) throws HibernateException Implements org. Doc from org. The SQL required to create the underlying database objects.
| |
| sqlDropStrings | back to summary |
|---|---|
| public String[] sqlDropStrings(Dialect dialect) throws HibernateException Implements org. Doc from org. The SQL required to remove the underlying database objects.
| |