public class DynamicViewEntity extends Object
Modifier and Type | Field and Description |
---|---|
protected List<ModelViewEntity.ModelAliasAll> |
aliasAlls
List of alias-alls which act as a shortcut for easily pulling over member entity fields
|
protected List<ModelViewEntity.ModelAlias> |
aliases
List of aliases with information in addition to what is in the standard field list
|
protected String |
defaultResourceName
The default-resource-name of the Entity, used with the getResource call to check for a value in a resource bundle
|
protected String |
entityName
The entity-name of the Entity
|
protected List<String> |
groupBy
List of fields to group by
|
protected Map<String,ModelViewEntity.ModelMemberEntity> |
memberModelMemberEntities
Contains member-entity alias name definitions: key is alias, value is ModelMemberEntity
|
static String |
module |
protected String |
packageName
The package-name of the Entity
|
protected List<ModelRelation> |
relations
relations defining relationships between this entity and other entities
|
protected String |
title
The title for documentation purposes
|
protected List<ModelViewEntity.ModelViewLink> |
viewLinks
List of view links to define how entities are connected (or "joined")
|
Constructor and Description |
---|
DynamicViewEntity() |
Modifier and Type | Method and Description |
---|---|
void |
addAlias(String entityAlias,
String name) |
void |
addAlias(String entityAlias,
String name,
String field,
String colAlias,
Boolean primKey,
Boolean groupBy,
String function)
Add an alias, full detail.
|
void |
addAlias(String entityAlias,
String name,
String field,
String colAlias,
Boolean primKey,
Boolean groupBy,
String function,
ModelViewEntity.ComplexAliasMember complexAliasMember) |
void |
addAlias(String entityAlias,
String name,
String field,
String colAlias,
Boolean primKey,
Boolean groupBy,
String function,
String fieldSet,
ModelViewEntity.ComplexAliasMember complexAliasMember) |
void |
addAliasAll(String entityAlias,
String prefix)
Deprecated.
|
void |
addAliasAll(String entityAlias,
String prefix,
Collection<String> excludes) |
void |
addAllAliasAllsToList(List<ModelViewEntity.ModelAliasAll> addList) |
void |
addAllAliasesToList(List<ModelViewEntity.ModelAlias> addList) |
void |
addAllGroupByFieldsToList(List<String> addList) |
void |
addAllRelationsToList(List<ModelRelation> addList) |
void |
addAllViewLinksToList(List<ModelViewEntity.ModelViewLink> addList) |
void |
addMemberEntity(String entityAlias,
String entityName) |
void |
addRelation(String type,
String title,
String relEntityName,
List<ModelKeyMap> modelKeyMaps) |
void |
addViewLink(String entityAlias,
String relEntityAlias,
Boolean relOptional,
List<ModelKeyMap> modelKeyMaps) |
String |
getDefaultResourceName()
Getter for property defaultResourceName.
|
String |
getEntityName()
Getter for property entityName.
|
Iterator<Map.Entry<String,ModelViewEntity.ModelMemberEntity>> |
getModelMemberEntitiesEntryIter() |
String |
getOneRealEntityName() |
String |
getPackageName()
Getter for property packageName.
|
String |
getTitle()
Getter for property title.
|
Element |
getViewElement(Document doc,
String entityName) |
String |
getViewXml(String entityName) |
ModelViewEntity |
makeModelViewEntity(Delegator delegator) |
void |
setDefaultResourceName(String defaultResourceName)
Setter for property defaultResourceName.
|
void |
setEntityName(String entityName)
Setter for property entityName.
|
void |
setGroupBy(List<String> groupBy) |
void |
setPackageName(String packageName)
Setter for property packageName.
|
void |
setTitle(String title)
Setter for property title.
|
public static final String module
protected String entityName
protected String packageName
protected String defaultResourceName
protected String title
protected Map<String,ModelViewEntity.ModelMemberEntity> memberModelMemberEntities
protected List<ModelViewEntity.ModelAliasAll> aliasAlls
protected List<ModelViewEntity.ModelAlias> aliases
protected List<ModelViewEntity.ModelViewLink> viewLinks
protected List<ModelRelation> relations
public ModelViewEntity makeModelViewEntity(Delegator delegator)
public String getViewXml(String entityName) throws IOException
IOException
public String getOneRealEntityName()
public String getEntityName()
public void setEntityName(String entityName)
entityName
- New value of property entityName.public String getPackageName()
public void setPackageName(String packageName)
packageName
- New value of property packageName.public String getDefaultResourceName()
public void setDefaultResourceName(String defaultResourceName)
defaultResourceName
- New value of property defaultResourceName.public String getTitle()
public void setTitle(String title)
title
- New value of property title.public Iterator<Map.Entry<String,ModelViewEntity.ModelMemberEntity>> getModelMemberEntitiesEntryIter()
@Deprecated public void addAliasAll(String entityAlias, String prefix)
addAliasAll(String, String, Collection)
public void addAliasAll(String entityAlias, String prefix, Collection<String> excludes)
public void addAllAliasAllsToList(List<ModelViewEntity.ModelAliasAll> addList)
public void addAlias(String entityAlias, String name, String field, String colAlias, Boolean primKey, Boolean groupBy, String function)
public void addAlias(String entityAlias, String name, String field, String colAlias, Boolean primKey, Boolean groupBy, String function, ModelViewEntity.ComplexAliasMember complexAliasMember)
public void addAlias(String entityAlias, String name, String field, String colAlias, Boolean primKey, Boolean groupBy, String function, String fieldSet, ModelViewEntity.ComplexAliasMember complexAliasMember)
public void addAllAliasesToList(List<ModelViewEntity.ModelAlias> addList)
public void addViewLink(String entityAlias, String relEntityAlias, Boolean relOptional, List<ModelKeyMap> modelKeyMaps)
public void addAllViewLinksToList(List<ModelViewEntity.ModelViewLink> addList)
public void addRelation(String type, String title, String relEntityName, List<ModelKeyMap> modelKeyMaps)
public void addAllRelationsToList(List<ModelRelation> addList)