Package net.sf.basedb.core.data
Class PropertyFilterData
- java.lang.Object
-
- net.sf.basedb.core.data.PropertyFilterData
-
public class PropertyFilterData extends Object
This class holds context information to help client applications with storing common settings for tables.- Version:
- 2.0
- Author:
- Nicklas
- See Also:
ItemContext
, Developer documentation: Client, session and settings- Last modified
- $Date: 2011-10-21 13:15:41 +0200 (fr, 21 okt 2011) $
-
-
Constructor Summary
Constructors Constructor Description PropertyFilterData()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getOperator()
Get the operator used for this filter.UnitData
getUnit()
String
getValue()
Get the value used in this filter.int
getValueType()
Get the type of value user for this filter.void
setOperator(int operator)
void
setUnit(UnitData unit)
void
setValue(String value)
void
setValueType(int valueType)
-
-
-
Field Detail
-
operator
private int operator
-
valueType
private int valueType
-
MAX_VALUE_LENGTH
public static final int MAX_VALUE_LENGTH
The maximum length of the value that can be stored in the database.- See Also:
setValue(String)
, Constant Field Values
-
value
private String value
-
unit
private UnitData unit
-
-
Method Detail
-
getOperator
public int getOperator()
Get the operator used for this filter.- Hibernate: property
- column="`operator`" type="int" not-null="true"
-
setOperator
public void setOperator(int operator)
-
getValueType
public int getValueType()
Get the type of value user for this filter.- Hibernate: property
- column="`value_type`" type="int" not-null="true"
-
setValueType
public void setValueType(int valueType)
-
getValue
public String getValue()
Get the value used in this filter.- Hibernate: property
- column="`value`" type="text" not-null="false"
-
setValue
public void setValue(String value)
-
getUnit
public UnitData getUnit()
- Since:
- 2.9
- Hibernate: many-to-one
- column="`unit_id`" not-null="false"
-
setUnit
public void setUnit(UnitData unit)
-
-