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) $
-
Field Summary
-
Constructor Summary
Constructors Constructor Description PropertyFilterData()
-
Method Summary
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 Details
-
operator
private int operator -
valueType
private int valueType -
MAX_VALUE_LENGTH
public static final int MAX_VALUE_LENGTHThe maximum length of the value that can be stored in the database.- See Also:
setValue(String)
, Constant Field Values
-
value
-
unit
-
-
Constructor Details
-
PropertyFilterData
public PropertyFilterData()
-
-
Method Details
-
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
Get the value used in this filter.- Hibernate: property
- column="`value`" type="text" not-null="false"
-
setValue
-
getUnit
- Since:
- 2.9
- Hibernate: many-to-one
- column="`unit_id`" not-null="false"
-
setUnit
-