Package com.groiss.reporting.data
Interface Entity
public interface Entity
An
Entity
describes a table/view in the DB. Use reporting.xml to define entities-
Method Details
-
getEntity
get theEntity
as described in reporting.xml- Parameters:
key
-- Returns:
-
getId
String getId()- Returns:
- the entity's id
-
getName
String getName()- Returns:
- the entity's name
-
getLocalizedName
String getLocalizedName() -
getAlias
String getAlias()- Returns:
- the entity's alias
-
getTable
String getTable()- Returns:
- the entity's tablename
-
getResource
Resource getResource()- Returns:
- the
Resource
used for i18n
-
getSelectionString
entities may have a hard-coded sql-condition.- Parameters:
prefix
-q
-- Returns:
- the predefined condition for this entity
-
getAsDomElement
Element getAsDomElement()- Returns:
- the
<entity>
element as defined in reporting.xml
-
getType
Class<?> getType()- Returns:
- the
Persistent
type associated with this entity
-
getAttribute
- Parameters:
attribute
- the attribute id- Returns:
- the attribute with the given id
-
getAttributes
- Returns:
- all attributes registered with this entity
-