|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectto.etc.domui.component.meta.impl.DefaultClassMetaModel
public class DefaultClassMetaModel
This is a DomUI class metamodel info record that only contains data. It can be constructed by metamodel factories and filled in by calling the appropriate setters. When an instance of this class has been returned by a factory then it is NOT ALLOWED TO CHANGE IT ANYMORE(!) to maintain thread-safety.
Constructor Summary | |
---|---|
DefaultClassMetaModel(java.lang.Class<?> metaClass)
|
Method Summary | |
---|---|
QCriteria<?> |
createCriteria()
EXPERIMENTAL If this is a persistent class, this should create a base QCriteria instance to do queries on this class. |
PropertyMetaModel<?> |
findProperty(java.lang.String name)
This resolves a property path, starting at this class. |
PropertyMetaModel<?> |
findSimpleProperty(java.lang.String name)
Returns the named property on this class. |
java.lang.Class<?> |
getActualClass()
FIXME Questionable nullity |
BundleRef |
getClassBundle()
Return the class' resource bundle. |
java.lang.String |
getClassNameOnly()
|
java.lang.Class<? extends IComboDataSet<?>> |
getComboDataSet()
If this class is the UP in a relation this specifies that it must be shown as a COMBOBOX containing choices. |
java.util.List<DisplayPropertyMetaModel> |
getComboDisplayProperties()
If this object is shown in a combobox it needs to show the following properties as the display value. |
java.lang.Class<? extends ILabelStringRenderer<?>> |
getComboLabelRenderer()
When this relation-property is presented as a single field this can contain a class to render that field as a string. |
java.lang.Class<? extends INodeContentRenderer<?>> |
getComboNodeRenderer()
When set, the entire content of a combobox's OPTION tag can be generated by this content renderer. |
java.lang.String |
getComponentTypeHint()
When present this gives a hint to the component factories to help with choosing a proper component to select a single record of this type. |
SortableType |
getDefaultSortDirection()
When a ClassMetaModel.getDefaultSortProperty() is defined, this defines the sort order to use
initially. |
java.lang.String |
getDefaultSortProperty()
Contains the name of the property to use for sorting initially. |
java.lang.String |
getDomainLabel(java.util.Locale loc,
java.lang.Object value)
Retrieves a label value for the specified domain value. |
java.lang.Object[] |
getDomainValues()
If this class is an Enum or represents some enumerated value, this returns the possible value objects. |
java.util.List<SearchPropertyMetaModel> |
getKeyWordSearchProperties()
Returns the sorted list of key word search properties defined on this class. |
java.util.List<DisplayPropertyMetaModel> |
getLookupSelectedProperties()
When this class is to be selected as a parent in an UP relation using an InputLookup control this describes the properties to use to display the currently selected record in the edit page. |
java.lang.Class<? extends INodeContentRenderer<?>> |
getLookupSelectedRenderer()
When this class is to be selected as a parent in an UP relation using an InputLookup control this describes the renderer to use to display the currently selected record in the edit page. |
ICriteriaTableDef<?> |
getMetaTableDef()
|
PropertyMetaModel<?> |
getPrimaryKey()
Returns the property containing the primary key for this object, if one can be found. |
java.util.List<PropertyMetaModel<?>> |
getProperties()
|
java.util.List<SearchPropertyMetaModel> |
getSearchProperties()
Returns the SORTED list of search properties defined on this class. |
java.util.List<DisplayPropertyMetaModel> |
getTableDisplayProperties()
If this object is shown in a Table it needs to show the following properties there. |
java.lang.String |
getTableName()
If this is a persistent class that is directly mapped onto some table, this might return the table name. |
java.lang.String |
getUserEntityName()
Return a user-presentable entity name for this class. |
java.lang.String |
getUserEntityNamePlural()
Returns a user-presentable entity name as a plural name. |
boolean |
isPersistentClass()
|
void |
setComboDataSet(java.lang.Class<? extends IComboDataSet<?>> comboDataSet)
|
void |
setComboDisplayProperties(java.util.List<DisplayPropertyMetaModel> displayProperties)
|
void |
setComboLabelRenderer(java.lang.Class<? extends ILabelStringRenderer<?>> comboLabelRenderer)
|
void |
setComboNodeRenderer(java.lang.Class<? extends INodeContentRenderer<?>> comboNodeRenderer)
|
void |
setComponentTypeHint(java.lang.String componentTypeHint)
|
void |
setDefaultSortDirection(SortableType defaultSortDirection)
|
void |
setDefaultSortProperty(java.lang.String defaultSortProperty)
|
void |
setDomainValues(java.lang.Object[] domainValues)
|
void |
setKeyWordSearchProperties(java.util.List<SearchPropertyMetaModel> keyWordSearchProperties)
|
void |
setLookupSelectedProperties(java.util.List<DisplayPropertyMetaModel> lookupFieldDisplayProperties)
|
void |
setLookupSelectedRenderer(java.lang.Class<? extends INodeContentRenderer<?>> lookupFieldRenderer)
|
void |
setMetaTableDef(ICriteriaTableDef<?> metaTableDef)
|
void |
setPersistentClass(boolean persistentClass)
|
void |
setPrimaryKey(PropertyMetaModel<?> primaryKey)
|
void |
setSearchProperties(java.util.List<SearchPropertyMetaModel> searchProperties)
|
void |
setTableDisplayProperties(java.util.List<DisplayPropertyMetaModel> tableDisplayProperties)
|
void |
setTableName(java.lang.String tableName)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DefaultClassMetaModel(java.lang.Class<?> metaClass)
Method Detail |
---|
@Nonnull public BundleRef getClassBundle()
getClassBundle
in interface ClassMetaModel
@Nonnull public java.lang.String getUserEntityName()
getUserEntityName
in interface ClassMetaModel
ClassMetaModel.getUserEntityName()
@Nonnull public java.lang.String getUserEntityNamePlural()
getUserEntityNamePlural
in interface ClassMetaModel
ClassMetaModel.getUserEntityNamePlural()
@Nullable public PropertyMetaModel<?> findProperty(java.lang.String name)
findProperty
in interface ClassMetaModel
ClassMetaModel.findProperty(java.lang.String)
@Nullable public PropertyMetaModel<?> findSimpleProperty(java.lang.String name)
ClassMetaModel
findSimpleProperty
in interface ClassMetaModel
@Nonnull public java.util.List<PropertyMetaModel<?>> getProperties()
getProperties
in interface ClassMetaModel
@Nullable public java.lang.Class<? extends IComboDataSet<?>> getComboDataSet()
ClassMetaModel
getComboDataSet
in interface ClassMetaModel
public void setComboDataSet(@Nullable java.lang.Class<? extends IComboDataSet<?>> comboDataSet)
public java.lang.Class<? extends ILabelStringRenderer<?>> getComboLabelRenderer()
ClassMetaModel
getComboLabelRenderer
in interface ClassMetaModel
public void setComboLabelRenderer(java.lang.Class<? extends ILabelStringRenderer<?>> comboLabelRenderer)
public java.util.List<DisplayPropertyMetaModel> getComboDisplayProperties()
ClassMetaModel
getComboDisplayProperties
in interface ClassMetaModel
public void setComboDisplayProperties(java.util.List<DisplayPropertyMetaModel> displayProperties)
public java.lang.Class<? extends INodeContentRenderer<?>> getComboNodeRenderer()
ClassMetaModel
ClassMetaModel.getComboDisplayProperties()
,
ClassMetaModel.getComboLabelRenderer()
properties are ignored.
getComboNodeRenderer
in interface ClassMetaModel
public void setComboNodeRenderer(java.lang.Class<? extends INodeContentRenderer<?>> comboNodeRenderer)
@Nonnull public java.util.List<SearchPropertyMetaModel> getSearchProperties()
getSearchProperties
in interface ClassMetaModel
ClassMetaModel.getSearchProperties()
public void setSearchProperties(@Nonnull java.util.List<SearchPropertyMetaModel> searchProperties)
@Nonnull public java.util.List<SearchPropertyMetaModel> getKeyWordSearchProperties()
getKeyWordSearchProperties
in interface ClassMetaModel
ClassMetaModel.getKeyWordSearchProperties()
public void setKeyWordSearchProperties(@Nonnull java.util.List<SearchPropertyMetaModel> keyWordSearchProperties)
public java.lang.Class<?> getActualClass()
ClassMetaModel
getActualClass
in interface ClassMetaModel
public java.util.List<DisplayPropertyMetaModel> getTableDisplayProperties()
ClassMetaModel
LookupInput
search.
getTableDisplayProperties
in interface ClassMetaModel
public void setTableDisplayProperties(java.util.List<DisplayPropertyMetaModel> tableDisplayProperties)
public boolean isPersistentClass()
isPersistentClass
in interface ClassMetaModel
public void setPersistentClass(boolean persistentClass)
public java.lang.String getDefaultSortProperty()
ClassMetaModel
getDefaultSortProperty
in interface ClassMetaModel
public void setDefaultSortProperty(java.lang.String defaultSortProperty)
public SortableType getDefaultSortDirection()
ClassMetaModel
ClassMetaModel.getDefaultSortProperty()
is defined, this defines the sort order to use
initially.
getDefaultSortDirection
in interface ClassMetaModel
public void setDefaultSortDirection(SortableType defaultSortDirection)
public java.lang.Class<? extends INodeContentRenderer<?>> getLookupSelectedRenderer()
ClassMetaModel.getLookupSelectedProperties()
.
getLookupSelectedRenderer
in interface ClassMetaModel
public void setLookupSelectedRenderer(java.lang.Class<? extends INodeContentRenderer<?>> lookupFieldRenderer)
public java.util.List<DisplayPropertyMetaModel> getLookupSelectedProperties()
getLookupSelectedProperties
in interface ClassMetaModel
public void setLookupSelectedProperties(java.util.List<DisplayPropertyMetaModel> lookupFieldDisplayProperties)
public java.lang.String getComponentTypeHint()
getComponentTypeHint
in interface ClassMetaModel
public void setComponentTypeHint(java.lang.String componentTypeHint)
public PropertyMetaModel<?> getPrimaryKey()
ClassMetaModel
getPrimaryKey
in interface ClassMetaModel
public void setPrimaryKey(PropertyMetaModel<?> primaryKey)
public java.lang.String getTableName()
ClassMetaModel
getTableName
in interface ClassMetaModel
public void setTableName(java.lang.String tableName)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object[] getDomainValues()
ClassMetaModel
getDomainValues
in interface ClassMetaModel
public void setDomainValues(java.lang.Object[] domainValues)
public java.lang.String getClassNameOnly()
@Nullable public java.lang.String getDomainLabel(java.util.Locale loc, java.lang.Object value)
getDomainLabel
in interface ClassMetaModel
ClassMetaModel.getDomainLabel(java.util.Locale, java.lang.Object)
@Nullable public ICriteriaTableDef<?> getMetaTableDef()
public void setMetaTableDef(@Nullable ICriteriaTableDef<?> metaTableDef)
@Nonnull public QCriteria<?> createCriteria() throws java.lang.Exception
Needs evaluation.
createCriteria
in interface ClassMetaModel
java.lang.Exception
ClassMetaModel.createCriteria()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |