Record Class Table
java.lang.Object
java.lang.Record
io.micronaut.controlpanel.panels.datasource.model.Table
- Record Components:
schema- The table schemaname- The table namecolumns- The columnsuniqueColumns- Columns that are part of unique indexes/constraintsforeignKeys- Foreign key relationships imported by this table
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncolumns()Returns the value of thecolumnsrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theforeignKeysrecord component.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.schema()Returns the value of theschemarecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theuniqueColumnsrecord component.
-
Constructor Details
-
Table
public Table(String schema, String name, List<Column> columns, Set<String> uniqueColumns, List<ForeignKey> foreignKeys) Creates an instance of aTablerecord class.- Parameters:
schema- the value for theschemarecord componentname- the value for thenamerecord componentcolumns- the value for thecolumnsrecord componentuniqueColumns- the value for theuniqueColumnsrecord componentforeignKeys- the value for theforeignKeysrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
schema
-
name
-
columns
-
uniqueColumns
Returns the value of theuniqueColumnsrecord component.- Returns:
- the value of the
uniqueColumnsrecord component
-
foreignKeys
Returns the value of theforeignKeysrecord component.- Returns:
- the value of the
foreignKeysrecord component
-