2.17.2: 2011-06-17

net.sf.basedb.core.data
Class PropertyFilterData

java.lang.Object
  extended by 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, Session and client overview
Last modified
$Date: 2009-04-06 14:52:39 +0200 (Mon, 06 Apr 2009) $

Field Summary
static int MAX_VALUE_LENGTH
          The maximum length of the value that can be stored in the database.
private  int operator
           
private  UnitData unit
           
private  String value
           
private  int valueType
           
 
Constructor Summary
PropertyFilterData()
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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
Constructor Detail

PropertyFilterData

public PropertyFilterData()
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)

2.17.2: 2011-06-17