public class SearchCriteria extends Object implements SQLClause
Constructor and Description |
---|
SearchCriteria() |
SearchCriteria(GenericWrapperField f,
Object v)
Populates the field, field_name, cleanedType, and value properties.
|
Modifier and Type | Method and Description |
---|---|
String |
getCleanedType()
cleaned data type (i.e.
|
String |
getComparison_type()
=,<,<=,>,>=
|
String |
getElementName() |
String |
getField_name()
exact sql name to use in the where clause.
|
GenericWrapperField |
getField()
corresponding GenericWrapperField (can be null)
|
ArrayList |
getSchemaFields() |
String |
getSQLClause() |
String |
getSQLClause(QueryOrganizerI qo) |
ArrayList<DisplayCriteria> |
getSubQueries() |
Object |
getValue()
value to search for
|
String |
getXMLPath() |
int |
numClauses() |
boolean |
overrideFormatting() |
void |
setCleanedType(String string)
cleaned data type (i.e.
|
void |
setComparison_type(String string)
=,<,<=,>,>=
|
void |
setElementName(String elementName) |
void |
setField_name(String string)
exact sql name to use in the where clause.
|
void |
setField(GenericWrapperField field)
corresponding GenericWrapperField (can be null)
|
void |
setFieldWXMLPath(String s)
Uses an XMLName Dot-Syntax to specify what field within an element is to be searched on.
|
void |
setOverrideFormatting(boolean overrideFormatting) |
void |
setValue(Object v)
value to search for.
|
String |
toString() |
String |
valueToDB()
Parse the value using the cleanedType to output the correct format for SQL/
|
public SearchCriteria()
public SearchCriteria(GenericWrapperField f, Object v) throws Exception
f
- v
- Exception
public boolean overrideFormatting()
public void setOverrideFormatting(boolean overrideFormatting)
overrideFormatting
- The overrideFormatting to set.public String getSQLClause(QueryOrganizerI qo) throws Exception
getSQLClause
in interface SQLClause
Exception
public String getCleanedType()
public String getComparison_type()
public GenericWrapperField getField()
public String getField_name()
public Object getValue()
public void setCleanedType(String string)
string
- public void setComparison_type(String string)
string
- public void setField(GenericWrapperField field)
field
- public void setField_name(String string)
string
- public void setValue(Object v) throws Exception
object
- Exception
public String valueToDB()
public void setFieldWXMLPath(String s) throws ElementNotFoundException, XFTInitException, FieldNotFoundException, Exception
s
- ElementNotFoundException
XFTInitException
FieldNotFoundException
Exception
public String getXMLPath()
public int numClauses()
numClauses
in interface SQLClause
public String getElementName()
getElementName
in interface SQLClause
public void setElementName(String elementName)
elementName
- The elementName to set.public ArrayList getSchemaFields()
getSchemaFields
in interface SQLClause
public ArrayList<DisplayCriteria> getSubQueries() throws Exception
getSubQueries
in interface SQLClause
Exception
Copyright © 2015 Neuroinformatics Research Group. All rights reserved.