|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.groiss.reporting.data.Entity
public class Entity
A Entity contains Attributes which are usable in reporting
Constructor Summary | |
---|---|
Entity(java.lang.String id,
java.lang.String name,
java.lang.String c,
java.lang.String table,
java.lang.String alias,
Resource res)
public constructor |
Method Summary | |
---|---|
void |
addAttribute(java.lang.String key,
Attribute a)
adding a new attribute to the entity |
void |
addRelation(com.groiss.reporting.data.impl.Relation r)
|
void |
addSelection(com.groiss.reporting.data.impl.Condition c)
adding a selection condition |
boolean |
containsRelation(com.groiss.reporting.data.impl.Relation r)
|
java.lang.String |
getAlias()
|
org.jdom.Element |
getAsDomElement()
|
Attribute |
getAttribute(java.lang.String key)
|
java.util.HashMap<java.lang.String,Attribute> |
getAttributes()
returns all Attributes of this Entity |
java.lang.String |
getId()
|
java.lang.String |
getLocalizedName()
|
java.lang.String |
getName()
|
static java.lang.String |
getName(java.lang.String id)
|
java.util.List<com.groiss.reporting.data.impl.Relation> |
getRelations()
|
Resource |
getResource()
|
java.util.List<com.groiss.reporting.data.impl.Condition> |
getSelections()
|
java.lang.String |
getSelectionString(java.lang.String prefix)
|
java.lang.String |
getTable()
|
java.lang.Class<?> |
getType()
|
void |
setAlias(java.lang.String alias)
|
void |
setName(java.lang.String name)
|
void |
setTable(java.lang.String table)
|
void |
setType(java.lang.Class<?> type)
|
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, Resource res)
id
- - the id of the entityname
- - the name of the entityc
- - The name of the Persistent implementation of this entitytable
- - the database table namealias
- - the default table aliasMethod Detail |
---|
public java.lang.String getId()
public java.lang.String getName()
public java.lang.String getLocalizedName()
public java.lang.Class<?> getType()
public java.lang.String getTable()
public java.util.HashMap<java.lang.String,Attribute> getAttributes()
public void addAttribute(java.lang.String key, Attribute a)
key
- the attribute ida
- the attributepublic Resource getResource()
public Attribute getAttribute(java.lang.String key)
key
- - the attribute id
public java.lang.String toString()
toString
in class java.lang.Object
public void addRelation(com.groiss.reporting.data.impl.Relation r)
public java.util.List<com.groiss.reporting.data.impl.Relation> getRelations()
public boolean containsRelation(com.groiss.reporting.data.impl.Relation r)
public void addSelection(com.groiss.reporting.data.impl.Condition c)
c
- - the condition, which expressions the selectionpublic java.util.List<com.groiss.reporting.data.impl.Condition> 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()
public void setAlias(java.lang.String alias)
public void setName(java.lang.String name)
public void setTable(java.lang.String table)
public void setType(java.lang.Class<?> type)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |