|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--xcodegen.structure.XObject | +--xcodegen.structure.XClass
Class descriptor
Field Summary | |
static java.util.Map |
all
All the classes indexed by their long name |
static java.lang.String |
INHERITED_PK_COLUMN
Name of the inherited Primary key |
Constructor Summary | |
XClass()
|
Method Summary | |
java.lang.String |
getAuthor()
|
XField |
getField(java.lang.String name)
Get a field by its name |
java.util.Collection |
getFields()
|
java.util.Collection |
getFields(boolean superfields)
Return the fields of the class |
protected java.lang.String |
getFieldsAsCSV()
Return the list of field as ComaSeparatedValued in the format |
XFinder |
getFinder(java.lang.String name)
Get a finder by its name |
java.util.Collection |
getFinders()
|
XField |
getPk()
|
java.lang.String |
getPkColumn()
Return the name of the PrimaryKey column. |
XRemover |
getRemover(java.lang.String name)
Get a remover by its name |
java.util.Collection |
getRemovers()
|
XRule |
getRule(java.lang.String name)
Get a rule by its name |
java.util.Collection |
getRules()
|
java.lang.String |
getSQLDelete()
Return the DELETE SQL statement |
java.lang.String |
getSQLInsert()
Return the INSERT SQL statement |
java.lang.String |
getSQLSelect()
Return the SELECT SQL statement |
java.lang.String |
getSQLUpdate()
Return the UPDATE SQL statement |
XClass |
getSuperclass()
|
XField |
getSuperPk()
Return the super PrimaryKey. |
java.lang.String |
getTable()
|
java.lang.String |
getVersion()
|
boolean |
init(org.w3c.dom.Element elt,
XObject parent,
java.util.Collection errors)
Initialize the object from a XML DOM Element |
Methods inherited from class xcodegen.structure.XObject |
add, addError, getBeanName, getChild, getChild, getChildren, getChildren, getDescription, getLogger, getLongName, getName, getParent, getXMLChild, getXMLChildText, getXMLChildText, getXMLText, hasChild, initChildren, trimXMLText |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String INHERITED_PK_COLUMN
public static java.util.Map all
Constructor Detail |
public XClass()
Method Detail |
public boolean init(org.w3c.dom.Element elt, XObject parent, java.util.Collection errors) throws java.lang.Exception
XObject
init
in class XObject
elt
- DOM element containing the configurationparent
- Parent objecterrors
- list of all the errors
java.lang.Exception
public java.lang.String getAuthor()
public java.lang.String getVersion()
public XClass getSuperclass()
public java.lang.String getTable()
public XField getPk()
public java.util.Collection getFields()
public java.util.Collection getRules()
public java.util.Collection getFinders()
public java.util.Collection getRemovers()
public XField getSuperPk()
public java.lang.String getPkColumn()
INHERITED_PK_COLUMN
public XField getField(java.lang.String name)
name
- name of the field requested
public java.util.Collection getFields(boolean superfields)
superfields
- include fields of the super class?
public XFinder getFinder(java.lang.String name)
name
- name of the finder requested
public XRemover getRemover(java.lang.String name)
name
- name of the remover requested
public XRule getRule(java.lang.String name)
name
- name of the rule requested
public java.lang.String getSQLDelete()
public java.lang.String getSQLInsert()
public java.lang.String getSQLUpdate()
public java.lang.String getSQLSelect()
protected java.lang.String getFieldsAsCSV()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |