Record Class DataSourceController.TableRow
java.lang.Object
java.lang.Record
io.micronaut.controlpanel.panels.datasource.DataSourceController.TableRow
- Record Components:
schema- Table schemaname- Table namedefaultSchema- Whether the table uses the default schema labelcolumnCount- Number of columnsrelationshipCount- Number of foreign-key relationshipsselectAllSql- SQL query that selects all rows from the tablejsonQuerySql- SQL query that selects rows as JSON, if supportedrelationshipJsonSql- SQL query that selects rows as JSON with relationships, if supported
- Enclosing class:
DataSourceController
public static record DataSourceController.TableRow(String schema, String name, boolean defaultSchema, int columnCount, int relationshipCount, String selectAllSql, @Nullable String jsonQuerySql, @Nullable String relationshipJsonSql)
extends Record
View model for a datasource table row.
- Since:
- 2.0.0
- Author:
- Álvaro Sánchez-Mariscal
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thecolumnCountrecord component.booleanReturns the value of thedefaultSchemarecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable StringReturns the value of thejsonQuerySqlrecord component.name()Returns the value of thenamerecord component.intReturns the value of therelationshipCountrecord component.@Nullable StringReturns the value of therelationshipJsonSqlrecord component.schema()Returns the value of theschemarecord component.Returns the value of theselectAllSqlrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TableRow
public TableRow(String schema, String name, boolean defaultSchema, int columnCount, int relationshipCount, String selectAllSql, @Nullable String jsonQuerySql, @Nullable String relationshipJsonSql) Creates an instance of aTableRowrecord class.- Parameters:
schema- the value for theschemarecord componentname- the value for thenamerecord componentdefaultSchema- the value for thedefaultSchemarecord componentcolumnCount- the value for thecolumnCountrecord componentrelationshipCount- the value for therelationshipCountrecord componentselectAllSql- the value for theselectAllSqlrecord componentjsonQuerySql- the value for thejsonQuerySqlrecord componentrelationshipJsonSql- the value for therelationshipJsonSqlrecord 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. -
schema
-
name
-
defaultSchema
public boolean defaultSchema()Returns the value of thedefaultSchemarecord component.- Returns:
- the value of the
defaultSchemarecord component
-
columnCount
public int columnCount()Returns the value of thecolumnCountrecord component.- Returns:
- the value of the
columnCountrecord component
-
relationshipCount
public int relationshipCount()Returns the value of therelationshipCountrecord component.- Returns:
- the value of the
relationshipCountrecord component
-
selectAllSql
Returns the value of theselectAllSqlrecord component.- Returns:
- the value of the
selectAllSqlrecord component
-
jsonQuerySql
Returns the value of thejsonQuerySqlrecord component.- Returns:
- the value of the
jsonQuerySqlrecord component
-
relationshipJsonSql
Returns the value of therelationshipJsonSqlrecord component.- Returns:
- the value of the
relationshipJsonSqlrecord component
-