Record Class DataSourceController.TableDetail

java.lang.Object
java.lang.Record
io.micronaut.controlpanel.panels.datasource.DataSourceController.TableDetail
Record Components:
schema - Table schema
name - Table name
selectAllSql - SQL query that selects all rows from the table
jsonQuerySql - SQL query that selects rows as JSON, if supported
relationshipJsonSql - SQL query that selects rows as JSON with relationships, if supported
columns - Column details
columnsEmpty - Whether the table has no columns
relationships - Relationship details
relationshipsEmpty - Whether the table has no relationships
mermaid - 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 Details

  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • schema

      public String schema()
      Returns the value of the schema record component.
      Returns:
      the value of the schema record component
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • selectAllSql

      public String selectAllSql()
      Returns the value of the selectAllSql record component.
      Returns:
      the value of the selectAllSql record component
    • jsonQuerySql

      public @Nullable String jsonQuerySql()
      Returns the value of the jsonQuerySql record component.
      Returns:
      the value of the jsonQuerySql record component
    • relationshipJsonSql

      public @Nullable String relationshipJsonSql()
      Returns the value of the relationshipJsonSql record component.
      Returns:
      the value of the relationshipJsonSql record component
    • columns

      Returns the value of the columns record component.
      Returns:
      the value of the columns record component
    • columnsEmpty

      public boolean columnsEmpty()
      Returns the value of the columnsEmpty record component.
      Returns:
      the value of the columnsEmpty record component
    • relationships

      Returns the value of the relationships record component.
      Returns:
      the value of the relationships record component
    • relationshipsEmpty

      public boolean relationshipsEmpty()
      Returns the value of the relationshipsEmpty record component.
      Returns:
      the value of the relationshipsEmpty record component
    • mermaid

      public String mermaid()
      Returns the value of the mermaid record component.
      Returns:
      the value of the mermaid record component