public abstract class GeneralDaoImpl<T extends online.sanen.cdm.basic.BasicBean> extends Object implements GeneralDao<T>, org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>, org.springframework.beans.factory.config.BeanPostProcessor
| 构造器和说明 |
|---|
GeneralDaoImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
List<T> |
all()
Gets the table all data
|
protected String |
applyBootStrapBeanId()
Assin the BootStrap-Id pass override this method.
|
protected online.sanen.cdm.QuerySQL |
createSQL(String sql,
Object... paramers) |
protected online.sanen.cdm.QuerySQL |
createSQLForEntry(String sql,
Object... paramers) |
T |
find(Object primarykey)
The primary key to find
|
T |
find(String fieldName,
Object value)
Search by field
|
protected online.sanen.cdm.Bootstrap |
getBootstrap() |
int |
insert(T entry) |
Object |
maximumkey()
Gets the maximum of the primary key
|
void |
onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event) |
Object |
postProcessAfterInitialization(Object obj,
String str) |
Object |
postProcessBeforeInitialization(Object obj,
String str) |
protected online.sanen.cdm.QueryTB |
queryTB() |
protected online.sanen.cdm.QueryTB |
queryTBForEntry() |
int |
remove(Object object)
The primary key to remove
|
int |
remove(String fieldName,
Object value)
Remove by fieldRemove by field
|
int |
totalNumber()
Gets the current table total
|
int |
update(T entry) |
public final void onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event)
onApplicationEvent 在接口中 org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>public final int insert(T entry)
insert 在接口中 GeneralDao<T extends online.sanen.cdm.basic.BasicBean>public final int remove(Object object)
GeneralDaoremove 在接口中 GeneralDao<T extends online.sanen.cdm.basic.BasicBean>object - - primaryKey value or basicEntrypublic final int update(T entry)
update 在接口中 GeneralDao<T extends online.sanen.cdm.basic.BasicBean>public final T find(Object primarykey)
GeneralDaofind 在接口中 GeneralDao<T extends online.sanen.cdm.basic.BasicBean>primarykey - - primaryKey value or basicEntrypublic final List<T> all()
GeneralDaoall 在接口中 GeneralDao<T extends online.sanen.cdm.basic.BasicBean>public final Object maximumkey()
GeneralDaomaximumkey 在接口中 GeneralDao<T extends online.sanen.cdm.basic.BasicBean>public final int totalNumber()
GeneralDaototalNumber 在接口中 GeneralDao<T extends online.sanen.cdm.basic.BasicBean>public final int remove(String fieldName, Object value)
GeneralDaoremove 在接口中 GeneralDao<T extends online.sanen.cdm.basic.BasicBean>public final T find(String fieldName, Object value)
GeneralDaofind 在接口中 GeneralDao<T extends online.sanen.cdm.basic.BasicBean>fieldName - - field by table columnvalue - - valueprotected final online.sanen.cdm.QueryTB queryTB()
protected final online.sanen.cdm.QueryTB queryTBForEntry()
protected final online.sanen.cdm.QuerySQL createSQLForEntry(String sql, Object... paramers)
protected final online.sanen.cdm.Bootstrap getBootstrap()
protected String applyBootStrapBeanId()
public Object postProcessBeforeInitialization(Object obj, String str) throws org.springframework.beans.BeansException
postProcessBeforeInitialization 在接口中 org.springframework.beans.factory.config.BeanPostProcessororg.springframework.beans.BeansExceptionCopyright © 2018. All rights reserved.