org.redkale.source

## 类 EntityInfo<T>

- java.lang.Object
- - org.redkale.source.EntityInfo<T>

- 类型参数:
    `T` - Entity类的泛型

      public final class EntityInfo<T>
      extends java.lang.Object

  详情见: https://redkale.org

- - ### 方法概要

    所有方法 静态方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `void` | `createPrimaryValue(T src)`
    `protected java.lang.String` | `createSQLOrderby(Flipper flipper)`
    `void` | `forEachAttribute(java.util.function.BiConsumer<java.lang.String,Attribute<T,java.io.Serializable>> action)`
    `protected java.lang.CharSequence` | `formatSQLValue(java.lang.String col, ColumnValue cv)`
    `protected java.lang.String` | `formatToString(java.lang.Object value)`
    `static <T> EntityInfo<T>` | `get(java.lang.Class<T> clazz)`
    `Attribute<T,java.io.Serializable>` | `getAttribute(java.lang.String fieldname)`
    `protected java.util.Map<java.lang.String,Attribute<T,java.io.Serializable>>` | `getAttributes()`
    `EntityCache<T>` | `getCache()`
    `Creator<T>` | `getCreator()`
    `java.lang.String` | `getDeleteSQL(T bean)`
    `java.lang.String` | `getInsertSQL(T bean)`
    `Attribute<T,java.io.Serializable>` | `getPrimary()`
    `java.lang.String` | `getPrimarySQLColumn()`
    `java.lang.String` | `getPrimarySQLColumn(java.lang.String tabalis)`
    `java.lang.String` | `getSQLColumn(java.lang.String tabalis, java.lang.String fieldname)`
    `java.lang.String` | `getTable(FilterNode node)`
    `java.lang.String` | `getTable(java.io.Serializable primary)`
    `java.lang.String` | `getTable(T bean)`
    `java.lang.Class<T>` | `getType()`
    `Attribute<T,java.io.Serializable>` | `getUpdateAttribute(java.lang.String fieldname)`
    `java.lang.String` | `getUpdateSQL(T bean)`
    `protected T` | `getValue(SelectColumn sels, java.sql.ResultSet set)`
    `boolean` | `isCacheFullLoaded()`
    `boolean` | `isLoggable(java.util.logging.Level l)`
    `boolean` | `isNoAlias()`
    `boolean` | `isVirtualEntity()` 是否虚拟类
    `static <T> EntityInfo<T>` | `load(java.lang.Class<T> clazz, int nodeid, boolean cacheForbidden, java.util.Properties conf, DataSource source, java.util.function.BiFunction<DataSource,java.lang.Class,java.util.List> fullloader)`

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

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 方法详细资料

    - #### load

          public static <T> EntityInfo<T> load(java.lang.Class<T> clazz,
                                               int nodeid,
                                               boolean cacheForbidden,
                                               java.util.Properties conf,
                                               DataSource source,
                                               java.util.function.BiFunction<DataSource,java.lang.Class,java.util.List> fullloader)

    - #### get

          public static <T> EntityInfo<T> get(java.lang.Class<T> clazz)

    - #### createPrimaryValue

          public void createPrimaryValue(T src)

    - #### getCache

          public EntityCache<T> getCache()

    - #### isCacheFullLoaded

          public boolean isCacheFullLoaded()

    - #### getCreator

          public Creator<T> getCreator()

    - #### getType

          public java.lang.Class<T> getType()

    - #### isVirtualEntity

          public boolean isVirtualEntity()

      是否虚拟类
      返回:
        是否虚拟类

    - #### getInsertSQL

          public java.lang.String getInsertSQL(T bean)

    - #### getUpdateSQL

          public java.lang.String getUpdateSQL(T bean)

    - #### getDeleteSQL

          public java.lang.String getDeleteSQL(T bean)

    - #### getTable

          public java.lang.String getTable(java.io.Serializable primary)

    - #### getTable

          public java.lang.String getTable(FilterNode node)

    - #### getTable

          public java.lang.String getTable(T bean)

    - #### getPrimary

          public Attribute<T,java.io.Serializable> getPrimary()

    - #### forEachAttribute

          public void forEachAttribute(java.util.function.BiConsumer<java.lang.String,Attribute<T,java.io.Serializable>> action)

    - #### getAttribute

          public Attribute<T,java.io.Serializable> getAttribute(java.lang.String fieldname)

    - #### getUpdateAttribute

          public Attribute<T,java.io.Serializable> getUpdateAttribute(java.lang.String fieldname)

    - #### isNoAlias

          public boolean isNoAlias()

    - #### createSQLOrderby

          protected java.lang.String createSQLOrderby(Flipper flipper)

    - #### getSQLColumn

          public java.lang.String getSQLColumn(java.lang.String tabalis,
                                               java.lang.String fieldname)

    - #### getPrimarySQLColumn

          public java.lang.String getPrimarySQLColumn()

    - #### getPrimarySQLColumn

          public java.lang.String getPrimarySQLColumn(java.lang.String tabalis)

    - #### formatSQLValue

          protected java.lang.CharSequence formatSQLValue(java.lang.String col,
                                                          ColumnValue cv)

    - #### getAttributes

          protected java.util.Map<java.lang.String,Attribute<T,java.io.Serializable>> getAttributes()

    - #### isLoggable

          public boolean isLoggable(java.util.logging.Level l)

    - #### formatToString

          protected java.lang.String formatToString(java.lang.Object value)

    - #### getValue

          protected T getValue(SelectColumn sels,
                               java.sql.ResultSet set)
                        throws java.sql.SQLException

      抛出:
        `java.sql.SQLException`