Package org.geotools.jdbc
Class VirtualTableParameter
- Object
-
- VirtualTableParameter
-
- All Implemented Interfaces:
Serializable
public class VirtualTableParameter extends Object implements Serializable
AVirtualTable
parameter. Has a name, a default value, and aVirtualTableParameter.Validator
to protect the parameters against sql injection attacks.The class includes some default validators
- Author:
- Andrea Aime - OpenGeo
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
VirtualTableParameter.Validator
Interface to be implemented by parameter value validators
-
Constructor Summary
Constructors Constructor Description VirtualTableParameter(String name, String defaultValue)
VirtualTableParameter(String name, String defaultValue, VirtualTableParameter.Validator validator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getDefaultValue()
String
getName()
VirtualTableParameter.Validator
getValidator()
int
hashCode()
void
setDefaultValue(String defaultValue)
void
setName(String name)
void
setValidator(VirtualTableParameter.Validator validator)
-
-
-
Constructor Detail
-
VirtualTableParameter
public VirtualTableParameter(String name, String defaultValue, VirtualTableParameter.Validator validator)
-
-
Method Detail
-
getName
public String getName()
-
setName
public void setName(String name)
-
getDefaultValue
public String getDefaultValue()
-
setDefaultValue
public void setDefaultValue(String defaultValue)
-
getValidator
public VirtualTableParameter.Validator getValidator()
-
setValidator
public void setValidator(VirtualTableParameter.Validator validator)
-
-