com.googlecode.gendevcode.common
类 Cache

java.lang.Object
  继承者 com.googlecode.gendevcode.common.Cache

public class Cache
extends Object

通用缓存类

作者:
devilishking

方法摘要
<T> T
getBean(String serviceId, Class<T> objectClass)
          获取系统类实体类
<T> T
getBean(String serviceId, int index, Class<T> objectClass)
          获取系统类实体类
<T> T
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
 

方法详细信息

getInstance

public static Cache getInstance()

init

public void init()
          throws Exception
初始化数据

抛出:
Exception

reset

public void reset()
           throws Exception
重置数据

抛出:
Exception

getBean

public <T> T getBean(String serviceId,
                     Class<T> objectClass)
          throws Exception
获取系统类实体类

参数:
serviceId - 系统类
返回:
抛出:
Exception

getBean

public <T> T getBean(String serviceId,
                     int index,
                     Class<T> objectClass)
          throws Exception
获取系统类实体类

参数:
serviceId - 系统类
index - 序号
返回:
抛出:
Exception

getBean

public <T> T getBean(String serviceId,
                     int index,
                     String version,
                     Class<T> objectClass)
          throws Exception
获取系统类实体类

参数:
serviceId - 系统类
index - 序号
version - 版本号
返回:
抛出:
Exception

getRootPath

public String getRootPath()
获得程序根目录

返回:

getProjectTypeList

public List<String> getProjectTypeList()
项目类型列表

返回:

getProjectXmlList

public List<ProjectXml> getProjectXmlList()
获取项目信息列表

返回:

getDataTypePdmXmlList

public List<DataTypePdmXml> getDataTypePdmXmlList()
获取数据类型结构列表

返回:


Copyright © 2012 Devilishkom. All Rights Reserved.