Module org.itsallcode.jdbc
Package org.itsallcode.jdbc
Record Class SimpleParameterMetaData.Parameter
java.lang.Object
java.lang.Record
org.itsallcode.jdbc.SimpleParameterMetaData.Parameter
- Record Components:
className
- class name of the parameter typetype
- JDBC type of the parametertypeName
- name of the parameter typemode
- parameter modeprecision
- parameter precisionscale
- parameter scalesigned
-true
if the parameter is signednullable
- 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 Summary
ConstructorsConstructorDescriptionParameter
(String className, JDBCType type, String typeName, SimpleParameterMetaData.ParameterMode mode, int precision, int scale, boolean signed, SimpleParameterMetaData.ParameterNullable nullable) Creates an instance of aParameter
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theclassName
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.mode()
Returns the value of themode
record component.nullable()
Returns the value of thenullable
record component.int
Returns the value of theprecision
record component.int
scale()
Returns the value of thescale
record component.boolean
signed()
Returns the value of thesigned
record component.final String
toString()
Returns a string representation of this record class.type()
Returns the value of thetype
record component.typeName()
Returns the value of thetypeName
record component.
-
Constructor Details
-
Parameter
public Parameter(String className, JDBCType type, String typeName, SimpleParameterMetaData.ParameterMode mode, int precision, int scale, boolean signed, SimpleParameterMetaData.ParameterNullable nullable) Creates an instance of aParameter
record class.- Parameters:
className
- the value for theclassName
record componenttype
- the value for thetype
record componenttypeName
- the value for thetypeName
record componentmode
- the value for themode
record componentprecision
- the value for theprecision
record componentscale
- the value for thescale
record componentsigned
- the value for thesigned
record componentnullable
- the value for thenullable
record component
-
-
Method Details
-
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. -
hashCode
Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
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 withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
className
Returns the value of theclassName
record component.- Returns:
- the value of the
className
record component
-
type
Returns the value of thetype
record component.- Returns:
- the value of the
type
record component
-
typeName
Returns the value of thetypeName
record component.- Returns:
- the value of the
typeName
record component
-
mode
Returns the value of themode
record component.- Returns:
- the value of the
mode
record component
-
precision
Returns the value of theprecision
record component.- Returns:
- the value of the
precision
record component
-
scale
Returns the value of thescale
record component.- Returns:
- the value of the
scale
record component
-
signed
Returns the value of thesigned
record component.- Returns:
- the value of the
signed
record component
-
nullable
Returns the value of thenullable
record component.- Returns:
- the value of the
nullable
record component
-