Package org.openxava.model.meta
Class MetaEntity
- java.lang.Object
-
- org.openxava.util.meta.MetaElement
-
- org.openxava.model.meta.MetaModel
-
- org.openxava.model.meta.MetaEntity
-
- All Implemented Interfaces:
java.io.Serializable
public class MetaEntity extends MetaModel
- Author:
- Javier Paniza
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MetaEntity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getId()
Unique id of element, normally used to search the label in the resources files.java.util.Collection
getKeyFields()
ModelMapping
getMapping()
java.lang.Class
getPropertiesClass()
Class that contains the properties defined in this model.boolean
hasHiddenKeys()
If has key fields that aren't properties hence does not math with key properties.boolean
isKey(java.lang.String propertyName)
-
Methods inherited from class org.openxava.model.meta.MetaModel
addInterfaceName, addMetaCalculatorPostCreate, addMetaCalculatorPostLoad, addMetaCalculatorPostModify, addMetaCalculatorPreRemove, addMetaCollection, addMetaFinder, addMetaMethod, addMetaProperty, addMetaReference, addMetaValidator, addMetaValidatorRemove, addMetaView, containsMetaCollection, containsMetaProperty, containsMetaPropertyView, containsMetaReference, containsMetaReferenceWithModel, containsValidadors, existsForPOJOClass, extractKeyValues, extractKeyValuesFlattenEmbeddedIds, extractSearchKeyValues, fillPOJO, get, getAggregateReferencesNames, getAllKeyPropertiesNames, getAllKeyPropertiesNamesOrderedAsInModel, getAllMetaPropertiesKey, getAllPersistent, getAllPojoGenerated, getCalculatedPropertiesNames, getColectionsNames, getContainerModelName, getContainerReference, getEntityReferencesNames, getForPOJO, getForPOJOClass, getImplements, getInterfaceName, getInterfacesNames, getKeyPropertiesNames, getKeyReferencesNames, getMembersNames, getMembersNamesNestingAggregates, getMetaAggregateReferences, getMetaCalculatorPostCreate, getMetaCalculatorPostLoad, getMetaCalculatorPostModify, getMetaCalculatorPreRemove, getMetaCalculatorsPostCreate, getMetaCalculatorsPostLoad, getMetaCalculatorsPostModify, getMetaCalculatorsPreRemove, getMetaColectionsWithConditionReferenceTo, getMetaCollection, getMetaCollections, getMetaCollectionsAgregate, getMetaCollectionsWithConditionInOthersModels, getMetaComponent, getMetaEntityReferences, getMetaFinders, getMetaMember, getMetaMembersKey, getMetaMethod, getMetaMethods, getMetaModelContainer, getMetaProperties, getMetaPropertiesCalculated, getMetaPropertiesKey, getMetaPropertiesPersistents, getMetaPropertiesPersistentsFromReference, getMetaPropertiesView, getMetaPropertiesViewWithDefaultCalculator, getMetaPropertiesWithDefaultValueCalculator, getMetaPropertiesWithDefaultValueOnCreate, getMetaProperty, getMetaPropertyView, getMetaReference, getMetaReferences, getMetaReferencesKey, getMetaReferencesKeyAndSearchKey, getMetaReferencesToEntity, getMetaReferencesWithDefaultValueCalculator, getMetaReferencesWithMapping, getMetaValidators, getMetaValidatorsRemove, getMetaView, getMetaViewByDefault, getMetaViewOnlyKeys, getMetaViews, getOnlyReadPropertiesNames, getOnlyReadWithFormulaPropertiesNames, getPersistentPropertiesNames, getPOJOClass, getPOJOClassName, getPOJOKeyClass, getPropertiesNames, getPropertiesNamesWithoutHiddenNorTransient, getQualifiedName, getRecursiveQualifiedPropertiesNames, getRecursiveQualifiedPropertiesNamesIncludingCollections, getRecursiveQualifiedPropertiesNamesUntilSecondLevel, getRecursiveQualifiedPropertiesNamesUntilSecondLevelIncludingCollections, getReferencesNames, getRequiredMemberNames, getRequiredPropertiesNames, getVersionPropertyName, getViewPropertiesNames, hasDateTimeProperty, hasDefaultCalculatorOnCreate, hasHiddenKey, hasVersionProperty, isAnnotatedEJB3, isCalculated, isHiddenKey, isKeyOrSearchKey, isPOJOAvailable, isPojoGenerated, isVersion, isXmlComponent, setAnnotatedEJB3, setContainerModelName, setContainerReference, setMetaComponent, setPOJOClassName, setPojoGenerated, setPOJOKeyClass, setQualifiedName, setXmlComponent, someModelHasDefaultCalculatorOnCreate, someModelHasPostCreateCalculator, someModelHasPostLoadCalculator, someModelHasPostModifyCalculator, someModelHasPreRemoveCalculator, toKeyMap, toMap, toPOJO, toString, toString, toString
-
Methods inherited from class org.openxava.util.meta.MetaElement
getDescription, getDescription, getDescription, getDescription, getLabel, getLabel, getLabel, getLabel, getLocale, getName, getPlaceholder, getPlaceholder, getPlaceholder, has18nLabel, hasName, setDescription, setLabel, setName, setPlaceholder
-
-
-
-
Method Detail
-
getKeyFields
public java.util.Collection getKeyFields() throws XavaException
- Returns:
- The names of key fields. Of String.
- Throws:
XavaException
-
isKey
public boolean isKey(java.lang.String propertyName) throws XavaException
- Overrides:
isKey
in classMetaModel
- Throws:
XavaException
-
getPropertiesClass
public java.lang.Class getPropertiesClass() throws XavaException
Description copied from class:MetaModel
Class that contains the properties defined in this model.- Overrides:
getPropertiesClass
in classMetaModel
- Returns:
- Not null
- Throws:
XavaException
-
hasHiddenKeys
public boolean hasHiddenKeys() throws XavaException
If has key fields that aren't properties hence does not math with key properties.- Throws:
XavaException
-
getId
public java.lang.String getId()
Description copied from class:MetaElement
Unique id of element, normally used to search the label in the resources files.- Specified by:
getId
in classMetaElement
-
getMapping
public ModelMapping getMapping() throws XavaException
- Specified by:
getMapping
in classMetaModel
- Throws:
XavaException
-
-