public static String getTableName(Dao dao, final Entity<?> en, Object target) {
        if (target == null)
            return en.getTableName();
        final String[] name = new String[1];
        TableName.run(target, new Runnable() {
            public void run() {
                name[0] = en.getTableName();
            }
        });
        return name[0];
    }
public static String getTableName(Dao dao, final Entity<?> en, Object target) {
        if (target == null)
            return en.getTableName();
        final String[] name = new String[1];
        TableName.run(target, new Runnable() {
            public void run() {
                name[0] = en.getTableName();
            }
        });
        return name[0];
    }
public static String getTableName ( Dao dao , final Entity < ? > en , Object target ) { if ( target == null ) return en . getTableName ( ) ; final String [ ] name = new String [ 1 ] ; TableName . run ( target , new Runnable ( ) { public void run ( ) { name [ 0 ] = en . getTableName ( ) ; } } ) ; return name [ 0 ] ; }
获取动态表的表名

@param dao
Dao实例
@param en
Pojo的数据库实体
@param target
参考对象
获取动态表的表名