public class RecorderUtil extends Object
public static String buildExistTableSqlMYSQL(String tableName)
tableName - 数据库表名public static String buildSelectCountTableSqlMYSQL(RecorderQueryBuilder builder) throws RecorderQueryBuilderException
builder - 构造器RecorderQueryBuilderExceptionpublic static String buildSelectTableSqlMYSQL(RecorderQueryBuilder builder) throws RecorderQueryBuilderException
tableName - start - end - RecorderQueryBuilderExceptionpublic static String buildCreateTableSqlMYSQL(IRecorder alog, String dbEngine, String charset) throws UnsupportedEncodingException
alog - UnsupportedEncodingExceptionpublic static TableInfo getColumnDefine(Connection conn, String tableName) throws SQLException
conn - 数据库链接tableName - 数据库表名SQLExceptionpublic static String buildInsertTableSqlMYSQL(IRecorder alog) throws IllegalArgumentException, IllegalAccessException
aLog - IllegalAccessExceptionIllegalArgumentExceptionpublic static String buildColumnIncreaseSqlMYSQL(String tableName, String fieldName, SQLType type, int size, String comment)
tableName - fieldNameAndType - public static String buildColumnDecreaseSqlMYSQL(String tableName, String fieldName)
tableName - fieldName - public static String buildColumnModifySqlMYSQL(String tableName, String fieldName, SQLType type, int size, String comment)
tableName - fieldNameAndType - public static boolean isSame(ColumnInfo now, ColumnInfo old)
public static boolean ableChange(ColumnInfo info, ColumnInfo info2)
public static List<String[]> getLogHeader(Class<? extends IRecorder> clss)
clss - 日志类public static List<String> getTableNames(Connection conn) throws SQLException
conn - 数据库链接SQLExceptionpublic static String getLogTableName(IRecorder alog, long millTime)
alog - public static Set<String> getRelativeTableNames(Class<? extends IRecorder> alog, long start, long end) throws InstantiationException, IllegalAccessException
alog - start - end - IllegalAccessExceptionInstantiationExceptionCopyright © 2017. All rights reserved.