|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.groiss.reporting.data.Entity
public class Entity
| Constructor Summary | |
|---|---|
Entity(java.lang.String id,
java.lang.String name,
java.lang.String c,
java.lang.String table,
java.lang.String alias)
public contstructer |
|
| Method Summary | |
|---|---|
void |
addAttribute(java.lang.String key,
Attribute a)
adding a new attribute to the entity |
void |
addRelation(Relation r)
|
void |
addSelection(Condition c)
adding a selection condition |
boolean |
containsRelation(Relation r)
|
java.lang.String |
getAlias()
|
org.jdom.Element |
getAsDomElement()
|
Attribute |
getAttribute(java.lang.String key)
|
java.util.HashMap |
getAttributes()
returns all Attributes of this Entity |
java.lang.String |
getId()
|
java.lang.String |
getName()
|
static java.lang.String |
getName(java.lang.String id)
|
java.util.Vector |
getRelations()
|
java.util.Vector |
getSelections()
|
java.lang.String |
getSelectionString(java.lang.String prefix)
|
java.lang.String |
getTable()
|
java.lang.Class |
getType()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Entity(java.lang.String id,
java.lang.String name,
java.lang.String c,
java.lang.String table,
java.lang.String alias)
id - - the id of the entityname - - the name of the entityc - - The name of the Persisent implementation of this entitytable - - the database tablenamealias - - the default tablealias| Method Detail |
|---|
public java.lang.String getId()
public java.lang.String getName()
public java.lang.Class getType()
public java.lang.String getTable()
public java.util.HashMap getAttributes()
public void addAttribute(java.lang.String key,
Attribute a)
key - the attribute ida - the attributepublic Attribute getAttribute(java.lang.String key)
key - - the attribute id
public java.lang.String toString()
toString in class java.lang.Objectpublic void addRelation(Relation r)
public java.util.Vector getRelations()
public boolean containsRelation(Relation r)
public void addSelection(Condition c)
c - - the condition, which expressions the selectionpublic java.util.Vector getSelections()
public java.lang.String getSelectionString(java.lang.String prefix)
prefix - - the table alias get a correct sql syntax
public java.lang.String getAlias()
public static java.lang.String getName(java.lang.String id)
public org.jdom.Element getAsDomElement()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||