org.hibernate.id
Class IdentityGenerator
java.lang.Object
org.hibernate.id.AbstractPostInsertGenerator
org.hibernate.id.IdentityGenerator
- All Implemented Interfaces:
- IdentifierGenerator, PostInsertIdentifierGenerator
- public class IdentityGenerator
- extends AbstractPostInsertGenerator
The IdentityGenerator for autoincrement/identity key generation.
Indicates to the Session that identity (ie. identity/autoincrement
column) key generation should be used.
- Author:
- Christoph Sturm
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IdentityGenerator
public IdentityGenerator()
getSQL
protected String getSQL(PostInsertIdentityPersister persister)
- Specified by:
getSQL
in class AbstractPostInsertGenerator
getResult
protected Serializable getResult(SessionImplementor session,
ResultSet rs,
Object object,
PostInsertIdentityPersister persister)
throws SQLException
- Specified by:
getResult
in class AbstractPostInsertGenerator
- Throws:
SQLException