Record Class ColumnMetaData
java.lang.Object
java.lang.Record
cool.scx.jdbc.meta_data.ColumnMetaData
-
Constructor Summary
ConstructorsConstructorDescriptionColumnMetaData(String table, String name, DataTypeMetaData dataType, String defaultValue, String onUpdate, boolean notNull, boolean autoIncrement, boolean primary, boolean unique, boolean index, String comment) Creates an instance of aColumnMetaDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theautoIncrementrecord component.comment()Returns the value of thecommentrecord component.dataType()Returns the value of thedataTyperecord 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.booleanindex()Returns the value of theindexrecord component.name()Returns the value of thenamerecord component.booleannotNull()Returns the value of thenotNullrecord component.onUpdate()Returns the value of theonUpdaterecord component.booleanprimary()Returns the value of theprimaryrecord component.table()Returns the value of thetablerecord component.final StringtoString()Returns a string representation of this record class.booleanunique()Returns the value of theuniquerecord component.
-
Constructor Details
-
ColumnMetaData
public ColumnMetaData(String table, String name, DataTypeMetaData dataType, String defaultValue, String onUpdate, boolean notNull, boolean autoIncrement, boolean primary, boolean unique, boolean index, String comment) Creates an instance of aColumnMetaDatarecord class.- Parameters:
table- the value for thetablerecord componentname- the value for thenamerecord componentdataType- the value for thedataTyperecord componentdefaultValue- the value for thedefaultValuerecord componentonUpdate- the value for theonUpdaterecord componentnotNull- the value for thenotNullrecord componentautoIncrement- the value for theautoIncrementrecord componentprimary- the value for theprimaryrecord componentunique- the value for theuniquerecord componentindex- the value for theindexrecord componentcomment- the value for thecommentrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
table
-
name
-
dataType
Returns the value of thedataTyperecord component. -
defaultValue
Returns the value of thedefaultValuerecord component.- Specified by:
defaultValuein interfaceColumn- Returns:
- the value of the
defaultValuerecord component
-
onUpdate
-
notNull
-
autoIncrement
public boolean autoIncrement()Returns the value of theautoIncrementrecord component.- Specified by:
autoIncrementin interfaceColumn- Returns:
- the value of the
autoIncrementrecord component
-
-
unique
-
index
-
comment
-