Class MetaCollection
×News: XavaPro 7.7 released - March 11 · Read more
java.lang.Object
org.openxava.util.meta.MetaElement
org.openxava.model.meta.MetaMember
org.openxava.model.meta.MetaCollection
- All Implemented Interfaces:
Serializable, Comparable<MetaMember>, IPropertyValidator
- Author:
- Javier Paniza
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMetaCalculatorPostRemove(MetaCalculator metaCalculator) These arguments can be used in a condition for extracting the values of the collection from the total of the elements of the type.Util to generate EJB code.Util to generate EJB code.intgetMetaPropertiesFinderArguments(boolean withDots) Util to generate EJB code.intgetOrder()booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanremoveTotalPropertyPrefix(String totalProperty) voidsetCondition(String string) voidsetElementCollection(boolean elementCollection) voidsetInverseCollection(String inverseCollection) voidsetMaximum(int maximum) voidsetMetaCalculator(MetaCalculator metaCalculator) voidsetMetaFilter(MetaFilter metaFilter) voidsetMetaModel(MetaModel newContainer) voidsetMetaReference(MetaReference reference) voidsetMinimum(int minimum) voidvoidsetOrphanRemoval(boolean orphanRemoval) voidsetSortable(boolean ordenable) voidValidate.Methods inherited from class MetaMember
compareTo, getAnnotations, getId, getLabel, getLabelId, getMetaCalculatorDefaultValue, getMetaModel, getPropertyNamesThatIDepend, getQualifiedName, getSimpleName, hasDefaultValueCalculator, isHidden, isTransient, setLabel, setLabelId, setQualifiedName, setTransient, toQualifiedNamesMethods inherited from class MetaElement
getDescription, getDescription, getDescription, getDescription, getLabel, getLabel, getLabel, getLocale, getName, getPlaceholder, getPlaceholder, getPlaceholder, has18nLabel, hasName, setDescription, setName, setPlaceholder
-
Constructor Details
-
MetaCollection
public MetaCollection()
-
-
Method Details
-
addMetaCalculatorPostRemove
-
getMetaCalculatorsPostRemove
-
hasPostRemoveCalculators
public boolean hasPostRemoveCalculators() -
getMinimum
public int getMinimum() -
setMinimum
public void setMinimum(int minimum) -
getMetaReference
-
setMetaReference
-
isAggregate
- Throws:
XavaException
-
setMetaModel
- Overrides:
setMetaModelin classMetaMember
-
validate
public void validate(Messages errors, Object object, String objectName, String propertyName) throws RemoteException Description copied from interface:IPropertyValidatorValidate.The validation errors are added to an object of type
Messages.- Specified by:
validatein interfaceIPropertyValidator- Parameters:
errors- Object that accumulate the list of validation errors.object- Collection to validate. Has to be of type Collection. If null empty collection is assumed.objectName- Object that contains the collection to validate.propertyName- Name of the collection property within objectName.- Throws:
RemoteException
-
removeTotalPropertyPrefix
-
getOrder
-
setOrder
-
getCondition
-
setCondition
-
getSQLConditionWithoutChangePropertiesByColumns
- Throws:
XavaException
-
getHQLCondition
- Throws:
XavaException
-
getJPACondition
- Throws:
XavaException
-
orderHasQualifiedProperties
public boolean orderHasQualifiedProperties() -
getSQLOrder
- Throws:
XavaException
-
hasCondition
public boolean hasCondition() -
getFinderName
Util to generate EJB code. -
getFinderArguments
Util to generate EJB code.- Throws:
XavaException
-
getConditionArgumentsPropertyNames
These arguments can be used in a condition for extracting the values of the collection from the total of the elements of the type.That is, if is a collection of line details of an invoice, this method will return the key of the invoice inside the line detail.
Useful for creating a SQL condition for extracting the value of the collection.- Returns:
- Of type
String. Never null. - Throws:
XavaException
-
getMetaPropertiesFinderArguments
Util to generate EJB code.- Throws:
XavaException
-
getMetaCalculator
- Overrides:
getMetaCalculatorin classMetaMember
-
setMetaCalculator
-
hasCalculator
public boolean hasCalculator()- Overrides:
hasCalculatorin classMetaMember
-
getMaximum
public int getMaximum() -
setMaximum
public void setMaximum(int maximum) -
setOrphanRemoval
public void setOrphanRemoval(boolean orphanRemoval) -
isOrphanRemoval
public boolean isOrphanRemoval() -
getInverseCollection
-
setInverseCollection
-
hasInverseCollection
public boolean hasInverseCollection() -
isElementCollection
public boolean isElementCollection() -
setElementCollection
public void setElementCollection(boolean elementCollection) -
isSortable
public boolean isSortable() -
setSortable
public void setSortable(boolean ordenable) -
getMetaFilter
-
setMetaFilter
-
hasFilter
public boolean hasFilter()
-