public class MetaCollection extends MetaMember implements IPropertyValidator
Constructor and Description |
---|
MetaCollection() |
Modifier and Type | Method and Description |
---|---|
void |
addMetaCalculatorPostRemove(MetaCalculator metaCalculator) |
java.lang.String |
getCondition() |
java.util.Collection |
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.
|
java.lang.String |
getFinderArguments()
Util to generate EJB code.
|
java.lang.String |
getFinderName()
Util to generate EJB code.
|
java.lang.String |
getHQLCondition() |
java.lang.String |
getInverseCollection() |
java.lang.String |
getJPACondition() |
int |
getMaximum() |
MetaCalculator |
getMetaCalculator() |
java.util.Collection |
getMetaCalculatorsPostRemove() |
java.util.Collection |
getMetaPropertiesFinderArguments(boolean withDots)
Util to generate EJB code.
|
MetaReference |
getMetaReference() |
int |
getMinimum() |
java.lang.String |
getOrder() |
java.lang.String |
getSQLConditionWithoutChangePropertiesByColumns() |
java.lang.String |
getSQLOrder() |
boolean |
hasCalculator() |
boolean |
hasCondition() |
boolean |
hasInverseCollection() |
boolean |
hasPostRemoveCalculators() |
boolean |
isAggregate() |
boolean |
isElementCollection() |
boolean |
isOrphanRemoval() |
boolean |
isSortable() |
boolean |
orderHasQualifiedProperties() |
java.lang.String |
removeTotalPropertyPrefix(java.lang.String totalProperty) |
void |
setCondition(java.lang.String string) |
void |
setElementCollection(boolean elementCollection) |
void |
setInverseCollection(java.lang.String inverseCollection) |
void |
setMaximum(int maximum) |
void |
setMetaCalculator(MetaCalculator metaCalculator) |
void |
setMetaModel(MetaModel newContainer) |
void |
setMetaReference(MetaReference reference) |
void |
setMinimum(int minimum) |
void |
setOrder(java.lang.String string) |
void |
setOrphanRemoval(boolean orphanRemoval) |
void |
setSortable(boolean ordenable) |
void |
validate(Messages errors,
java.lang.Object object,
java.lang.String objectName,
java.lang.String propertyName)
Validate.
|
compareTo, getId, getLabel, getLabelId, getMetaCalculatorDefaultValue, getMetaModel, getPropertyNamesThatIDepend, getQualifiedName, hasDefaultValueCalculator, isHidden, setLabel, setLabelId, setQualifiedName, toQualifiedNames
getDescription, getDescription, getDescription, getDescription, getLabel, getLabel, getLocale, getName, getPlaceholder, getPlaceholder, getPlaceholder, has18nLabel, hasName, setDescription, setName, setPlaceholder
public void addMetaCalculatorPostRemove(MetaCalculator metaCalculator)
public java.util.Collection getMetaCalculatorsPostRemove()
public boolean hasPostRemoveCalculators()
public int getMinimum()
public void setMinimum(int minimum)
public MetaReference getMetaReference()
public void setMetaReference(MetaReference reference)
public boolean isAggregate() throws XavaException
XavaException
public void setMetaModel(MetaModel newContainer)
setMetaModel
in class MetaMember
public void validate(Messages errors, java.lang.Object object, java.lang.String objectName, java.lang.String propertyName) throws java.rmi.RemoteException
IPropertyValidator
The validation errors are added to an object of type Messages
.
validate
in interface IPropertyValidator
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.java.rmi.RemoteException
public java.lang.String removeTotalPropertyPrefix(java.lang.String totalProperty)
public java.lang.String getOrder()
public void setOrder(java.lang.String string)
public java.lang.String getCondition()
public void setCondition(java.lang.String string)
public java.lang.String getSQLConditionWithoutChangePropertiesByColumns() throws XavaException
XavaException
public java.lang.String getHQLCondition() throws XavaException
XavaException
public java.lang.String getJPACondition() throws XavaException
XavaException
public boolean orderHasQualifiedProperties()
public java.lang.String getSQLOrder() throws XavaException
XavaException
public boolean hasCondition()
public java.lang.String getFinderName()
public java.lang.String getFinderArguments() throws XavaException
XavaException
public java.util.Collection getConditionArgumentsPropertyNames() throws XavaException
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.
String
. Never null.XavaException
public java.util.Collection getMetaPropertiesFinderArguments(boolean withDots) throws XavaException
XavaException
public MetaCalculator getMetaCalculator()
getMetaCalculator
in class MetaMember
public void setMetaCalculator(MetaCalculator metaCalculator)
public boolean hasCalculator()
hasCalculator
in class MetaMember
public int getMaximum()
public void setMaximum(int maximum)
public void setOrphanRemoval(boolean orphanRemoval)
public boolean isOrphanRemoval()
public java.lang.String getInverseCollection()
public void setInverseCollection(java.lang.String inverseCollection)
public boolean hasInverseCollection()
public boolean isElementCollection()
public void setElementCollection(boolean elementCollection)
public boolean isSortable()
public void setSortable(boolean ordenable)