Module org.firebirdsql.jaybird
Package org.firebirdsql.jdbc
Record Class AbstractFieldMetaData.ExtendedFieldInfo
java.lang.Object
java.lang.Record
org.firebirdsql.jdbc.AbstractFieldMetaData.ExtendedFieldInfo
- Enclosing class:
- AbstractFieldMetaData
protected static record AbstractFieldMetaData.ExtendedFieldInfo(AbstractFieldMetaData.FieldKey fieldKey, int fieldPrecision, boolean autoIncrement)
extends Record
Stores additional information about fields in a database.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionExtendedFieldInfo
(String relationName, String fieldName, int precision, boolean autoIncrement) protected
ExtendedFieldInfo
(AbstractFieldMetaData.FieldKey fieldKey, int fieldPrecision, boolean autoIncrement) Creates an instance of aExtendedFieldInfo
record class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the value of theautoIncrement
record component.final boolean
Indicates whether some other object is "equal to" this one.fieldKey()
Returns the value of thefieldKey
record component.int
Returns the value of thefieldPrecision
record component.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
ExtendedFieldInfo
-
ExtendedFieldInfo
protected ExtendedFieldInfo(AbstractFieldMetaData.FieldKey fieldKey, int fieldPrecision, boolean autoIncrement) Creates an instance of aExtendedFieldInfo
record class.- Parameters:
fieldKey
- the value for thefieldKey
record componentfieldPrecision
- the value for thefieldPrecision
record componentautoIncrement
- the value for theautoIncrement
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
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. -
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 '=='. -
fieldKey
Returns the value of thefieldKey
record component.- Returns:
- the value of the
fieldKey
record component
-
fieldPrecision
public int fieldPrecision()Returns the value of thefieldPrecision
record component.- Returns:
- the value of the
fieldPrecision
record component
-
autoIncrement
public boolean autoIncrement()Returns the value of theautoIncrement
record component.- Returns:
- the value of the
autoIncrement
record component
-