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 Details

    • 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 attribute
      value - value
      sqlType - 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 attribute
      value - value
      sqlType - sql type
      quotedName - quoted name
    • SQLParam

      public SQLParam(String name, Object value)
      The Sql param is a pair of value and its sqlType
      Parameters:
      name - name of the attribute
      value - value
  • Method Details

    • 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
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object