|
|||||||||
| 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
A Entity contains Attributes which are usable in reporting
| Constructor Summary | |
|---|---|
Entity(String id,
String name,
String c,
String table,
String alias,
Resource res)
public contstructer |
|
| Method Summary | |
|---|---|
void |
addAttribute(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)
|
String |
getAlias()
|
Element |
getAsDomElement()
|
Attribute |
getAttribute(String key)
|
HashMap<String,Attribute> |
getAttributes()
returns all Attributes of this Entity |
String |
getId()
|
String |
getLocalizedName()
|
String |
getName()
|
static String |
getName(String id)
|
List<com.groiss.reporting.data.impl.Relation> |
getRelations()
|
Resource |
getResource()
|
List<com.groiss.reporting.data.impl.Condition> |
getSelections()
|
String |
getSelectionString(String prefix)
|
String |
getTable()
|
Class<?> |
getType()
|
void |
setAlias(String alias)
|
void |
setName(String name)
|
void |
setTable(String table)
|
void |
setType(Class<?> type)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Entity(String id,
String name,
String c,
String table,
String alias,
Resource res)
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 String getId()
public String getName()
public String getLocalizedName()
public Class<?> getType()
public String getTable()
public HashMap<String,Attribute> getAttributes()
public void addAttribute(String key,
Attribute a)
key - the attribute ida - the attributepublic Resource getResource()
public Attribute getAttribute(String key)
key - - the attribute id
public String toString()
toString in class Objectpublic void addRelation(com.groiss.reporting.data.impl.Relation r)
public 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 List<com.groiss.reporting.data.impl.Condition> getSelections()
public String getSelectionString(String prefix)
prefix - - the table alias get a correct sql syntax
public String getAlias()
public static String getName(String id)
public Element getAsDomElement()
public void setAlias(String alias)
public void setName(String name)
public void setTable(String table)
public void setType(Class<?> type)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||