Package org.hibernate.boot.jaxb.mapping
Class JaxbFilterDef
- java.lang.Object
-
- org.hibernate.boot.jaxb.mapping.JaxbFilterDef
-
- All Implemented Interfaces:
Serializable
public class JaxbFilterDef extends Object implements 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" /> </restriction> </complexContent> </complexType> </element> <element name="condition" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> </sequence> <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> </restriction> </complexContent> </complexType>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
JaxbFilterDef.JaxbFilterParam
Used to identify all bind parameters in the condition elemement
-
Field Summary
Fields Modifier and Type Field Description protected String
condition
protected List<JaxbFilterDef.JaxbFilterParam>
filterParam
protected String
name
-
Constructor Summary
Constructors Constructor Description JaxbFilterDef()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCondition()
Gets the value of the condition property.List<JaxbFilterDef.JaxbFilterParam>
getFilterParam()
Gets the value of the filterParam property.String
getName()
Gets the value of the name property.void
setCondition(String value)
Sets the value of the condition property.void
setName(String value)
Sets the value of the name property.
-
-
-
Field Detail
-
filterParam
protected List<JaxbFilterDef.JaxbFilterParam> filterParam
-
condition
protected String condition
-
name
protected String name
-
-
Method Detail
-
getFilterParam
public List<JaxbFilterDef.JaxbFilterParam> 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
set
method 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
-
getCondition
public String getCondition()
Gets the value of the condition property.- Returns:
- possible object is
String
-
setCondition
public void setCondition(String value)
Sets the value of the condition property.- Parameters:
value
- allowed object isString
-
getName
public String getName()
Gets the value of the name property.- Returns:
- possible object is
String
-
-