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-trueif 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 aParameterrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theclassNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.mode()Returns the value of themoderecord component.nullable()Returns the value of thenullablerecord component.intReturns the value of theprecisionrecord component.intscale()Returns the value of thescalerecord component.booleansigned()Returns the value of thesignedrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.typeName()Returns the value of thetypeNamerecord 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 aParameterrecord class.- Parameters:
className- the value for theclassNamerecord componenttype- the value for thetyperecord componenttypeName- the value for thetypeNamerecord componentmode- the value for themoderecord componentprecision- the value for theprecisionrecord componentscale- the value for thescalerecord componentsigned- the value for thesignedrecord componentnullable- the value for thenullablerecord 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 theclassNamerecord component.- Returns:
- the value of the
classNamerecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
typeName
Returns the value of thetypeNamerecord component.- Returns:
- the value of the
typeNamerecord component
-
mode
Returns the value of themoderecord component.- Returns:
- the value of the
moderecord component
-
precision
Returns the value of theprecisionrecord component.- Returns:
- the value of the
precisionrecord component
-
scale
Returns the value of thescalerecord component.- Returns:
- the value of the
scalerecord component
-
signed
Returns the value of thesignedrecord component.- Returns:
- the value of the
signedrecord component
-
nullable
Returns the value of thenullablerecord component.- Returns:
- the value of the
nullablerecord component
-