Package org.hibernate.boot.jaxb.mapping
Class JaxbFilterDef
java.lang.Object
org.hibernate.boot.jaxb.mapping.JaxbFilterDef
- All Implemented Interfaces:
Serializable
Specifies a filter definition. After definition, a filter
can be applied to entity or collection by name.
Java class for filter-def complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="filter-def">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="filter-param" maxOccurs="unbounded" minOccurs="0">
<complexType>
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="type" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="resolver" type="{http://www.w3.org/2001/XMLSchema}string" />
</restriction>
</complexContent>
</complexType>
</element>
<element name="condition" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="apply-to-load-by-key" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
</sequence>
<attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
</restriction>
</complexContent>
</complexType>
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classUsed to identify all bind parameters in the condition elemement -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected Stringprotected List<JaxbFilterDef.JaxbFilterParam>protected String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the value of the condition property.Gets the value of the filterParam property.getName()Gets the value of the name property.booleanGets the value of the applyToLoadByKey property.voidsetApplyToLoadByKey(boolean value) Sets the value of the applyToLoadByKey property.voidsetCondition(String value) Sets the value of the condition property.voidSets the value of the name property.
-
Field Details
-
filterParam
-
condition
-
applyToLoadByKey
protected boolean applyToLoadByKey -
name
-
-
Constructor Details
-
JaxbFilterDef
public JaxbFilterDef()
-
-
Method Details
-
getFilterParam
Gets the value of the filterParam property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the Jakarta XML Binding object. This is why there is not a
setmethod for the filterParam property.For example, to add a new item, do as follows:
getFilterParam().add(newItem);Objects of the following type(s) are allowed in the list
JaxbFilterDef.JaxbFilterParam- Returns:
- The value of the filterParam property.
-
getCondition
Gets the value of the condition property.- Returns:
- possible object is
String
-
setCondition
Sets the value of the condition property.- Parameters:
value- allowed object isString
-
isApplyToLoadByKey
public boolean isApplyToLoadByKey()Gets the value of the applyToLoadByKey property. -
setApplyToLoadByKey
public void setApplyToLoadByKey(boolean value) Sets the value of the applyToLoadByKey property. -
getName
Gets the value of the name property.- Returns:
- possible object is
String
-
setName
Sets the value of the name property.- Parameters:
value- allowed object isString
-