public class DbApi extends Object
| 构造器和说明 |
|---|
DbApi() |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
cfgGet(String name) |
static String |
cfgGet(String name,
String def) |
static Object |
cfgGetMap(Map<String,Object> map) |
static AConfigModel |
cfgGetMod(String name) |
static boolean |
cfgSet(String name,
String value,
String label) |
static boolean |
cfgSetNote(String name,
String note,
String label) |
static List<AFileModel> |
fileFilters() |
static AFileModel |
fileGet(String path) |
static List<String> |
fileGetPathAll() |
static List<AFileModel> |
fileGetPaths(String tag,
String label,
boolean isCache) |
static boolean |
fileNew(int fid,
org.noear.solon.core.XContext ctx)
新建文件
|
static boolean |
fileSet(int fid,
String fcontent) |
static AImageModel |
imgGet(String path) |
static boolean |
imgSet(String tag,
String path,
String content_type,
String data,
String label) |
static boolean |
imgUpd(String path,
String data) |
static boolean |
log(Map<String,Object> data) |
static List<Map<String,Object>> |
menuGet(String label,
int pid) |
static List<AFileModel> |
pathFilters() |
public static boolean fileNew(int fid,
org.noear.solon.core.XContext ctx)
throws Exception
Exceptionpublic static AFileModel fileGet(String path) throws Exception
Exceptionpublic static List<AFileModel> fileGetPaths(String tag, String label, boolean isCache) throws Exception
Exceptionpublic static List<AFileModel> fileFilters() throws Exception
Exceptionpublic static List<AFileModel> pathFilters() throws Exception
Exceptionpublic static AConfigModel cfgGetMod(String name) throws Exception
Exceptionpublic static boolean cfgSet(String name, String value, String label) throws Exception
Exceptionpublic static boolean cfgSetNote(String name, String note, String label) throws Exception
Exceptionpublic static List<Map<String,Object>> menuGet(String label, int pid) throws SQLException
SQLExceptionpublic static AImageModel imgGet(String path) throws Exception
Exceptionpublic static boolean imgSet(String tag, String path, String content_type, String data, String label) throws Exception
ExceptionCopyright © 2019. All rights reserved.