Package generalDatabase.dataExport
Class ValueFilterParams
java.lang.Object
generalDatabase.dataExport.ValueFilterParams
- All Implemented Interfaces:
Serializable
,Cloneable
,ManagedParameters
- Direct Known Subclasses:
DoubleValueParams
,IntValueParams
,TimeValueParams
public abstract class ValueFilterParams
extends Object
implements Cloneable, Serializable, ManagedParameters
Abstract class for ValueFilters for filtering database data tables.
- Author:
- Doug Gillespie
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetMaxQueryValue
(SQLTypes sqlTypes) Get the maximum value in a format suitable for including in an SQL stringabstract String
GEt the max value as a stringgetMinQueryValue
(SQLTypes sqlTypes) Get the minimum value in a format suitable for including in an SQL stringabstract String
Get the min value as a stringGet a set of data that describes all of the parameters in a classabstract int
Get the length of a typical text field need to display these data.boolean
isUseMax()
boolean
isUseMin()
abstract boolean
setMaxValue
(String maxValue) Set the maximum valueabstract boolean
setMinValue
(String minValue) Set the minimum valuevoid
setUseMax
(boolean useMax) void
setUseMin
(boolean useMin)
-
Field Details
-
serialVersionUID
public static final long serialVersionUID- See Also:
-
-
Constructor Details
-
ValueFilterParams
public ValueFilterParams()
-
-
Method Details
-
isUseMin
public boolean isUseMin()- Returns:
- the useMin
-
setUseMin
public void setUseMin(boolean useMin) - Parameters:
useMin
- the useMin to set
-
isUseMax
public boolean isUseMax()- Returns:
- the useMax
-
setUseMax
public void setUseMax(boolean useMax) - Parameters:
useMax
- the useMax to set
-
getMinValue
Get the min value as a string- Returns:
- min value as a string
-
getMaxValue
GEt the max value as a string- Returns:
- max value as a string
-
setMinValue
Set the minimum value- Parameters:
minValue
- min value as a string- Returns:
- true if decoded successfully
-
setMaxValue
Set the maximum value- Parameters:
maxValue
- max value as a string- Returns:
- true if decoded successfully
-
getTextFieldLength
public abstract int getTextFieldLength()Get the length of a typical text field need to display these data.- Returns:
- the length of a typical text field need to display these data.
-
getMaxQueryValue
Get the maximum value in a format suitable for including in an SQL string- Returns:
- the maximum value in a format suitable for including in an SQL string
-
getMinQueryValue
Get the minimum value in a format suitable for including in an SQL string- Returns:
- the minimum value in a format suitable for including in an SQL string
-
getParameterSet
Description copied from interface:ManagedParameters
Get a set of data that describes all of the parameters in a class- Specified by:
getParameterSet
in interfaceManagedParameters
- Returns:
- description of the parameters in a class.
-