|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.swing.tree.DefaultMutableTreeNode
com.finalist.jaggenerator.modules.Field
| Nested Class Summary |
| Nested classes inherited from class javax.swing.tree.DefaultMutableTreeNode |
|
| Field Summary | |
javax.swing.JCheckBox |
autoGeneratedCheckBox
|
javax.swing.JCheckBox |
foreignKeyCheckBox
|
javax.swing.JCheckBox |
primaryKeyCheckBox
|
javax.swing.JCheckBox |
requiredCheckBox
|
javax.swing.JTextField |
validationDependsText
|
| Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject |
| Constructor Summary | |
Field(Entity parent,
Column column)
Creates new form BeanForm |
|
Field(Entity parent,
org.w3c.dom.Element el)
Use for building up the entity field gui component |
|
| Method Summary | |
java.lang.String |
getColumnName()
|
TemplateString |
getForeignKey()
|
boolean |
getHasAutoGenPrimaryKey()
|
TemplateString |
getJdbcType()
|
java.lang.String |
getJdbcType(Column column)
|
TemplateString |
getName()
Returns the name of the field |
javax.swing.JPanel |
getPanel()
|
TemplateString |
getPrimaryKey()
|
java.lang.String |
getRefName()
|
Relation |
getRelation()
Gets the relation, if this field represents a container-managed relation field in its parent entity bean. |
java.lang.String |
getSize()
Return the size of a sql type in case it is a string type. |
TemplateString |
getSqlType()
|
java.lang.String |
getSqlType(Column column)
|
java.lang.String |
getType()
Returns the class that represents the primary key type |
java.lang.String |
getType(Column column)
|
java.lang.String |
getValidationDepends()
|
java.lang.String |
getValidationXml()
|
void |
getXML(org.w3c.dom.Element el)
|
boolean |
isForeignKey()
|
boolean |
isNullable()
Make the nullable field available. |
boolean |
isPkClassIsAutogeneratable()
|
boolean |
isPrimaryKey()
Indicates whether the field is part of the primary key. |
boolean |
isRelation()
|
boolean |
isRequired()
Return true if the field is required, so nullable is true. |
void |
regenerateValidations()
Regenerates the Struts validations for this field. |
void |
setForeignKey(boolean foreignKey)
Setter for this field, which specifies whether or not this Field is a foreign key field within its table. |
void |
setHasAutoGenPrimaryKey(boolean value)
|
void |
setJdbcType(java.lang.String text)
|
void |
setName(java.lang.String name)
Sets the name of the field |
void |
setPrimaryKey(boolean value)
A heap of things happen when you set a field as primary key - keep them all here! |
void |
setRelation(Relation relation)
|
void |
setSqlType(java.lang.String text)
|
void |
setType(java.lang.String text)
Set the field type |
java.lang.String |
toString()
|
| Methods inherited from class javax.swing.tree.DefaultMutableTreeNode |
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public javax.swing.JCheckBox autoGeneratedCheckBox
public javax.swing.JCheckBox foreignKeyCheckBox
public javax.swing.JCheckBox primaryKeyCheckBox
public javax.swing.JCheckBox requiredCheckBox
public javax.swing.JTextField validationDependsText
| Constructor Detail |
public Field(Entity parent,
Column column)
public Field(Entity parent,
org.w3c.dom.Element el)
| Method Detail |
public java.lang.String toString()
public javax.swing.JPanel getPanel()
getPanel in interface JagBeanpublic void getXML(org.w3c.dom.Element el)
getXML in interface JagBeanpublic TemplateString getSqlType()
public void setSqlType(java.lang.String text)
public TemplateString getJdbcType()
public void setJdbcType(java.lang.String text)
public TemplateString getPrimaryKey()
public TemplateString getForeignKey()
public java.lang.String getValidationDepends()
public java.lang.String getValidationXml()
public java.lang.String getType(Column column)
public java.lang.String getJdbcType(Column column)
public java.lang.String getSqlType(Column column)
public java.lang.String getRefName()
getRefName in interface JagBeanpublic boolean isPrimaryKey()
true if the field is part of the primary keypublic boolean getHasAutoGenPrimaryKey()
public void setHasAutoGenPrimaryKey(boolean value)
public void setForeignKey(boolean foreignKey)
foreignKey - public boolean isForeignKey()
public java.lang.String getType()
public void setType(java.lang.String text)
text - type.public TemplateString getName()
public void setName(java.lang.String name)
name - the name of the field.public java.lang.String getColumnName()
public Relation getRelation()
null if this field doesn't represent a relation.public void setRelation(Relation relation)
public boolean isRelation()
public boolean isNullable()
public boolean isRequired()
public java.lang.String getSize()
public void regenerateValidations()
public void setPrimaryKey(boolean value)
value - public boolean isPkClassIsAutogeneratable()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||