|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthelma.objectmodel.db.DbColumn
public final class DbColumn
A class that encapsulates the Column name and data type of a column in a relational table.
Constructor Summary | |
---|---|
DbColumn(java.lang.String name,
int type,
Relation rel,
DbMapping dbmap)
Constructor |
Method Summary | |
---|---|
java.lang.String |
getName()
Get the column name. |
Relation |
getRelation()
Return the relation associated with this column. |
int |
getType()
Get this columns SQL data type. |
boolean |
isIdField()
Returns true if this column serves as ID field for the prototype. |
boolean |
isMapped()
Returns true if this field is mapped by the prototype's db mapping. |
boolean |
isNameField()
Returns true if this column serves as name field for the prototype. |
boolean |
isPrototypeField()
Returns true if this column serves as prototype field for the prototype. |
boolean |
needsQuotes()
Checks whether values for this column need to be quoted in insert/update stmts |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DbColumn(java.lang.String name, int type, Relation rel, DbMapping dbmap)
Method Detail |
---|
public java.lang.String getName()
public int getType()
public Relation getRelation()
public boolean isIdField()
public boolean isPrototypeField()
public boolean isNameField()
public boolean isMapped()
public boolean needsQuotes()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |