public class DAOFacadeBase<D> extends Object
BeanConsistencyChecker in your beans for sophisticated
consistency check.| Modifier and Type | Field and Description |
|---|---|
protected D |
legacyDAO |
protected D |
lightblueDAO |
| Constructor and Description |
|---|
DAOFacadeBase(D legacyDAO,
D lightblueDAO) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
callDAOCreateSingleMethod(boolean pureWrite,
EntityIdExtractor<T> entityIdExtractor,
Class<T> returnedType,
String methodName,
Class[] types,
Object... values)
Call dao method which creates a single entity.
|
<T> T |
callDAOCreateSingleMethod(boolean pureWrite,
EntityIdExtractor<T> entityIdExtractor,
Class<T> returnedType,
String methodName,
Object... values) |
<T> T |
callDAOReadMethod(Class<T> returnedType,
String methodName,
Class[] types,
Object... values)
Call dao method which reads data.
|
<T> T |
callDAOReadMethod(Class<T> returnedType,
String methodName,
Object... values)
Call dao method which reads data.
|
<T> List<T> |
callDAOReadMethodReturnList(Class<T> returnedType,
String methodName,
Class[] types,
Object... values) |
<T> T |
callDAOUpdateMethod(Class<T> returnedType,
String methodName,
Class[] types,
Object... values)
Call dao method which updates data.
|
<T> T |
callDAOUpdateMethod(Class<T> returnedType,
String methodName,
Object... values)
Call dao method which updates data.
|
boolean |
checkConsistency(Object o1,
Object o2) |
EntityIdStore |
getEntityIdStore() |
int |
getTimeoutSeconds() |
void |
setEntityIdStore(EntityIdStore entityIdStore) |
void |
setTimeoutSeconds(int timeoutSeconds) |
public EntityIdStore getEntityIdStore()
public void setEntityIdStore(EntityIdStore entityIdStore)
public <T> T callDAOReadMethod(Class<T> returnedType, String methodName, Class[] types, Object... values) throws Exception
returnedType - type of the returned objectmethodName - method name to calltypes - List of parameter typesvalues - List of parametersExceptionpublic <T> List<T> callDAOReadMethodReturnList(Class<T> returnedType, String methodName, Class[] types, Object... values) throws Exception
Exceptionpublic <T> T callDAOReadMethod(Class<T> returnedType, String methodName, Object... values) throws Exception
returnedType - type of the returned objectmethodName - method name to callvalues - List of parametersExceptionpublic <T> T callDAOUpdateMethod(Class<T> returnedType, String methodName, Class[] types, Object... values) throws Exception
returnedType - type of the returned objectmethodName - method name to calltypes - List of parameter typesvalues - List of parametersExceptionpublic <T> T callDAOUpdateMethod(Class<T> returnedType, String methodName, Object... values) throws Exception
returnedType - type of the returned objectmethodName - method name to callvalues - List of parametersExceptionpublic <T> T callDAOCreateSingleMethod(boolean pureWrite,
EntityIdExtractor<T> entityIdExtractor,
Class<T> returnedType,
String methodName,
Class[] types,
Object... values)
throws Exception
pureWrite - method does only write if true. Set it to false if does both read and write.returnedType - type of the returned objectmethodName - method name to calltypes - List of parameter typesvalues - List of parametersExceptionpublic <T> T callDAOCreateSingleMethod(boolean pureWrite,
EntityIdExtractor<T> entityIdExtractor,
Class<T> returnedType,
String methodName,
Object... values)
throws Exception
Exceptionpublic int getTimeoutSeconds()
public void setTimeoutSeconds(int timeoutSeconds)
Copyright © 2015. All rights reserved.