Class AnnotationConfigTable

java.lang.Object
cool.scx.data.jdbc.mapping.AnnotationConfigTable
All Implemented Interfaces:
Table

public class AnnotationConfigTable extends Object implements Table
AnnotationConfigTable
Version:
0.0.1
Author:
scx567888
  • Constructor Details

    • AnnotationConfigTable

      public AnnotationConfigTable(Class<?> clazz)
  • Method Details

    • initTableName

      public static String initTableName(Class<?> clazz)
      这里判断一下是否使用了数据库 如果使用 则表名省略掉 数据库限定名 否则的话则添加数据库限定名
      Parameters:
      clazz - c
      Returns:
      c
    • name

      public String name()
      Specified by:
      name in interface Table
    • columns

      public AnnotationConfigColumn[] columns()
      Specified by:
      columns in interface Table
    • getColumn

      public AnnotationConfigColumn getColumn(String column)
      Specified by:
      getColumn in interface Table