FileDocCategorySizeDatePackage
PersistentIdentifierGenerator.javaAPI DocHibernate 3.2.52128Tue Apr 26 01:37:54 BST 2005org.hibernate.id

PersistentIdentifierGenerator

public interface PersistentIdentifierGenerator implements IdentifierGenerator
An IdentifierGenerator that requires creation of database objects.

All PersistentIdentifierGenerators that also implement Configurable have access to a special mapping parameter: schema
see
IdentifierGenerator
see
Configurable
author
Gavin King

Fields Summary
public static final String
SCHEMA
The configuration parameter holding the schema name
public static final String
TABLE
The configuration parameter holding the table name for the generated id
public static final String
TABLES
The configuration parameter holding the table names for all tables for which the id must be unique
public static final String
PK
The configuration parameter holding the primary key column name of the generated id
public static final String
CATALOG
The configuration parameter holding the catalog name
static final Log
SQL
Constructors Summary
Methods Summary
public java.lang.ObjectgeneratorKey()
Return a key unique to the underlying database objects. Prevents us from trying to create/remove them multiple times.

return
Object an identifying key for this generator

public java.lang.String[]sqlCreateStrings(org.hibernate.dialect.Dialect dialect)
The SQL required to create the underlying database objects.

param
dialect
return
String[]
throws
HibernateException

public java.lang.String[]sqlDropStrings(org.hibernate.dialect.Dialect dialect)
The SQL required to remove the underlying database objects.

param
dialect
return
String
throws
HibernateException