com.clickntap.tool.bean
Interface BeanManager
- All Known Implementing Classes:
- BeanManagerImpl, BOManager, ProxyBeanManager, RemoteBeanManager
public interface BeanManager
|
Method Summary |
void |
batchUpdate(String[] sql)
|
void |
copyFrom(Bean bean,
org.springframework.web.multipart.MultipartFile in)
|
void |
copyTo(Bean bean,
OutputStream out)
|
Number |
create(Bean bean)
|
int |
delete(Bean bean)
|
int |
execute(Bean bean,
String what)
|
Object |
executeTransaction(org.springframework.transaction.support.TransactionCallback transactionCallback)
|
List<Bean> |
exportList(Class beanClass,
Bean bean,
String fieldName)
|
org.springframework.transaction.PlatformTransactionManager |
getTransactionManager()
|
org.springframework.validation.Validator |
getValidator(Bean target,
String validationGroup)
|
void |
init()
|
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 filter,
String fieldName)
|
InputStream |
stream(Bean bean)
|
int |
update(Bean bean)
|
read
Bean read(Number id,
Class beanClass)
throws Exception
- Throws:
Exception
readByFilter
Bean readByFilter(Bean filter,
String filterName,
Class beanClass)
throws Exception
- Throws:
Exception
create
Number create(Bean bean)
throws Exception
- Throws:
Exception
update
int update(Bean bean)
throws Exception
- Throws:
Exception
delete
int delete(Bean bean)
throws Exception
- Throws:
Exception
batchUpdate
void batchUpdate(String[] sql)
throws Exception
- Throws:
Exception
readList
List<Number> readList(Bean bean,
String fieldName)
throws Exception
- Throws:
Exception
readListByClass
List<Number> readListByClass(Class beanClass,
String fieldName)
throws Exception
- Throws:
Exception
readListByFilter
List<Number> readListByFilter(Class beanClass,
Bean filter,
String fieldName)
throws Exception
- Throws:
Exception
copyTo
void copyTo(Bean bean,
OutputStream out)
throws Exception
- Throws:
Exception
copyFrom
void copyFrom(Bean bean,
org.springframework.web.multipart.MultipartFile in)
throws Exception
- Throws:
Exception
stream
InputStream stream(Bean bean)
throws Exception
- Throws:
Exception
execute
int execute(Bean bean,
String what)
throws Exception
- Throws:
Exception
exportList
List<Bean> exportList(Class beanClass,
Bean bean,
String fieldName)
throws Exception
- Throws:
Exception
getValidator
org.springframework.validation.Validator getValidator(Bean target,
String validationGroup)
throws Exception
- Throws:
Exception
executeTransaction
Object executeTransaction(org.springframework.transaction.support.TransactionCallback transactionCallback)
getTransactionManager
org.springframework.transaction.PlatformTransactionManager getTransactionManager()
init
void init()
throws Exception
- Throws:
Exception
Copyright © 2014. All rights reserved.