public class ConfigTable extends Object
| 限定符 | 构造器和说明 |
|---|---|
protected |
ConfigTable() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
addConfig(File... files) |
static void |
addConfig(String content) |
protected static void |
debug() |
static Object |
get(String key) |
static Object |
get(String key,
Object def) |
static boolean |
getBoolean(String key) |
static boolean |
getBoolean(String key,
boolean def) |
static String |
getClassPath() |
static Hashtable<String,Object> |
getConfigs() |
static int |
getInt(String key) |
static int |
getInt(String key,
int def) |
static String |
getMinVersion() |
static String |
getPackageType() |
static int |
getReload() |
static String |
getRoot() |
static String |
getString(String key) |
static String |
getString(String key,
String def) |
static String |
getVersion() |
static String |
getWebClassPath() |
static String |
getWebRoot() |
static void |
init() |
static void |
init(String flag) |
static boolean |
isDebug() |
static boolean |
isSQLDebug() |
protected static void |
line(String src,
String chr,
int append,
boolean center) |
protected static void |
loadConfig(File file) |
protected static void |
loadConfig(String flag)
加载配置文件
首先加载anyline-config.xml
然后加载anyline开头的xml文件并覆盖先加载的配置
|
protected static void |
loadConfigDir(File dir,
String flag) |
protected static void |
map2field() |
static void |
parse(File file) |
static void |
parse(InputStream is) |
static void |
parse(String xml) |
static void |
put(String key,
Object value) |
static void |
put(String key,
String value) |
static void |
setLowerKey(boolean bol) |
static void |
setRoot(String root) |
static void |
setUpperKey(boolean bol) |
static void |
setWebRoot(String webRoot) |
protected static String root
protected static String webRoot
protected static String classpath
protected static long lastLoadTime
protected static int reload
protected static boolean isLoading
public static boolean IS_DEBUG
public static boolean IS_SHOW_SQL
public static boolean IS_SHOW_SQL_PARAM
public static boolean IS_SHOW_SQL_WHEN_ERROR
public static boolean IS_SHOW_SQL_PARAM_WHEN_ERROR
public static boolean IS_SQL_DEBUG
public static boolean IS_HTTP_LOG
public static int HTTP_PARAM_ENCODE
public static boolean IS_UPPER_KEY
public static boolean IS_LOWER_KEY
public static boolean IS_KEY_IGNORE_CASE
public static boolean IS_THROW_SQL_QUERY_EXCEPTION
public static boolean IS_THROW_SQL_UPDATE_EXCEPTION
public static boolean IS_UPDATE_NULL_COLUMN
public static boolean IS_UPDATE_EMPTY_COLUMN
public static boolean IS_INSERT_NULL_COLUMN
public static boolean IS_INSERT_EMPTY_COLUMN
public static boolean IS_SQL_DELIMITER_OPEN
public static boolean IS_SQL_DELIMITER_PLACEHOLDER_OPEN
public static boolean IS_RETURN_EMPTY_INSTANCE_REPLACE_NULL
public static boolean IS_AUTO_CHECK_METADATA
public static String DEFAULT_PRIMARY_KEY
public static int AFTER_ALTER_COLUMN_EXCEPTION_ACTION
public static boolean IS_DDL_AUTO_DROP_COLUMN
public static String SQL_STORE_DIR
public static String ENTITY_TABLE_ANNOTATION
public static String ENTITY_COLUMN_ANNOTATION
public static String ENTITY_PRIMARY_KEY_ANNOTATION
public static String HTTP_PARAM_KEY_CASE
public static String TABLE_METADATA_CACHE_KEY
public static int TABLE_METADATA_CACHE_SECOND
public static String SQL_DELIMITER_PLACEHOLDER
public static String CONFIG_NAME
public static void addConfig(String content)
public static void addConfig(File... files)
public static String getWebRoot()
public static void setWebRoot(String webRoot)
public static String getRoot()
public static void setRoot(String root)
public static String getWebClassPath()
public static String getClassPath()
public static void init()
public static String getPackageType()
public static void init(String flag)
protected static void loadConfig(String flag)
flag - flagpublic static void parse(File file)
public static void parse(String xml)
public static void parse(InputStream is)
protected static void map2field()
protected static void loadConfig(File file)
public static boolean getBoolean(String key)
public static boolean getBoolean(String key, boolean def)
public static int getInt(String key)
public static int getInt(String key, int def)
public static String getVersion()
public static String getMinVersion()
public static int getReload()
public static boolean isDebug()
public static boolean isSQLDebug()
protected static void debug()
public static void setUpperKey(boolean bol)
public static void setLowerKey(boolean bol)
Copyright © 2022. All rights reserved.