org.openxava.model.meta
Class MetaEntity

java.lang.Object
  extended by org.openxava.util.meta.MetaElement
      extended by org.openxava.model.meta.MetaModel
          extended by 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
MetaEntity()
           
 
Method Summary
 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, fillPOJO, get, getAggregateReferencesNames, getAllKeyPropertiesNames, getAllMetaPropertiesKey, getAllPersistent, getAllPojoGenerated, getCalculatedPropertiesNames, getColectionsNames, getContainerModelName, getContainerReference, getEntityReferencesNames, getForPOJO, getForPOJOClass, getImplements, getInterfaceName, getInterfacesNames, getKeyPropertiesNames, getKeyReferencesNames, getMembersNames, 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, getMetaViews, getOnlyReadPropertiesNames, getOnlyReadWithFormulaPropertiesNames, getPersistentPropertiesNames, getPOJOClass, getPOJOClassName, getPOJOKeyClass, getPropertiesNames, getPropertiesNamesWithoutHiddenNorTransient, getQualifiedName, getRecursiveQualifiedPropertiesNames, getReferencesNames, getRequiredMemberNames, getRequiredPropertiesNames, getVersionPropertyName, getViewPropertiesNames, hasDefaultCalculatorOnCreate, hasVersionProperty, isAnnotatedEJB3, isCalculated, isHiddenKey, isKeyOrSearchKey, isPojoGenerated, isVersion, setAnnotatedEJB3, setContainerModelName, setContainerReference, setMetaComponent, setPOJOClassName, setPojoGenerated, setPOJOKeyClass, setQualifiedName, someModelHasDefaultCalculatorOnCreate, someModelHasPostCreateCalculator, someModelHasPostLoadCalculator, someModelHasPostModifyCalculator, someModelHasPreRemoveCalculator, toKeyMap, toMap, toPOJO, toString, toString, toString
 
Methods inherited from class org.openxava.util.meta.MetaElement
getDescription, getDescription, getDescription, getLabel, getLabel, getLabel, getLocale, getName, has18nLabel, hasName, setDescription, setLabel, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MetaEntity

public MetaEntity()
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 class MetaModel
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 class MetaModel
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 class MetaElement

getMapping

public ModelMapping getMapping()
                        throws XavaException
Specified by:
getMapping in class MetaModel
Throws:
XavaException