public class DataBaseUtil extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CUSTOMESQL_BEAN |
static String |
DATABASE_XSTREAM |
static String |
DB_TYPE_DB2 |
static String |
DB_TYPE_DERBY |
static String |
DB_TYPE_INFORMIX |
static String |
DB_TYPE_MYSQL |
static String |
DB_TYPE_ORACLE |
static String |
DB_TYPE_SQLSERVER |
static String |
DB_TYPE_SYBASE |
static String |
DIALECT_FUNCTION_PROCESSOR_BEAN |
static ThreadLocal<String> |
fromSourceLocal |
static String |
FUNCTION_BEAN |
static String |
INITDATA_BEAN |
static String |
INITDATA_XSTREAM |
protected static Pattern |
pattern |
static String |
PROCEDURE_BEAN |
static String |
PROCESSOR_XSTREAM |
static String |
PROCESSORMANAGER_BEAN |
static String |
SEQUENCE_BEAN |
static String |
TABLE_SPACE_PROCESSOR_BEAN |
static String |
TABLEPROCESSOR_BEAN |
static String |
TRIGGER_BEAN |
static String |
VIEW_BEAN |
Constructor and Description |
---|
DataBaseUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
closeResultSet(ResultSet r) |
static String |
formatByColumnType(String value,
StandardField standardField,
String dbType,
SqlValueProcessor sqlValueProcessor,
ClassLoader classLoader) |
static String |
formatSqlForFunction(String originalSql,
String databaseType,
ClassLoader classLoader)
为函数自定义函数进行format
|
static String |
getDataBaseName(String name) |
static NameStrategy |
getNameStrategy() |
static TableField |
getPrimaryField(Table table) |
static String |
getSchema(Table table,
DatabaseMetaData metadata) |
static StandardField |
getStandardField(String tableFieldId,
Table table,
ClassLoader loader) |
static Table |
getTableById(String id,
ClassLoader loader) |
static TableProcessor |
getTableProcessor(ClassLoader loader) |
static List<Table> |
getTables(ClassLoader loader) |
static TableSpace |
getTableSpace(ClassLoader loader,
String spaceId) |
static View |
getViewById(String id,
ClassLoader loader) |
static boolean |
isNeedCache() |
public static final String DB_TYPE_ORACLE
public static final String DB_TYPE_DB2
public static final String DB_TYPE_MYSQL
public static final String DB_TYPE_SQLSERVER
public static final String DB_TYPE_INFORMIX
public static final String DB_TYPE_SYBASE
public static final String DB_TYPE_DERBY
public static final String DIALECT_FUNCTION_PROCESSOR_BEAN
protected static final Pattern pattern
public static String DATABASE_XSTREAM
public static String INITDATA_XSTREAM
public static String PROCESSOR_XSTREAM
public static String PROCESSORMANAGER_BEAN
public static String TABLEPROCESSOR_BEAN
public static String CUSTOMESQL_BEAN
public static String FUNCTION_BEAN
public static String INITDATA_BEAN
public static String PROCEDURE_BEAN
public static String VIEW_BEAN
public static String TRIGGER_BEAN
public static String SEQUENCE_BEAN
public static String TABLE_SPACE_PROCESSOR_BEAN
public static ThreadLocal<String> fromSourceLocal
public static StandardField getStandardField(String tableFieldId, Table table, ClassLoader loader)
public static Table getTableById(String id, ClassLoader loader)
public static List<Table> getTables(ClassLoader loader)
public static TableProcessor getTableProcessor(ClassLoader loader)
public static TableSpace getTableSpace(ClassLoader loader, String spaceId)
public static View getViewById(String id, ClassLoader loader)
public static TableField getPrimaryField(Table table)
public static NameStrategy getNameStrategy()
public static String getSchema(Table table, DatabaseMetaData metadata) throws SQLException
SQLException
public static void closeResultSet(ResultSet r)
public static boolean isNeedCache()
public static String formatSqlForFunction(String originalSql, String databaseType, ClassLoader classLoader)
originalSql
- databaseType
- classLoader
- public static String formatByColumnType(String value, StandardField standardField, String dbType, SqlValueProcessor sqlValueProcessor, ClassLoader classLoader)
Copyright © 2006–2018 TinyGroup. All rights reserved.