Package org.ametys.odf.ose.db.parameter
Class ValuedQueryParameter
- java.lang.Object
-
- org.ametys.odf.ose.db.parameter.ValuedQueryParameter
-
- All Implemented Interfaces:
QueryParameter
public class ValuedQueryParameter extends Object implements QueryParameter
Object to represent a query parameter to add : value and type.
-
-
Constructor Summary
Constructors Constructor Description ValuedQueryParameter(String name, Object value, int type)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
Get the name.String
getParameter()
Get the parameter.int
getType()
Get the type.Object
getValue()
Get the value.
-
-
-
Constructor Detail
-
ValuedQueryParameter
public ValuedQueryParameter(String name, Object value, int type)
Constructor.- Parameters:
name
- The name of the parametervalue
- The value of the parameter, can be null for nullable columnstype
- The type of the parameter
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:QueryParameter
Get the name.- Specified by:
getName
in interfaceQueryParameter
- Returns:
- the name
-
getParameter
public String getParameter()
Description copied from interface:QueryParameter
Get the parameter.- Specified by:
getParameter
in interfaceQueryParameter
- Returns:
- the parameter
-
getType
public int getType()
Get the type.- Returns:
- the type
-
-