类 AbstractTable<C extends Column>

java.lang.Object
cn.featherfly.common.db.model.AbstractTable<C>
类型参数:
C - the generic type
所有已实现的接口:
Table
直接已知子类:
AbstractTablePojo, TableMetadata

public abstract class AbstractTable<C extends Column>
extends java.lang.Object
implements Table

AbstractTable

.
  • 字段概要

    字段
    修饰符和类型 字段 说明
    protected java.lang.String catalog
    The catalog.
    protected java.util.Map<java.lang.String,​Column> columnMap
    The column map.
    protected java.util.Map<java.lang.String,​cn.featherfly.common.repository.Index> indexMap
    The index map.
    protected java.lang.String name
    The name.
    protected java.util.List<Column> primaryColumns
    The primary columns.
    protected java.lang.String remark
    The remark.
    protected java.lang.String schema
    The schema.
    protected java.lang.String type
    The type.
  • 构造器概要

    构造器
    构造器 说明
    AbstractTable()
    Instantiates a new table model.
  • 方法概要

    修饰符和类型 方法 说明
    protected void add​(C column)
    Adds the column.
    protected void add​(cn.featherfly.common.repository.Index index)
    Adds the index.
    boolean equals​(java.lang.Object obj)
    java.lang.String getCatalog()
    返回catalog.
    Column getColumn​(java.lang.String columnName)
    返回指定名称的列元数据对象.
    java.util.Map<java.lang.String,​Column> getColumnMap()
    返回所有列元数据对象的MAP.
    java.util.Collection<Column> getColumns()
    返回所有列元数据对象的集合.
    cn.featherfly.common.repository.Index getIndex​(java.lang.String indexName)
    返回指定名称的索引元数据对象.
    java.util.Map<java.lang.String,​cn.featherfly.common.repository.Index> getIndexMap()
    返回所有索引元数据对象的MAP.
    java.util.List<cn.featherfly.common.repository.Index> getIndexs()
    Gets the indexs.
    java.lang.String getName()
    Gets the name.
    java.util.List<Column> getPrimaryColumns()
    返回所有主键列元数据对象的列表.
    java.lang.String getRemark()
    Gets the remark.
    java.lang.String getSchema()
    Gets the schema.
    java.lang.String getType()
    Gets the type.
    boolean hasColumn​(java.lang.String columnName)
    hasColumn.
    int hashCode()
    boolean hasIndex​(java.lang.String indexName)
    hasIndex.
    java.lang.String toString()

    从类继承的方法 java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 字段详细资料

    • type

      protected java.lang.String type
      The type.
    • name

      protected java.lang.String name
      The name.
    • remark

      protected java.lang.String remark
      The remark.
    • catalog

      protected java.lang.String catalog
      The catalog.
    • schema

      protected java.lang.String schema
      The schema.
    • primaryColumns

      protected java.util.List<Column> primaryColumns
      The primary columns.
    • columnMap

      protected java.util.Map<java.lang.String,​Column> columnMap
      The column map.
    • indexMap

      protected java.util.Map<java.lang.String,​cn.featherfly.common.repository.Index> indexMap
      The index map.
  • 构造器详细资料

    • AbstractTable

      public AbstractTable()
      Instantiates a new table model.
  • 方法详细资料

    • add

      protected void add​(C column)
      Adds the column.
      参数:
      column - the column
    • add

      protected void add​(cn.featherfly.common.repository.Index index)
      Adds the index.
      参数:
      index - the index
    • hasColumn

      public boolean hasColumn​(java.lang.String columnName)
      hasColumn.
      指定者:
      hasColumn 在接口中 Table
      参数:
      columnName - columnName
      返回:
      boolean
    • hashCode

      public int hashCode()
      覆盖:
      hashCode 在类中 java.lang.Object
    • equals

      public boolean equals​(java.lang.Object obj)
      覆盖:
      equals 在类中 java.lang.Object
    • toString

      public java.lang.String toString()
      覆盖:
      toString 在类中 java.lang.Object
    • getType

      public java.lang.String getType()
      Gets the type.
      指定者:
      getType 在接口中 Table
      返回:
      the type
    • getName

      public java.lang.String getName()
      Gets the name.
      指定者:
      getName 在接口中 Table
      返回:
      the name
    • getRemark

      public java.lang.String getRemark()
      Gets the remark.
      指定者:
      getRemark 在接口中 Table
      返回:
      the remark
    • getCatalog

      public java.lang.String getCatalog()
      返回catalog.
      指定者:
      getCatalog 在接口中 Table
      返回:
      catalog
    • getColumn

      public Column getColumn​(java.lang.String columnName)

      返回指定名称的列元数据对象. 没有找到返回null.

      指定者:
      getColumn 在接口中 Table
      参数:
      columnName - 列名称
      返回:
      列元数据对象
    • getColumns

      public java.util.Collection<Column> getColumns()

      返回所有列元数据对象的集合.

      指定者:
      getColumns 在接口中 Table
      返回:
      所有列元数据对象的集合
    • getColumnMap

      public java.util.Map<java.lang.String,​Column> getColumnMap()

      返回所有列元数据对象的MAP.

      指定者:
      getColumnMap 在接口中 Table
      返回:
      所有列元数据对象的MAP
    • getPrimaryColumns

      public java.util.List<Column> getPrimaryColumns()

      返回所有主键列元数据对象的列表.

      指定者:
      getPrimaryColumns 在接口中 Table
      返回:
      所有主键列元数据对象的列表.
    • getSchema

      public java.lang.String getSchema()
      Gets the schema.
      指定者:
      getSchema 在接口中 Table
      返回:
      the schema
    • getIndexs

      public java.util.List<cn.featherfly.common.repository.Index> getIndexs()
      Gets the indexs.
      指定者:
      getIndexs 在接口中 Table
      返回:
      the indexs
    • getIndexMap

      public java.util.Map<java.lang.String,​cn.featherfly.common.repository.Index> getIndexMap()

      返回所有索引元数据对象的MAP.

      指定者:
      getIndexMap 在接口中 Table
      返回:
      所有索引元数据对象的MAP
    • getIndex

      public cn.featherfly.common.repository.Index getIndex​(java.lang.String indexName)

      返回指定名称的索引元数据对象. 没有找到返回null.

      指定者:
      getIndex 在接口中 Table
      参数:
      indexName - 索引名称
      返回:
      列元数据对象
    • hasIndex

      public boolean hasIndex​(java.lang.String indexName)
      hasIndex.
      指定者:
      hasIndex 在接口中 Table
      参数:
      indexName - indexName
      返回:
      boolean