Method Summary |
|
protected ConfigException | error(String msg, Throwable e) |
String | generateCreateTableSQL(AmberPersistenceUnit manager) Generates the clause to create the column. |
public String | generateInsertName() Generates the insert name. |
public int | generateLoad(JavaWriter out, String rs, String indexVar, int index) Generates a string to load the type as a property. |
public String | generateMatchArgWhere(String id) Generates the where clause. |
public void | generatePrologue(JavaWriter out) Generates the prologue. |
public String | generateSelect(String id) Generates the clause to load the column. |
public void | generateSet(JavaWriter out, String pstmt, String index, String value) Generates a string to load the type as a property. |
public void | generateSetVersion(JavaWriter out, String pstmt, String index, String value) Generates a string to load the type as a property. |
public String | generateUpdateSet() Generates the update clause. |
public String | generateUpdateSetNull() Generates the update clause setting to null. |
public String | getFieldName() Returns the field name. |
public int | getLength() Gets the length property. |
public String | getName() Gets the column name. |
public int | getPrecision() Gets the precision property. |
public String | getSQLType() |
public int | getScale() |
public Table | getTable() Returns the owning table. |
public Type | getType() Returns the type. |
public boolean | isNotNull() Gets the not-null property. |
public boolean | isPrimaryKey() Return true for a primary key column. |
public boolean | isUnique() Gets the unique property. |
public void | setConfigLocation(String location) Sets the config location. |
public void | setGeneratorType(String type) Sets the generator type. |
public void | setLength(int length) Sets the length property. |
public void | setName(String name) Sets the column name. |
public void | setNotNull(boolean isNotNull) Sets the not-null property. |
public void | setPrecision(int precision) Set the precision property. |
public void | setPrimaryKey(boolean isPrimaryKey) Sets the primary key property. |
public void | setSQLType(String sqlType) |
public void | setScale(int scale) |
public void | setUnique(boolean isUnique) Sets the unique property. |
public Object | toObjectKey(long value) Converts to the object key. |
public String | toString() Returns the name. |
void | validateDatabase(AmberPersistenceUnit amberPersistenceUnit) Creates the table if missing. |