Package app.ductape.sdk.database.types
Record Class SchemaTypes.ColumnInfo
java.lang.Object
java.lang.Record
app.ductape.sdk.database.types.SchemaTypes.ColumnInfo
- Enclosing class:
- SchemaTypes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncomment()Returns the value of thecommentrecord component.Returns the value of thedefaultValuerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theisAutoIncrementrecord component.booleanReturns the value of theisPrimaryKeyrecord component.booleanisUnique()Returns the value of theisUniquerecord component.Returns the value of themaxLengthrecord component.name()Returns the value of thenamerecord component.booleannullable()Returns the value of thenullablerecord component.Returns the value of theprecisionrecord component.scale()Returns the value of thescalerecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
ColumnInfo
public ColumnInfo(String name, String type, boolean nullable, Object defaultValue, boolean isPrimaryKey, boolean isUnique, boolean isAutoIncrement, Integer maxLength, Integer precision, Integer scale, String comment) Creates an instance of aColumnInforecord class.- Parameters:
name- the value for thenamerecord componenttype- the value for thetyperecord componentnullable- the value for thenullablerecord componentdefaultValue- the value for thedefaultValuerecord componentisPrimaryKey- the value for theisPrimaryKeyrecord componentisUnique- the value for theisUniquerecord componentisAutoIncrement- the value for theisAutoIncrementrecord componentmaxLength- the value for themaxLengthrecord componentprecision- the value for theprecisionrecord componentscale- the value for thescalerecord componentcomment- the value for thecommentrecord 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 '=='. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
nullable
public boolean nullable()Returns the value of thenullablerecord component.- Returns:
- the value of the
nullablerecord component
-
defaultValue
Returns the value of thedefaultValuerecord component.- Returns:
- the value of the
defaultValuerecord component
-
isPrimaryKey
public boolean isPrimaryKey()Returns the value of theisPrimaryKeyrecord component.- Returns:
- the value of the
isPrimaryKeyrecord component
-
isUnique
public boolean isUnique()Returns the value of theisUniquerecord component.- Returns:
- the value of the
isUniquerecord component
-
isAutoIncrement
public boolean isAutoIncrement()Returns the value of theisAutoIncrementrecord component.- Returns:
- the value of the
isAutoIncrementrecord component
-
maxLength
Returns the value of themaxLengthrecord component.- Returns:
- the value of the
maxLengthrecord 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
-
comment
Returns the value of thecommentrecord component.- Returns:
- the value of the
commentrecord component
-