Class SQLParam


  • public final class SQLParam
    extends Object
    The SQL parameter / util class
    Since:
    1.0
    Version:
    $Revision 1.0$
    • 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 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 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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object