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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ValueFilterParamsclone()getMaxQueryValue(SQLTypes sqlTypes) Get the maximum value in a format suitable for including in an SQL stringabstract StringGEt the max value as a stringgetMinQueryValue(SQLTypes sqlTypes) Get the minimum value in a format suitable for including in an SQL stringabstract StringGet the min value as a stringGet a set of data that describes all of the parameters in a classabstract intGet the length of a typical text field need to display these data.booleanisUseMax()booleanisUseMin()abstract booleansetMaxValue(String maxValue) Set the maximum valueabstract booleansetMinValue(String minValue) Set the minimum valuevoidsetUseMax(boolean useMax) voidsetUseMin(boolean useMin)
-
Field Details
-
serialVersionUID
public static final long serialVersionUID- See Also:
-
-
Constructor Details
-
ValueFilterParams
public ValueFilterParams()
-
-
Method Details
-
clone
-
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:ManagedParametersGet a set of data that describes all of the parameters in a class- Specified by:
getParameterSetin interfaceManagedParameters- Returns:
- description of the parameters in a class.
-