Record Class SimpleParameterMetaData.Parameter

java.lang.Object
java.lang.Record
org.itsallcode.jdbc.SimpleParameterMetaData.Parameter
Record Components:
className - class name of the parameter type
type - JDBC type of the parameter
typeName - name of the parameter type
mode - parameter mode
precision - parameter precision
scale - parameter scale
signed - true if the parameter is signed
nullable - nullability of the parameter
Enclosing class:
SimpleParameterMetaData

public static record SimpleParameterMetaData.Parameter(String className, JDBCType type, String typeName, SimpleParameterMetaData.ParameterMode mode, int precision, int scale, boolean signed, SimpleParameterMetaData.ParameterNullable nullable) extends Record
A parameter for a prepared statement.
  • Constructor Details

  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • className

      public String className()
      Returns the value of the className record component.
      Returns:
      the value of the className record component
    • type

      public JDBCType type()
      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • typeName

      public String typeName()
      Returns the value of the typeName record component.
      Returns:
      the value of the typeName record component
    • mode

      Returns the value of the mode record component.
      Returns:
      the value of the mode record component
    • precision

      public int precision()
      Returns the value of the precision record component.
      Returns:
      the value of the precision record component
    • scale

      public int scale()
      Returns the value of the scale record component.
      Returns:
      the value of the scale record component
    • signed

      public boolean signed()
      Returns the value of the signed record component.
      Returns:
      the value of the signed record component
    • nullable

      Returns the value of the nullable record component.
      Returns:
      the value of the nullable record component