com.caucho.amber.field
Class Generator

java.lang.Object
  extended by com.caucho.amber.field.Generator
Direct Known Subclasses:
MaxGenerator

public abstract class Generator
extends java.lang.Object

Configuration for a bean's field


Constructor Summary
Generator()
           
 
Method Summary
abstract  long generate(java.sql.Connection conn)
          Generates the new id.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Generator

public Generator()
Method Detail

generate

public abstract long generate(java.sql.Connection conn)
                       throws java.sql.SQLException
Generates the new id.

Throws:
java.sql.SQLException