|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.dbforms.config.FieldValue
public class FieldValue
This helper-class was originally used to maintain the mapped values between
Main-Form and Sub-Form in the taglib package. in meantime it is used as
holder of data in many places.
It also performs operations that involve "fields" and associated "values"
(i.e. building blocks of SQL SELECT statements, etc) Now it's handles all the
stuf of parsing the resended strings back into java objects.
Constructor Summary | |
---|---|
FieldValue(Field field,
String fieldValue)
Creates a new FieldValue object. |
Method Summary | |
---|---|
Object |
clone()
Clone this object. |
static FieldValue |
createFieldValueForSearching(Field field,
String fieldValue,
Locale locale,
int operator,
int searchMode,
int searchAlgorithm,
boolean logicalOR)
DOCUMENT ME! |
static FieldValue |
createFieldValueForSorting(Field field,
int sortDirection)
DOCUMENT ME! |
Field |
getField()
Gets the field attribute of the FieldValue object |
String |
getFieldValue()
Gets the fieldValue attribute of the FieldValue object |
Object |
getFieldValueAsObject()
parses the given fieldValue according to the given type and creates an java object of the needed type. during the parsing the given locale/format settings will be used. |
FileHolder |
getFileHolder()
Return the fileHolder object for this field. |
Locale |
getLocale()
DOCUMENT ME! |
boolean |
getLogicalOR()
Get the logicalOR attribute of this FieldValue object. |
String |
getOldValue()
Get the oldValue of this Field object. |
Object |
getOldValueAsObject()
DOCUMENT ME! |
int |
getOperator()
Gets the operator attribute of the FieldValue object |
String |
getPattern()
DOCUMENT ME! |
boolean |
getRenderHiddenHtmlTag()
Gets the renderHiddenHtmlTag attribute of the FieldValue object |
int |
getSearchAlgorithm()
Gets the searchAlgorithm attribute of the FieldValue object |
int |
getSearchMode()
Gets the searchMode attribute of the FieldValue object |
int |
getSortDirection()
Gets the sortDirection attribute of the FieldValue object |
static void |
invert(FieldValue[] fv)
Inverts the sorting direction of all FieldValue objects in the given array [ASC-->DESC et vice versa] |
static boolean |
isNull(FieldValue[] arr)
test if given FieldValue[] is empty |
void |
setField(Field field)
Sets the field attribute of the FieldValue object |
void |
setFieldValue(String fieldValue)
Sets the fieldValue attribute of the FieldValue object |
void |
setFileHolder(FileHolder fileHolder)
Sets the fileHolder. |
void |
setLocale(Locale locale)
DOCUMENT ME! |
void |
setLogicalOR(boolean newLogicalOR)
Set the logicalOR attribute of this FieldValue object. |
void |
setOldValue(String string)
Set the oldValue for this Field object. |
void |
setOperator(int i)
sets the operator |
void |
setPattern(String pattern)
DOCUMENT ME! |
void |
setRenderHiddenHtmlTag(boolean renderHiddenHtmlTag)
Sets the renderHiddenHtmlTag attribute of the FieldValue object |
void |
setSearchAlgorithm(int searchAlgorithm)
Sets the searchAlgorithm attribute of the FieldValue object |
void |
setSearchMode(int searchMode)
Sets the searchMode attribute of the FieldValue object |
void |
setSortDirection(int sortDirection)
Sets the sortDirection attribute of the FieldValue object |
String |
toString()
Get the String representation of this object. |
static String |
toString(FieldValue[] fieldValues)
Dump the input FieldValue array |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FieldValue(Field field, String fieldValue)
field
- the name of the fieldfieldValue
- the string representation of the value of the fieldMethod Detail |
---|
public static FieldValue createFieldValueForSearching(Field field, String fieldValue, Locale locale, int operator, int searchMode, int searchAlgorithm, boolean logicalOR)
field
- DOCUMENT ME!fieldValue
- DOCUMENT ME!locale
- DOCUMENT ME!operator
- DOCUMENT ME!searchMode
- DOCUMENT ME!searchAlgorithm
- DOCUMENT ME!logicalOR
- DOCUMENT ME!
public static FieldValue createFieldValueForSorting(Field field, int sortDirection)
field
- DOCUMENT ME!sortDirection
- DOCUMENT ME!
public void setField(Field field)
field
- The new field valuepublic Field getField()
public void setFieldValue(String fieldValue)
fieldValue
- The new fieldValue valuepublic String getFieldValue()
public Object getFieldValueAsObject()
public void setFileHolder(FileHolder fileHolder)
fileHolder
- The fileHolder to setpublic FileHolder getFileHolder()
public void setLocale(Locale locale)
locale
- public Locale getLocale()
public void setLogicalOR(boolean newLogicalOR)
newLogicalOR
- the logicalOR attribute value to setpublic boolean getLogicalOR()
public static final boolean isNull(FieldValue[] arr)
arr
- FieldValue[] to test
public void setOldValue(String string)
string
- the oldValue for this Field objectpublic String getOldValue()
public Object getOldValueAsObject()
public void setOperator(int i)
i
- public int getOperator()
public void setPattern(String pattern)
pattern
- public String getPattern()
public void setRenderHiddenHtmlTag(boolean renderHiddenHtmlTag)
renderHiddenHtmlTag
- The new renderHiddenHtmlTag valuepublic boolean getRenderHiddenHtmlTag()
public void setSearchAlgorithm(int searchAlgorithm)
searchAlgorithm
- The new searchAlgorithm valuepublic int getSearchAlgorithm()
public void setSearchMode(int searchMode)
searchMode
- The new searchMode valuepublic int getSearchMode()
public void setSortDirection(int sortDirection)
sortDirection
- The new sortDirection valuepublic int getSortDirection()
public Object clone()
clone
in class Object
public static void invert(FieldValue[] fv)
fv
- the array of FieldValue objectspublic String toString()
toString
in class Object
public static String toString(FieldValue[] fieldValues)
fieldValues
- the fieldValues array
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |