com.clickntap.tool.bean
Class BeanManagerImpl
java.lang.Object
com.clickntap.tool.bean.BeanManagerImpl
- All Implemented Interfaces:
- BeanManager
public class BeanManagerImpl
- extends Object
- implements BeanManager
|
Method Summary |
void |
batchUpdate(String[] sql)
|
void |
copyFrom(Bean bean,
org.springframework.web.multipart.MultipartFile multipartFile)
|
void |
copyTo(Bean bean,
OutputStream out)
|
void |
copyTo(Bean bean,
OutputStream out,
int offset,
int length)
|
Number |
create(Bean bean)
|
int |
delete(Bean bean)
|
int |
execute(Bean bean,
String scriptName)
|
int |
execute(Class beanClass,
String scriptName)
|
Object |
executeTransaction(org.springframework.transaction.support.TransactionCallback transactionCallback)
|
List |
exportList(Class beanClass,
Bean bean,
String fieldName)
|
List |
exportList(Class beanClass,
String fieldName)
|
BeanInfo |
getBeanInfo(Class beanClass)
|
String |
getChannel()
|
JdbcManager |
getJdbcManager()
|
org.springframework.transaction.PlatformTransactionManager |
getTransactionManager()
|
org.springframework.validation.Validator |
getValidator(BeanInfo beanInfo,
String validationGroup)
|
org.springframework.validation.Validator |
getValidator(Bean bean,
String validationGroup)
|
void |
init()
|
void |
invalidateCache(BeanInfo beanInfo,
Number id)
|
Bean |
read(Number id,
Class beanClass)
|
Bean |
readByFilter(Bean filter,
String filterName,
Class beanClass)
|
List<Number> |
readList(Bean bean,
String fieldName)
|
List<Number> |
readListByClass(Class beanClass,
String fieldName)
|
List<Number> |
readListByFilter(Class beanClass,
Bean bean,
String fieldName)
|
void |
restart()
|
void |
setCacheManager(CacheManager cacheManager)
|
void |
setChannel(String channel)
|
void |
setJdbcManager(JdbcManager jdbcManager)
|
void |
setScriptEngine(ScriptEngine scriptEngine)
|
void |
start()
|
void |
stop()
|
InputStream |
stream(Bean bean)
|
int |
update(Bean bean)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ID_FILTER
public static final String ID_FILTER
- See Also:
- Constant Field Values
BeanManagerImpl
public BeanManagerImpl()
throws Exception
- Throws:
Exception
getChannel
public String getChannel()
setChannel
public void setChannel(String channel)
copyFrom
public void copyFrom(Bean bean,
org.springframework.web.multipart.MultipartFile multipartFile)
throws Exception
- Specified by:
copyFrom in interface BeanManager
- Throws:
Exception
copyTo
public void copyTo(Bean bean,
OutputStream out)
throws Exception
- Specified by:
copyTo in interface BeanManager
- Throws:
Exception
copyTo
public void copyTo(Bean bean,
OutputStream out,
int offset,
int length)
throws Exception
- Throws:
Exception
stream
public InputStream stream(Bean bean)
throws Exception
- Specified by:
stream in interface BeanManager
- Throws:
Exception
read
public Bean read(Number id,
Class beanClass)
throws Exception
- Specified by:
read in interface BeanManager
- Throws:
Exception
readByFilter
public Bean readByFilter(Bean filter,
String filterName,
Class beanClass)
throws Exception
- Specified by:
readByFilter in interface BeanManager
- Throws:
Exception
create
public Number create(Bean bean)
throws Exception
- Specified by:
create in interface BeanManager
- Throws:
Exception
invalidateCache
public void invalidateCache(BeanInfo beanInfo,
Number id)
throws Exception
- Throws:
Exception
update
public int update(Bean bean)
throws Exception
- Specified by:
update in interface BeanManager
- Throws:
Exception
delete
public int delete(Bean bean)
throws Exception
- Specified by:
delete in interface BeanManager
- Throws:
Exception
getBeanInfo
public BeanInfo getBeanInfo(Class beanClass)
throws Exception
- Throws:
Exception
setJdbcManager
public void setJdbcManager(JdbcManager jdbcManager)
restart
public void restart()
throws Exception
- Throws:
Exception
start
public void start()
throws Exception
- Throws:
Exception
stop
public void stop()
throws Exception
- Throws:
Exception
setCacheManager
public void setCacheManager(CacheManager cacheManager)
throws Exception
- Throws:
Exception
readList
public List<Number> readList(Bean bean,
String fieldName)
throws Exception
- Specified by:
readList in interface BeanManager
- Throws:
Exception
execute
public int execute(Bean bean,
String scriptName)
throws Exception
- Specified by:
execute in interface BeanManager
- Throws:
Exception
execute
public int execute(Class beanClass,
String scriptName)
throws Exception
- Throws:
Exception
readListByClass
public List<Number> readListByClass(Class beanClass,
String fieldName)
throws Exception
- Specified by:
readListByClass in interface BeanManager
- Throws:
Exception
exportList
public List exportList(Class beanClass,
String fieldName)
throws Exception
- Throws:
Exception
readListByFilter
public List<Number> readListByFilter(Class beanClass,
Bean bean,
String fieldName)
throws Exception
- Specified by:
readListByFilter in interface BeanManager
- Throws:
Exception
exportList
public List exportList(Class beanClass,
Bean bean,
String fieldName)
throws Exception
- Specified by:
exportList in interface BeanManager
- Throws:
Exception
getValidator
public org.springframework.validation.Validator getValidator(BeanInfo beanInfo,
String validationGroup)
throws Exception
- Throws:
Exception
getValidator
public org.springframework.validation.Validator getValidator(Bean bean,
String validationGroup)
throws Exception
- Specified by:
getValidator in interface BeanManager
- Throws:
Exception
setScriptEngine
public void setScriptEngine(ScriptEngine scriptEngine)
getJdbcManager
public JdbcManager getJdbcManager()
batchUpdate
public void batchUpdate(String[] sql)
throws Exception
- Specified by:
batchUpdate in interface BeanManager
- Throws:
Exception
executeTransaction
public Object executeTransaction(org.springframework.transaction.support.TransactionCallback transactionCallback)
- Specified by:
executeTransaction in interface BeanManager
getTransactionManager
public org.springframework.transaction.PlatformTransactionManager getTransactionManager()
- Specified by:
getTransactionManager in interface BeanManager
init
public void init()
throws Exception
- Specified by:
init in interface BeanManager
- Throws:
Exception
Copyright © 2014. All rights reserved.