Interface RelationalPath<T>

Type Parameters:
T - expression type
All Superinterfaces:
EntityPath<T>, Expression<T>, Path<T>, ProjectionRole<T>, Serializable
All Known Implementing Classes:
RelationalPathBase

public interface RelationalPath<T> extends EntityPath<T>, ProjectionRole<T>
RelationalPath extends EntityPath to provide access to relational metadata
Author:
tiwe
  • Method Details

    • getSchemaAndTable

      SchemaAndTable getSchemaAndTable()
      Get the schema and table name
      Returns:
      schema and table
    • getSchemaName

      String getSchemaName()
      Get the schema name
      Returns:
      schema
    • getTableName

      String getTableName()
      Get the table name
      Returns:
      table
    • getColumns

      List<Path<?>> getColumns()
      Get all columns
      Returns:
      columns
    • getPrimaryKey

      @Nullable @Nullable PrimaryKey<T> getPrimaryKey()
      Get the primary key for this relation or null if none exists
      Returns:
      primary key
    • getForeignKeys

      Collection<ForeignKey<?>> getForeignKeys()
      Get the foreign keys for this relation
      Returns:
      foreign keys
    • getInverseForeignKeys

      Collection<ForeignKey<?>> getInverseForeignKeys()
      Get the inverse foreign keys for this relation
      Returns:
      inverse foreign keys
    • getMetadata

      @Nullable @Nullable ColumnMetadata getMetadata(Path<?> column)
      Returns the metadata for this path or null if none was assigned. See ColumnMetadata.getColumnMetadata(Path) for a null safe alternative
      Specified by:
      getMetadata in interface EntityPath<T>
      Returns:
      column metadata for path