|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectto.etc.domui.component.meta.impl.ClassMetaModelWrapper
public class ClassMetaModelWrapper
This class can be used as a "proxy class" or "delegate class" to another ClassMetaModel instance. You can then override the methods you need changed only while all others are delegated to the original metamodel.
Constructor Summary | |
---|---|
protected |
ClassMetaModelWrapper(ClassMetaModel parent)
|
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)
Returns a property reference to the specified property by following the dotted 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()
Returns the message bundle for translations related to this class. |
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)
For a Domain type (Enum, Boolean) this returns a label for a given domain value, or null if no label is defined. |
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. |
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 (singular) for this class. |
java.lang.String |
getUserEntityNamePlural()
Returns the name of this entity in user terms; the returned name is plural. |
ClassMetaModel |
getWrappedModel()
|
boolean |
isPersistentClass()
|
void |
setWrappedModel(ClassMetaModel parent)
WATCH OUT: Should only be used when initializing outside the constructor; should not change after this has been passed to user code. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected ClassMetaModelWrapper(ClassMetaModel parent)
Method Detail |
---|
public ClassMetaModel getWrappedModel()
public void setWrappedModel(ClassMetaModel parent)
parent
- public PropertyMetaModel<?> findProperty(java.lang.String name)
ClassMetaModel
findProperty
in interface ClassMetaModel
public PropertyMetaModel<?> findSimpleProperty(java.lang.String name)
ClassMetaModel
findSimpleProperty
in interface ClassMetaModel
public java.lang.Class<?> getActualClass()
ClassMetaModel
getActualClass
in interface ClassMetaModel
public BundleRef getClassBundle()
ClassMetaModel
getClassBundle
in interface ClassMetaModel
public java.lang.Class<? extends IComboDataSet<?>> getComboDataSet()
ClassMetaModel
getComboDataSet
in interface ClassMetaModel
public java.util.List<DisplayPropertyMetaModel> getComboDisplayProperties()
ClassMetaModel
getComboDisplayProperties
in interface ClassMetaModel
public java.lang.Class<? extends ILabelStringRenderer<?>> getComboLabelRenderer()
ClassMetaModel
getComboLabelRenderer
in interface ClassMetaModel
public java.lang.Class<? extends INodeContentRenderer<?>> getComboNodeRenderer()
ClassMetaModel
ClassMetaModel.getComboDisplayProperties()
,
ClassMetaModel.getComboLabelRenderer()
properties are ignored.
getComboNodeRenderer
in interface ClassMetaModel
public java.lang.String getComponentTypeHint()
ClassMetaModel
getComponentTypeHint
in interface ClassMetaModel
public SortableType getDefaultSortDirection()
ClassMetaModel
ClassMetaModel.getDefaultSortProperty()
is defined, this defines the sort order to use
initially.
getDefaultSortDirection
in interface ClassMetaModel
public java.lang.String getDefaultSortProperty()
ClassMetaModel
getDefaultSortProperty
in interface ClassMetaModel
public java.lang.String getDomainLabel(java.util.Locale loc, java.lang.Object value)
ClassMetaModel
getDomainLabel
in interface ClassMetaModel
public java.lang.Object[] getDomainValues()
ClassMetaModel
getDomainValues
in interface ClassMetaModel
public java.util.List<SearchPropertyMetaModel> getKeyWordSearchProperties()
ClassMetaModel
LookupInput
to define the "search-as-I-type" functionality.
The value gets set from either the MetaSearch
or the MetaSearch
annotations.
getKeyWordSearchProperties
in interface ClassMetaModel
public java.util.List<DisplayPropertyMetaModel> getLookupSelectedProperties()
ClassMetaModel
getLookupSelectedProperties
in interface ClassMetaModel
public java.lang.Class<? extends INodeContentRenderer<?>> getLookupSelectedRenderer()
ClassMetaModel
ClassMetaModel.getLookupSelectedProperties()
.
getLookupSelectedRenderer
in interface ClassMetaModel
public PropertyMetaModel<?> getPrimaryKey()
ClassMetaModel
getPrimaryKey
in interface ClassMetaModel
public java.util.List<PropertyMetaModel<?>> getProperties()
getProperties
in interface ClassMetaModel
public java.util.List<SearchPropertyMetaModel> getSearchProperties()
ClassMetaModel
LookupInput
and LookupForm
. The value gets set from either the MetaSearch
or
the MetaSearch
annotations.
getSearchProperties
in interface ClassMetaModel
public java.util.List<DisplayPropertyMetaModel> getTableDisplayProperties()
ClassMetaModel
LookupInput
search.
getTableDisplayProperties
in interface ClassMetaModel
public java.lang.String getTableName()
ClassMetaModel
getTableName
in interface ClassMetaModel
public java.lang.String getUserEntityName()
ClassMetaModel
getUserEntityName
in interface ClassMetaModel
public java.lang.String getUserEntityNamePlural()
ClassMetaModel
getUserEntityNamePlural
in interface ClassMetaModel
public boolean isPersistentClass()
isPersistentClass
in interface ClassMetaModel
public QCriteria<?> createCriteria() throws java.lang.Exception
ClassMetaModel
Needs evaluation.
createCriteria
in interface ClassMetaModel
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |