getOptions() Gets the full ordered hashtable array of items specified by XML option
statements under this element.
Note, this is not thread save but since it's only used for
generation which is single threaded, there should be minimum
danger using this in Velocity.
An Map of all options.
getPeerJavaName() Returns the name of the constant that is used for the column in the Peer
class, e.g., RecordPeer.COLVARNAME.
Generally this will be a straight conversion to upper case.
But if the column name is equals to TABLE_NAME or
DATABASE_NAME (Torque predefined vars), the column name will have an _
prefixed, e.g.
public int
getPosition() Get the location of this column within the table (one-based).
Add an XML Specified option key/value pair to this element's option set.
Parameters: key - the key of the option. Parameters: value - the value of the option.
Return a string representation of the native java type which corresponds
to the JDBC type of this column. Use in the generation of Base objects.
This method is used by torque, so it returns Key types for primaryKey and
foreignKey columns
java datatype used by torque
Return a string representation of the primitive java type which
corresponds to the JDBC type of this column.
string representation of the primitive java type
Gets the full ordered hashtable array of items specified by XML option
statements under this element.
Note, this is not thread save but since it's only used for
generation which is single threaded, there should be minimum
danger using this in Velocity.
An Map of all options. Will not be null but may be empty.
Returns the name of the constant that is used for the column in the Peer
class, e.g., RecordPeer.COLVARNAME.
Generally this will be a straight conversion to upper case.
But if the column name is equals to TABLE_NAME or
DATABASE_NAME (Torque predefined vars), the column name will have an _
prefixed, e.g. _TABLE_NAME.
TODO: Handle delimited column names that have non-Java identifier
characters in them.
The name to use in defining the Peer class column variable.
Try to determine the precision of the field from the size attribute.
If size attribute is an integer number, it will be returned.
If size attribute is of the format "Precision,Scale", then Precision
will be returned.
If size is null or the size value is not an valid integer,
null is returned.
Note: Unparseable values will be logged as a warning.
The precision portion of the size attribute.
Try to determine the scale of the field from the scale and size
attribute.
If scale attribute is an integer number, it will be returned.
If size attribute is of the format "Precision,Scale", then Scale
will be returned.
If scale and size attributes are null or the scale value found
is not an valid integer, a null value is returned.
Note: Unparseable values will be logged as a warning.
The precision portion of the size attribute.
Return a comma delimited string listing the specified columns.
Parameters: columns - Either a list of Column objects, ora list of String objects with column names.
Set the auto increment value.
Use isAutoIncrement() to find out if it is set or not.
setCorrectGetters
public void setCorrectGetters(boolean correctGetters)(Code)
Set the correctGetters property of the column. If set to true, the
column returns is<xxx> as the getter name which is correct for the
Bean Specs but incompatible to pre-3.2 releases.
Parameters: correctGetters - The new value of the correctGetters property. since: 3.2