|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sri.emo.dbobj.PartsFactory
public class PartsFactory
Factory for determing the parts of each type of node.
Field Summary | |
---|---|
static String |
DELIMITER
|
Constructor Summary | |
---|---|
PartsFactory()
|
Method Summary | |
---|---|
static void |
addFakeType(NodeType type)
add a new fake type; fake types are just used for getting list of all types (for footer) |
static void |
addType(NodeType type)
add a new type; typically, there will be no parts associated with new type, but an empty array will be added to hash |
static Hashtable |
getAllParts()
|
static Part |
getAttribPart(String srcNodetype,
String attribName)
|
static String |
getAttributeType(String type,
int attribNum)
necessary since the JSP doesn't know anything, but must iterate to display attributes and send back edits with some discernable connection between input text and attribute destination. |
static TreeSet |
getEntities()
|
static NodeType |
getEntity(String nodeType)
|
static ArrayList |
getFakeEntities()
|
static org.apache.log4j.Category |
getLogger()
convenience for getting logger for current (sub) class |
static Part |
getPart(int partId)
convenience method to get part from ID; hits db, so not as effective as other methods which retrieve from hash table. |
static Part |
getPart(String partId)
convenience method to get part from ID; hits db, so not as effective as other methods which retrieve from hash table. |
static Part |
getPart(String parentType,
String partType,
String relation)
|
static Part[] |
getParts(String nodeType)
|
static Part[] |
getPartsWithPicklists()
|
static void |
refreshCache(String parentType)
after adding or deleting parts, call this |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DELIMITER
Constructor Detail |
---|
public PartsFactory()
Method Detail |
---|
public static void addType(NodeType type) throws DBException
DBException
public static void addFakeType(NodeType type) throws DBException
DBException
public static Part[] getParts(String nodeType)
public static String getAttributeType(String type, int attribNum) throws DBException
type
- type of nodeattribNum
- number of attribute in parts list of node
DBException
public static Part getAttribPart(String srcNodetype, String attribName)
public static Part[] getPartsWithPicklists() throws DBException
DBException
public static Hashtable getAllParts()
public static Part getPart(String parentType, String partType, String relation) throws DBException
relation
- relation for this part; pass in null for owned attributes
DBException
public static void refreshCache(String parentType) throws DBException
DBException
public static NodeType getEntity(String nodeType)
public static TreeSet getEntities()
for a complete list of DB entries, though it is less efficient than this method
,
addType(com.sri.emo.dbobj.NodeType)
,
getFakeEntities()
public static ArrayList getFakeEntities()
addFakeType(com.sri.emo.dbobj.NodeType)
public static org.apache.log4j.Category getLogger()
public static Part getPart(int partId) throws DBException
DBException
public static Part getPart(String partId) throws DBException
DBException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |