Class SQLStatementParameter


  • public class SQLStatementParameter
    extends java.lang.Object
    Representation of an SQLStatement parameter.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) int columnNumber
      Optional number to define the column of the mapping that this represents.
      (package private) JavaTypeMapping mapping
      Mapping for the value of the parameter.
      (package private) java.lang.String name
      Name of the parameter (either its name, or its position).
      (package private) java.lang.Object value
      Value to use for the parameter.
    • Constructor Summary

      Constructors 
      Constructor Description
      SQLStatementParameter​(java.lang.String name, JavaTypeMapping mapping, java.lang.Object value, int columnNumber)
      Constructor for a parameter using the mapping where there are multiple columns and we are representing a particular column here.
    • Field Detail

      • name

        final java.lang.String name
        Name of the parameter (either its name, or its position).
      • columnNumber

        final int columnNumber
        Optional number to define the column of the mapping that this represents.
      • value

        final java.lang.Object value
        Value to use for the parameter.
    • Constructor Detail

      • SQLStatementParameter

        public SQLStatementParameter​(java.lang.String name,
                                     JavaTypeMapping mapping,
                                     java.lang.Object value,
                                     int columnNumber)
        Constructor for a parameter using the mapping where there are multiple columns and we are representing a particular column here.
        Parameters:
        name - Name of the parameter
        mapping - Mapping for the parameter
        value - The value of the parameter
        columnNumber - NUmber of the column for the mapping
    • Method Detail

      • getName

        public java.lang.String getName()
      • getColumnNumber

        public int getColumnNumber()
      • getValue

        public java.lang.Object getValue()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object