FileDocCategorySizeDatePackage
DatabaseStructure.javaAPI DocHibernate 3.2.51624Thu Mar 15 04:33:16 GMT 2007org.hibernate.id.enhanced

DatabaseStructure

public interface DatabaseStructure
Encapsulates definition of the underlying data structure backing a sequence-style generator.
author
Steve Ebersole

Fields Summary
Constructors Summary
Methods Summary
public AccessCallbackbuildCallback(org.hibernate.engine.SessionImplementor session)
A callback to be able to get the next value from the underlying structure as needed.

param
session The session.
return
The next value.

public intgetIncrementSize()
The configured increment size

return
The configured increment size

public java.lang.StringgetName()
The name of the database structure (table or sequence).

return
The structure name.

public intgetTimesAccessed()
How many times has this structure been accessed through this reference?

return
The number of accesses.

public voidprepare(Optimizer optimizer)
Prepare this structure for use. Called sometime after instantiation, but before first use.

param
optimizer The optimizer being applied to the generator.

public java.lang.String[]sqlCreateStrings(org.hibernate.dialect.Dialect dialect)
Commands needed to create the underlying structures.

param
dialect The database dialect being used.
return
The creation commands.

public java.lang.String[]sqlDropStrings(org.hibernate.dialect.Dialect dialect)
Commands needed to drop the underlying structures.

param
dialect The database dialect being used.
return
The drop commands.