com.clickntap.tool.bean
Class ProxyBeanManager

java.lang.Object
  extended by com.clickntap.tool.bean.ProxyBeanManager
All Implemented Interfaces:
BeanManager
Direct Known Subclasses:
BOManager

public class ProxyBeanManager
extends Object
implements BeanManager


Constructor Summary
ProxyBeanManager()
           
 
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 bean, String fieldName)
           
 void setBeanManager(BeanManager beanManager)
           
 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
 

Constructor Detail

ProxyBeanManager

public ProxyBeanManager()
Method Detail

setBeanManager

public void setBeanManager(BeanManager beanManager)

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

update

public int update(Bean bean)
           throws Exception
Specified by:
update in interface BeanManager
Throws:
Exception

execute

public int execute(Bean bean,
                   String what)
            throws Exception
Specified by:
execute in interface BeanManager
Throws:
Exception

create

public Number create(Bean bean)
              throws Exception
Specified by:
create in interface BeanManager
Throws:
Exception

delete

public int delete(Bean bean)
           throws Exception
Specified by:
delete in interface BeanManager
Throws:
Exception

copyFrom

public void copyFrom(Bean bean,
                     org.springframework.web.multipart.MultipartFile in)
              throws Exception
Specified by:
copyFrom in interface BeanManager
Throws:
Exception

readList

public List<Number> readList(Bean bean,
                             String fieldName)
                      throws Exception
Specified by:
readList in interface BeanManager
Throws:
Exception

readListByClass

public List<Number> readListByClass(Class beanClass,
                                    String fieldName)
                             throws Exception
Specified by:
readListByClass in interface BeanManager
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<Bean> exportList(Class beanClass,
                             Bean bean,
                             String fieldName)
                      throws Exception
Specified by:
exportList in interface BeanManager
Throws:
Exception

copyTo

public void copyTo(Bean bean,
                   OutputStream out)
            throws Exception
Specified by:
copyTo in interface BeanManager
Throws:
Exception

stream

public InputStream stream(Bean bean)
                   throws Exception
Specified by:
stream in interface BeanManager
Throws:
Exception

getValidator

public org.springframework.validation.Validator getValidator(Bean target,
                                                             String validationGroup)
                                                      throws Exception
Specified by:
getValidator in interface BeanManager
Throws:
Exception

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.