com.caucho.amber.field
Class MaxGenerator

java.lang.Object
  extended by com.caucho.amber.field.Generator
      extended by com.caucho.amber.field.MaxGenerator

public class MaxGenerator
extends Generator

Configuration for a bean's field


Constructor Summary
MaxGenerator()
           
 
Method Summary
 long generate(java.sql.Connection conn)
          Generates the new id.
 void init()
          initialize the sql.
 void setColumn(java.lang.String column)
          Sets the column.
 void setTable(java.lang.String table)
          Sets the table.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MaxGenerator

public MaxGenerator()
Method Detail

setTable

public void setTable(java.lang.String table)
Sets the table.


setColumn

public void setColumn(java.lang.String column)
Sets the column.


init

public void init()
initialize the sql.


generate

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

Specified by:
generate in class Generator
Throws:
java.sql.SQLException