|
|||||||||||
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.Datasource
The 'JagBean' for handling datasource configuration.
Nested Class Summary |
Nested classes inherited from class javax.swing.tree.DefaultMutableTreeNode |
|
Field Summary | |
javax.swing.JComboBox |
jdbcURLCombo
|
javax.swing.JTextField |
jndiText
|
javax.swing.JComboBox |
mappingCombo
|
javax.swing.JPanel |
panel
|
javax.swing.JTextField |
passwordText
|
javax.swing.JTextField |
userNameText
|
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject |
Constructor Summary | |
Datasource()
Creates new form BeanForm |
|
Datasource(org.w3c.dom.Element el)
|
Method Summary | |
Database |
getDatabase()
Gets the database currently selected for the application. |
TemplateString |
getJdbcUrl()
|
TemplateString |
getJndiName()
|
javax.swing.JPanel |
getPanel()
|
TemplateString |
getPassword()
|
java.lang.String |
getRefName()
|
TemplateString |
getTypeMapping()
Convenience method: gets the database's appserver type mapping as a TemplateString. |
TemplateString |
getUserName()
|
void |
getXML(org.w3c.dom.Element el)
|
void |
setJdbcUrl(java.lang.String jdbcUrlText)
|
void |
setJndi(java.lang.String jndiText)
|
void |
setMapping(java.lang.String text)
|
void |
setPassword(java.lang.String passwordText)
|
void |
setSupportedDatabases(Database[] dbs)
Resets the dropdown list of supported databases. |
void |
setUserName(java.lang.String userNameText)
|
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.JComboBox jdbcURLCombo
public javax.swing.JTextField jndiText
public javax.swing.JComboBox mappingCombo
public javax.swing.JPanel panel
public javax.swing.JTextField passwordText
public javax.swing.JTextField userNameText
Constructor Detail |
public Datasource()
public Datasource(org.w3c.dom.Element el)
Method Detail |
public java.lang.String toString()
public javax.swing.JPanel getPanel()
getPanel
in interface JagBean
public void getXML(org.w3c.dom.Element el) throws javax.xml.parsers.ParserConfigurationException
getXML
in interface JagBean
javax.xml.parsers.ParserConfigurationException
public TemplateString getJndiName()
public void setMapping(java.lang.String text)
public void setJdbcUrl(java.lang.String jdbcUrlText)
public void setJndi(java.lang.String jndiText)
public void setPassword(java.lang.String passwordText)
public void setUserName(java.lang.String userNameText)
public Database getDatabase()
public TemplateString getTypeMapping()
public TemplateString getJdbcUrl()
public TemplateString getUserName()
public TemplateString getPassword()
public java.lang.String getRefName()
getRefName
in interface JagBean
public void setSupportedDatabases(Database[] dbs)
dbs
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |