|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectcom.googlecode.gendevcode.common.Cache
public class Cache
通用缓存类
| 方法摘要 | ||
|---|---|---|
|
getBean(String serviceId,
Class<T> objectClass)
获取系统类实体类 |
|
|
getBean(String serviceId,
int index,
Class<T> objectClass)
获取系统类实体类 |
|
|
getBean(String serviceId,
int index,
String version,
Class<T> objectClass)
获取系统类实体类 |
|
List<DataTypePdmXml> |
getDataTypePdmXmlList()
获取数据类型结构列表 |
|
static Cache |
getInstance()
|
|
List<String> |
getProjectTypeList()
项目类型列表 |
|
List<ProjectXml> |
getProjectXmlList()
获取项目信息列表 |
|
String |
getRootPath()
获得程序根目录 |
|
void |
init()
初始化数据 |
|
void |
reset()
重置数据 |
|
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 方法详细信息 |
|---|
public static Cache getInstance()
public void init()
throws Exception
Exception
public void reset()
throws Exception
Exception
public <T> T getBean(String serviceId,
Class<T> objectClass)
throws Exception
serviceId - 系统类
Exception
public <T> T getBean(String serviceId,
int index,
Class<T> objectClass)
throws Exception
serviceId - 系统类index - 序号
Exception
public <T> T getBean(String serviceId,
int index,
String version,
Class<T> objectClass)
throws Exception
serviceId - 系统类index - 序号version - 版本号
Exceptionpublic String getRootPath()
public List<String> getProjectTypeList()
public List<ProjectXml> getProjectXmlList()
public List<DataTypePdmXml> getDataTypePdmXmlList()
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||