Class MetaCollection

×News: XavaPro 7.7 released - March 11 · Read more
All Implemented Interfaces:
Serializable, Comparable<MetaMember>, IPropertyValidator

public class MetaCollection extends MetaMember implements IPropertyValidator
Author:
Javier Paniza
See Also:
  • Constructor Details

    • MetaCollection

      public MetaCollection()
  • Method Details

    • addMetaCalculatorPostRemove

      public void addMetaCalculatorPostRemove(MetaCalculator metaCalculator)
    • getMetaCalculatorsPostRemove

      public Collection getMetaCalculatorsPostRemove()
    • hasPostRemoveCalculators

      public boolean hasPostRemoveCalculators()
    • getMinimum

      public int getMinimum()
    • setMinimum

      public void setMinimum(int minimum)
    • getMetaReference

      public MetaReference getMetaReference()
    • setMetaReference

      public void setMetaReference(MetaReference reference)
    • isAggregate

      public boolean isAggregate() throws XavaException
      Throws:
      XavaException
    • setMetaModel

      public void setMetaModel(MetaModel newContainer)
      Overrides:
      setMetaModel in class MetaMember
    • validate

      public void validate(Messages errors, Object object, String objectName, String propertyName) throws RemoteException
      Description copied from interface: IPropertyValidator
      Validate.

      The validation errors are added to an object of type Messages.

      Specified by:
      validate in interface IPropertyValidator
      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

      public String removeTotalPropertyPrefix(String totalProperty)
      Since:
      4.3
    • getOrder

      public String getOrder()
    • setOrder

      public void setOrder(String string)
    • getCondition

      public String getCondition()
    • setCondition

      public void setCondition(String string)
    • getSQLConditionWithoutChangePropertiesByColumns

      public String getSQLConditionWithoutChangePropertiesByColumns() throws XavaException
      Throws:
      XavaException
    • getHQLCondition

      public String getHQLCondition() throws XavaException
      Throws:
      XavaException
    • getJPACondition

      public String getJPACondition() throws XavaException
      Throws:
      XavaException
    • orderHasQualifiedProperties

      public boolean orderHasQualifiedProperties()
    • getSQLOrder

      public String getSQLOrder() throws XavaException
      Throws:
      XavaException
    • hasCondition

      public boolean hasCondition()
    • getFinderName

      public String getFinderName()
      Util to generate EJB code.
    • getFinderArguments

      public String getFinderArguments() throws XavaException
      Util to generate EJB code.
      Throws:
      XavaException
    • getConditionArgumentsPropertyNames

      public Collection getConditionArgumentsPropertyNames() throws XavaException
      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

      public Collection getMetaPropertiesFinderArguments(boolean withDots) throws XavaException
      Util to generate EJB code.
      Throws:
      XavaException
    • getMetaCalculator

      public MetaCalculator getMetaCalculator()
      Overrides:
      getMetaCalculator in class MetaMember
    • setMetaCalculator

      public void setMetaCalculator(MetaCalculator metaCalculator)
    • hasCalculator

      public boolean hasCalculator()
      Overrides:
      hasCalculator in class MetaMember
    • getMaximum

      public int getMaximum()
    • setMaximum

      public void setMaximum(int maximum)
    • setOrphanRemoval

      public void setOrphanRemoval(boolean orphanRemoval)
    • isOrphanRemoval

      public boolean isOrphanRemoval()
    • getInverseCollection

      public String getInverseCollection()
    • setInverseCollection

      public void setInverseCollection(String inverseCollection)
    • 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

      public MetaFilter getMetaFilter()
    • setMetaFilter

      public void setMetaFilter(MetaFilter metaFilter)
    • hasFilter

      public boolean hasFilter()