com.caucho.amber.type
Class GeneratorTableType

java.lang.Object
  extended by com.caucho.amber.type.AmberType
      extended by com.caucho.amber.type.GeneratorTableType

public class GeneratorTableType
extends AmberType

A type which represents a table or a portion.


Constructor Summary
GeneratorTableType(AmberPersistenceUnit amberPersistenceUnit, java.lang.String name)
           
 
Method Summary
 AmberTableGenerator createGenerator(java.lang.String name)
          Creates a new generator.
 AmberPersistenceUnit getAmberManager()
          Returns the amber manager.
 java.lang.String getKeyColumn()
          Returns the key name.
 java.lang.String getName()
          Returns the name.
 AmberTable getTable()
          Returns the table.
 java.lang.String getValueColumn()
          Returns the value name.
 void init()
          Initialize the table.
 void start()
           
 java.lang.String toString()
          Printable version of the entity.
 
Methods inherited from class com.caucho.amber.type.AmberType
findItem, fromObject, generateCastFromObject, generateCreateColumnSQL, generateEquals, generateIncrementVersion, generateIsNull, generateLoad, generateLoad, generateLoadForeign, generateLoadNative, generateNull, generateSet, generateSetNull, generateSetVersion, getColumnCount, getForeignType, getForeignTypeName, getJavaTypeName, getObject, getObject, isAssignableTo, isAutoIncrement, isBoolean, isNumeric, setParameter, toObject, toObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GeneratorTableType

public GeneratorTableType(AmberPersistenceUnit amberPersistenceUnit,
                          java.lang.String name)
Method Detail

getAmberManager

public AmberPersistenceUnit getAmberManager()
Returns the amber manager.


getName

public java.lang.String getName()
Returns the name.

Specified by:
getName in class AmberType

getTable

public AmberTable getTable()
Returns the table.


getKeyColumn

public java.lang.String getKeyColumn()
Returns the key name.


getValueColumn

public java.lang.String getValueColumn()
Returns the value name.


createGenerator

public AmberTableGenerator createGenerator(java.lang.String name)
Creates a new generator.


init

public void init()
          throws ConfigException
Initialize the table.

Overrides:
init in class AmberType
Throws:
ConfigException

start

public void start()

toString

public java.lang.String toString()
Printable version of the entity.

Overrides:
toString in class java.lang.Object