Package net.tirasa.connid.commons.db
Class SQLParam
- java.lang.Object
-
- net.tirasa.connid.commons.db.SQLParam
-
public final class SQLParam extends Object
The SQL parameter / util class- Since:
- 1.0
- Version:
- $Revision 1.0$
-
-
Constructor Summary
Constructors Constructor Description SQLParam(String name, Object value)The Sql param is a pair of value and its sqlTypeSQLParam(String name, Object value, int sqlType)The Sql param is a pair of value and its sqlTypeSQLParam(String name, Object value, int sqlType, String quotedName)The Sql param is a pair of value and its sqlType
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetName()Accessor for the name propertyStringgetQuotedName()Accessor for the quoted name propertyintgetSqlType()Sql TypeObjectgetValue()The param valueinthashCode()StringtoString()
-
-
-
Constructor Detail
-
SQLParam
public SQLParam(String name, Object value, int sqlType)
The Sql param is a pair of value and its sqlType- Parameters:
name- name of the attributevalue- valuesqlType- sql type
-
SQLParam
public SQLParam(String name, Object value, int sqlType, String quotedName)
The Sql param is a pair of value and its sqlType- Parameters:
name- name of the attributevalue- valuesqlType- sql typequotedName- quoted name
-
-
Method Detail
-
getQuotedName
public String getQuotedName()
Accessor for the quoted name property- Returns:
- the _name
-
getName
public String getName()
Accessor for the name property- Returns:
- the _name
-
getValue
public Object getValue()
The param value- Returns:
- a value
-
getSqlType
public int getSqlType()
Sql Type- Returns:
- a type
-
-