|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbiz.hammurapi.sql.GenericIdentityGenerator
public class GenericIdentityGenerator
Generates identities by executing specified SQL statement
Constructor Summary | |
---|---|
GenericIdentityGenerator(java.lang.String pattern)
Constructor |
Method Summary | |
---|---|
int |
generate(java.sql.Connection con,
java.lang.String name)
Generates next identity for given object name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GenericIdentityGenerator(java.lang.String pattern)
pattern
- - SQL statement pattern. {0} stands for table name.Method Detail |
---|
public int generate(java.sql.Connection con, java.lang.String name) throws java.sql.SQLException
IdentityGenerator
generate
in interface IdentityGenerator
java.sql.SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |