public class DatabaseResource extends KeyValueResource
parent, path, readonly, separator| 构造器和说明 |
|---|
DatabaseResource(org.springframework.jdbc.core.JdbcTemplate template,
String tableName) |
DatabaseResource(org.springframework.jdbc.core.JdbcTemplate template,
String tableName,
boolean readonly) |
DatabaseResource(org.springframework.jdbc.core.JdbcTemplate template,
String tableName,
String path,
boolean readonly) |
DatabaseResource(org.springframework.jdbc.core.JdbcTemplate template,
String tableName,
String path,
boolean readonly,
KeyValueResource parent) |
DatabaseResource(org.springframework.jdbc.core.JdbcTemplate template,
String tableName,
String path,
boolean readonly,
Map<String,String> cachedContent,
KeyValueResource parent) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
delete()
删除
|
boolean |
exists()
判断是否存在
|
Set<String> |
keys()
该资源下的keys
|
Function<String,Resource> |
mappedFunction()
mapped函数,用于根据路径创建资源对象
|
byte[] |
read()
读取
|
void |
readAll()
读取当前资源下的所有内容,主要是缓存作用。
|
boolean |
renameTo(Map<String,String> renameKeys)
需要做修改的key,原key: 新key
|
String |
toString() |
boolean |
write(String content)
写入
|
deleteByKey, dirs, files, getAbsolutePath, getDirectory, getFilePath, getResource, isDirectory, mkdir, name, parent, readonly, renameTo, resources, separator, writeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitexport, processExportpublic DatabaseResource(org.springframework.jdbc.core.JdbcTemplate template,
String tableName)
public DatabaseResource(org.springframework.jdbc.core.JdbcTemplate template,
String tableName,
boolean readonly)
public DatabaseResource(org.springframework.jdbc.core.JdbcTemplate template,
String tableName,
String path,
boolean readonly)
public DatabaseResource(org.springframework.jdbc.core.JdbcTemplate template,
String tableName,
String path,
boolean readonly,
KeyValueResource parent)
public byte[] read()
Resourcepublic void readAll()
Resourcepublic boolean exists()
Resourcepublic Set<String> keys()
KeyValueResourcekeys 在类中 KeyValueResourcepublic boolean renameTo(Map<String,String> renameKeys)
KeyValueResourcerenameTo 在类中 KeyValueResourcerenameKeys - 需重命名的keypublic boolean delete()
Resourcedelete 在接口中 Resourcedelete 在类中 KeyValueResourcepublic Function<String,Resource> mappedFunction()
KeyValueResourcemappedFunction 在类中 KeyValueResourceCopyright © 2020–2021. All rights reserved.