org.openxava.tab.meta
Class MetaConsult

java.lang.Object
  extended by org.openxava.util.meta.MetaElement
      extended by org.openxava.tab.meta.MetaConsult
All Implemented Interfaces:
java.io.Serializable

public class MetaConsult
extends MetaElement

Only used in spanish/swing version.

Author:
Javier Paniza
See Also:
Serialized Form

Constructor Summary
MetaConsult()
           
 
Method Summary
 void addMetaParameter(MetaParameter parameter)
           
 java.lang.Object filterParameters(java.lang.Object o)
          Apply filter associated to this consult if it is, and of the container tab too.
 java.lang.String getCondition()
           
 java.lang.String getConditionSQL()
          Condition but using column name of underlying tables.
 java.lang.String getId()
          Unique id of element, normally used to search the label in the resources files.
 java.lang.String getLabel()
           
 MetaFilter getMetaFilter()
           
 java.util.Collection getMetaParameters()
           
 java.util.Collection getOrderByPropertiesNames()
           
 void setCondition(java.lang.String condition)
           
 void setLabel(java.lang.String label)
           
 void setMetaFilter(MetaFilter metaFilter)
           
 boolean useOrderBy()
           
 
Methods inherited from class org.openxava.util.meta.MetaElement
getDescription, getDescription, getDescription, getLabel, getLabel, getLocale, getName, has18nLabel, hasName, setDescription, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetaConsult

public MetaConsult()
Method Detail

addMetaParameter

public void addMetaParameter(MetaParameter parameter)

getMetaParameters

public java.util.Collection getMetaParameters()
Returns:
Not null, of type MetaParameter and read only.

getCondition

public java.lang.String getCondition()
Returns:
Null means condition SQL is calculated by default, and empty string means there are no conditions (all objects are selected)

setCondition

public void setCondition(java.lang.String condition)

getLabel

public java.lang.String getLabel()
Overrides:
getLabel in class MetaElement

setLabel

public void setLabel(java.lang.String label)
Overrides:
setLabel in class MetaElement

getConditionSQL

public java.lang.String getConditionSQL()
                                 throws XavaException
Condition but using column name of underlying tables.

If condition is not set, here a default one is created.

Throws:
XavaException

getMetaFilter

public MetaFilter getMetaFilter()

setMetaFilter

public void setMetaFilter(MetaFilter metaFilter)

filterParameters

public java.lang.Object filterParameters(java.lang.Object o)
                                  throws XavaException
Apply filter associated to this consult if it is, and of the container tab too.

Throws:
XavaException

useOrderBy

public boolean useOrderBy()

getOrderByPropertiesNames

public java.util.Collection getOrderByPropertiesNames()

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