Record Class DataSourceController.TableDetail
java.lang.Object
java.lang.Record
io.micronaut.controlpanel.panels.datasource.DataSourceController.TableDetail
- Record Components:
schema- Table schemaname- Table nameselectAllSql- 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 supportedcolumns- Column detailscolumnsEmpty- Whether the table has no columnsrelationships- Relationship detailsrelationshipsEmpty- Whether the table has no relationshipsmermaid- Mermaid ER diagram source
- Enclosing class:
DataSourceController
public static record DataSourceController.TableDetail(String schema, String name, String selectAllSql, @Nullable String jsonQuerySql, @Nullable String relationshipJsonSql, List<DataSourceController.ColumnDetail> columns, boolean columnsEmpty, List<DataSourceController.RelationshipDetail> relationships, boolean relationshipsEmpty, String mermaid)
extends Record
View model for the selected datasource table detail.
- Since:
- 2.0.0
- Author:
- Álvaro Sánchez-Mariscal
-
Constructor Summary
ConstructorsConstructorDescriptionTableDetail(String schema, String name, String selectAllSql, @Nullable String jsonQuerySql, @Nullable String relationshipJsonSql, List<DataSourceController.ColumnDetail> columns, boolean columnsEmpty, List<DataSourceController.RelationshipDetail> relationships, boolean relationshipsEmpty, String mermaid) Creates an instance of aTableDetailrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncolumns()Returns the value of thecolumnsrecord component.booleanReturns the value of thecolumnsEmptyrecord 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.mermaid()Returns the value of themermaidrecord component.name()Returns the value of thenamerecord component.@Nullable StringReturns the value of therelationshipJsonSqlrecord component.Returns the value of therelationshipsrecord component.booleanReturns the value of therelationshipsEmptyrecord 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
-
TableDetail
public TableDetail(String schema, String name, String selectAllSql, @Nullable String jsonQuerySql, @Nullable String relationshipJsonSql, List<DataSourceController.ColumnDetail> columns, boolean columnsEmpty, List<DataSourceController.RelationshipDetail> relationships, boolean relationshipsEmpty, String mermaid) Creates an instance of aTableDetailrecord class.- Parameters:
schema- the value for theschemarecord componentname- the value for thenamerecord componentselectAllSql- the value for theselectAllSqlrecord componentjsonQuerySql- the value for thejsonQuerySqlrecord componentrelationshipJsonSql- the value for therelationshipJsonSqlrecord componentcolumns- the value for thecolumnsrecord componentcolumnsEmpty- the value for thecolumnsEmptyrecord componentrelationships- the value for therelationshipsrecord componentrelationshipsEmpty- the value for therelationshipsEmptyrecord componentmermaid- the value for themermaidrecord 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
-
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
-
columns
-
columnsEmpty
public boolean columnsEmpty()Returns the value of thecolumnsEmptyrecord component.- Returns:
- the value of the
columnsEmptyrecord component
-
relationships
Returns the value of therelationshipsrecord component.- Returns:
- the value of the
relationshipsrecord component
-
relationshipsEmpty
public boolean relationshipsEmpty()Returns the value of therelationshipsEmptyrecord component.- Returns:
- the value of the
relationshipsEmptyrecord component
-
mermaid
-