| java.lang.Object helma.objectmodel.db.DbColumn
DbColumn | final public class DbColumn (Code) | | A class that encapsulates the Column name and data type of a column in a
relational table.
|
Method Summary | |
public String | getName() Get the column name. | public Relation | getRelation() Return the relation associated with this column. | public int | getType() Get this columns SQL data type. | public boolean | isIdField() Returns true if this column serves as ID field for the prototype. | public boolean | isMapped() Returns true if this field is mapped by the prototype's db mapping. | public boolean | isNameField() Returns true if this column serves as name field for the prototype. | public boolean | isPrototypeField() Returns true if this column serves as prototype field for the prototype. | public boolean | needsQuotes() |
getRelation | public Relation getRelation()(Code) | | Return the relation associated with this column. May be null.
|
getType | public int getType()(Code) | | Get this columns SQL data type.
|
isIdField | public boolean isIdField()(Code) | | Returns true if this column serves as ID field for the prototype.
|
isMapped | public boolean isMapped()(Code) | | Returns true if this field is mapped by the prototype's db mapping.
|
isNameField | public boolean isNameField()(Code) | | Returns true if this column serves as name field for the prototype.
|
isPrototypeField | public boolean isPrototypeField()(Code) | | Returns true if this column serves as prototype field for the prototype.
|
needsQuotes | public boolean needsQuotes()(Code) | | Checks whether values for this column need to be quoted in insert/update
stmts
true if values need to be wrapped in quotes |
|
|