|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.onemind.commons.java.sql.MetaData
A MetaData contains metadata about a database table
Constructor Summary | |
MetaData(java.lang.String name)
create a MetaData with id id |
|
MetaData(java.lang.String name,
java.lang.String idFieldName)
create a MetaData with id id and primaryke pj |
Method Summary | |
void |
addField(Field field)
add a new field |
Field |
getField(java.lang.String name)
get the field with id name |
java.util.Map |
getFields()
get the fields in this MetaData |
java.lang.String |
getId()
return the id of the MetaData |
Field |
getIdField()
return the primary key field |
java.lang.String |
getIdFieldName()
Return the id field name |
boolean |
hasField(java.lang.String name)
return whether there's a field with id name |
void |
setFields(java.util.Map fields)
set the fields of the MetaData |
void |
setIdFieldName(java.lang.String string)
Set the id field name |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MetaData(java.lang.String name)
name
- the namepublic MetaData(java.lang.String name, java.lang.String idFieldName)
name
- the nameidFieldName
- the unique identifier field nameMethod Detail |
public void addField(Field field)
field
- the fieldpublic Field getField(java.lang.String name)
name
- the name
public java.util.Map getFields()
public java.lang.String getId()
public Field getIdField()
public java.lang.String getIdFieldName()
public boolean hasField(java.lang.String name)
name
- the field name
public void setFields(java.util.Map fields)
fields
- the fieldspublic void setIdFieldName(java.lang.String string)
string
- the id field name
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |