|
Anyframe Core | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectanyframe.core.query.AbstractDAO
public class AbstractDAO
This is a Wrapper class in order to use with the IQueryService API easily The approproaching logic for the data is handled by inheritting this class in each of the DAO class.
| Constructor Summary | |
|---|---|
AbstractDAO()
|
|
| Method Summary | |
|---|---|
protected int |
create(String tableName,
List targetList)
Execute the INSERT query statement using the targetList including the inputted value, after finding the appropriate queryId in combining the inputted table name and defined createId(default='create'). |
protected int |
create(String tableName,
Map targetMap)
Execute the INSERT query statement by targetMap including the inputted value, after finding the appropriate queryId in combining the inputted table name and defined createId(default='create'). |
protected int |
create(String tableName,
Object targetObj)
Execute the INSERT query statement using the targetObject including the inputted value, after finding the appropriate queryId in combining the inputted table name and defined createId(default='create'). |
protected int |
create(String tableName,
Object[] targetObjs)
Execute the INSERT query statement using the Object array including the inputted value, after finding the appropriate queryId in combining the inputted table name and defined createId(default='create') |
protected int |
create(String tableName,
Object targetObj1,
Object targetObj2)
After finding the appropriate queryId by combining the inputted table name and defined createId(default='create'), execute the INSERT query statement using the two targetObject including the inputted value. |
protected Object |
findByPk(String tableName,
List targetList)
Execute the SELECT query statement for unitary query using the targetList including the inputted value, after finding the queryId and the inputted table name and defined findPrefix(default='find'). |
protected Object |
findByPk(String tableName,
Map targetMap)
Execute the SELECT query statement for unitary query using the targetMap including the inputted value, after finding the appropriate queryId in combining the findByPkPostfix(default='ByPk'). |
protected Object |
findByPk(String tableName,
Object targetObj)
Execute the SELECT query statement for unitary query using the targetObject including the inputted value, after finding the queryId, the inputted table name and defined findPrefix(default='find'). |
protected Object |
findByPk(String tableName,
Object[] targetObjs)
Execute the SELECT query statement for unitary query using the Object array including the variable value, after finding the appropriate queryId in combining the inputted the table name and defined findPrefix(default='find'). |
protected Collection |
findList(String tableName,
List targetObjs)
Execute the SELECT query statement using the targetList including the inputted value, after finding the appropriate queryId in combining the inputted table name and defined findPrefix(default='find'). |
protected Collection |
findList(String tableName,
List targetList,
int pageIndex,
int pageSize)
Execute the SELECT query statement using the pageIndex and pageSize containin the paging info and targetList including the inputted value, after findding the appropriate queryId in combining the inputted table name, findPrefix(default='find') and findListPostfix(default-'List'). |
protected Collection |
findList(String tableName,
Map targetMap)
Exeucte the SELECT query statement using the targetMap including the input value, after finding the appropriate queryId in combining the inputted table name and findPrefix(default='find'). |
protected Collection |
findList(String tableName,
Map targetMap,
int pageIndex,
int pageSize)
Execute the SELECT query statement using the pageIndex and pageSize containing the paging info and targetMap including the inputted value, after finding the appropriate queryId in combining the inputted table name and defined findPrefix(default='find'). |
protected Collection |
findList(String tableName,
Object targetObj)
Execute the SELECT query statement using the targetObject including the inputted value, after finding the appropriate queryId in combining the inputted table name and defined findListPostfix(default='List'). |
protected Collection |
findList(String tableName,
Object[] targetObjs)
Execute the SELECT query statement using the Object array including the inputted value, after finding the appropriate queryId in combining the inputted table name and defined findPrefix(default='find'). |
protected Collection |
findList(String tableName,
Object targetObj,
int pageIndex,
int pageSize)
Execute the SELECT query statement using pageIndex and pageSize containing the paging info and targetObject including the inputted value, after finding the appropriate queryId in combining the inputted table name and defined findPrefix(default'find'). |
protected Page |
findListWithPaging(String tableName,
List targetObjs,
int pageIndex,
int pageSize)
Execute the SELECT query statement using the pageIndex, pageSize and targetList including the inputted value, after finding the appropriate queryId in combining the inputted table name, defined findPrefix(default='find') and findListPostfix(default='List'). |
protected Page |
findListWithPaging(String tableName,
List targetObjs,
int pageIndex,
int pageSize,
int pageUnit)
Execute the SELECT query statement using the pageIndex and pageSize including the paging info, targetList including the inputted value, after finding the appropriate queryId in combining the inputted table name defined in findPrefix (default='find') and findListPostfix(default="List'). |
protected Page |
findListWithPaging(String tableName,
Map targetMap,
int pageIndex,
int pageSize)
Execute the SELECT query statement using the pageIndex and pageSize containing the paging info and targetMap including the inputted value, after finding the appropriate queryId in combining the table name, defined findPrefix(default='find') and findListPostfix(default="List'). |
protected Page |
findListWithPaging(String tableName,
Map targetMap,
int pageIndex,
int pageSize,
int pageUnit)
Execute the SELECT query statement using the pageIndex, pageSize and pageUnit including the paging info, and targetMap including the inputted value, after finding the appropriate queryId in combining the tablename, defined findPrefix(default='find') and findListPostfix(default='List'). |
protected Page |
findListWithPaging(String tableName,
Object[] targetObjs,
int pageIndex,
int pageSize)
Execute the SELECT query statement using the pageIndex and pageSize including the paging info and Object array including the inputted value, after finding the appropriate queryId in combining the inputted table name, defined findPrefix(default='find') and findListPostfix(default='List'). |
protected Page |
findListWithPaging(String tableName,
Object[] targetObjs,
int pageIndex,
int pageSize,
int pageUnit)
Execute the SELECT query statement using the pageIndex and pageSize including the paging info and Object order including the variable name, after finding the appropriate queryId in combining the inputted table name, defined findPrefix(default='find') and findListPostfix(default='List'). |
protected Page |
findListWithPaging(String tableName,
Object targetObj,
int pageIndex,
int pageSize)
Execute the SELECT query statement using the pageIndex and pageSize including the paging info and targetObject including the inputted value, after finding the appropriate queryId in combining the inputted table name, defined findPrefix(default='find') and findListPostfix(default='List'). |
protected Page |
findListWithPaging(String tableName,
Object targetObj,
int pageIndex,
int pageSize,
int pageUnit)
Execute the SELECT query statement using the pageIndex, pageSize and pageUnit containing the paging info and targObject including the inputted value, after finding the appropriate queryId in combining the inputted table name, findPrefix(default='find') and findListPostfix(default='List'). |
IQueryService |
getQueryService()
|
protected int |
remove(String tableName,
List targetObjs)
Execute the DELETE query statement using the targetList including the input value, after finding the appropriate queryId in combining the the input table name and defined removeId(default='remove'). |
protected int |
remove(String tableName,
Map targetMap)
Execute the DELETE query statement using the targetMap including the inputted value, after finding the appropriate queryId in combining the inputted table name and defined removeId(default='remove'). |
protected int |
remove(String tableName,
Object targetObj)
Execute the DELETE query statement using the targetObject including the inputted value, after finding the appropriate queryId in combining the inputted table name and (removeId(default='remove'); |
protected int |
remove(String tableName,
Object[] targetObjs)
Execute the DELETE query statement using the Object array including the inputted value, after finding the appropriate queryId in combining the inputted table name and defined removeId(default='remove') |
protected int |
remove(String tableName,
Object targetObj1,
Object targetObj2)
Execute the DELETE query statement using the two targetObject including the input value, after finding the appropriate queryId in combining the inputted table name and defined updateId(default='remove').' |
void |
setCreateId(String createId)
|
void |
setFindByPkPostfix(String findByPkPostfix)
|
void |
setFindListPostfix(String findListPostfix)
|
void |
setFindPrefix(String findPrefix)
|
void |
setQueryService(IQueryService queryService)
|
void |
setRemoveId(String removeId)
|
void |
setUpdateId(String updateId)
|
void |
setVariableName(String variableName)
|
protected int |
update(String tableName,
List targetList)
Execute the UPDATE query statement using the targetList including the inputted value, after finding the appropriate queryId in combining the inputted table name and defined updateId(default='update'). |
protected int |
update(String tableName,
Map targetMap)
Execute the UPDATE query statement using the targetMap including the inputted value, after finding the appropriate queryId in combining the inputted table name and defined updateId(default='create'). |
protected int |
update(String tableName,
Object targetObj)
Execute the UPDATE query statement using the targetObject including the inputted value, after finding the appropriate queryId in combining the inputted table name and defined updateId(default='update') |
protected int |
update(String tableName,
Object[] targetObjs)
Execute the UPDATE query statement using the object array including the inputted value, after finding the appropriate queryId in combining the inputted table name and the defined updateId(default='update') |
protected int |
update(String tableName,
Object targetObj1,
Object targetObj2)
Execute the UPDATE query statement using the two targetObject including the input value, after finding the appropriate queryId in combining the inputted table name and defined updateId(default='update').' |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractDAO()
| Method Detail |
|---|
public IQueryService getQueryService()
public void setQueryService(IQueryService queryService)
public void setVariableName(String variableName)
public void setCreateId(String createId)
public void setRemoveId(String removeId)
public void setUpdateId(String updateId)
public void setFindPrefix(String findPrefix)
public void setFindByPkPostfix(String findByPkPostfix)
public void setFindListPostfix(String findListPostfix)
protected int create(String tableName,
Object targetObj)
throws QueryServiceException
tableName - table nametargetObj - including the needed inputted name at
query execution
QueryServiceException - if there is any problem executing the
query
protected int create(String tableName,
Map targetMap)
throws QueryServiceException
tableName - table nametargetMap - Map including the needed inputted value
at the query execution
QueryServiceException - if there is any problem executing the
query
protected int create(String tableName,
Object targetObj1,
Object targetObj2)
throws QueryServiceException
tableName - targetObj1 - The first object including the needed
input value at the query executiontargetObj2 - The second object including the needed
input value at the query execution
QueryServiceException - if there is any problem executing the
query
protected int create(String tableName,
List targetList)
throws QueryServiceException
tableName - table nametargetList - List including the needed input object at
the query execution
QueryServiceException - if there is any problem executing the
query
protected int create(String tableName,
Object[] targetObjs)
throws QueryServiceException
tableName - table nametargetObjs - Object Array including the needed input
object at the query execution
QueryServiceException - if there is any problem executing the
query
protected int update(String tableName,
Object targetObj)
throws QueryServiceException
tableName - table nametargetObj - Object including the needed input object
at the query execution
QueryServiceException - if there is any problem executing the
query
protected int update(String tableName,
Map targetMap)
throws QueryServiceException
tableName - table nametargetMap - The map including the needed input value
at the query execution
QueryServiceException - if there is any problem executing the
query
protected int update(String tableName,
List targetList)
throws QueryServiceException
tableName - table nametargetList - List including the needed input variable
at the execution of the query
QueryServiceException - if there is any problem executing the
query
protected int update(String tableName,
Object targetObj1,
Object targetObj2)
throws QueryServiceException
tableName - table nametargetObj1 - first object including the needed input
value at the execution of the query
statementtargetObj2 - Second object including the needed input
value at the query execution
QueryServiceException - if there is any problem executing the
query
protected int update(String tableName,
Object[] targetObjs)
throws QueryServiceException
tableName - table nametargetObjs - Object Array including the needed input
value at the query execution
QueryServiceException - if there is any problem executing the
query
protected int remove(String tableName,
Object targetObj)
throws QueryServiceException
tableName - table nametargetObj - Object including the needed input value
at the query execution.
QueryServiceException - if there is any problem executing the
query
protected int remove(String tableName,
Map targetMap)
throws QueryServiceException
tableName - table nametargetMap - the Map including the needed input value
at the execution of query statement
QueryServiceException - if there is any problem executing the
query
protected int remove(String tableName,
Object targetObj1,
Object targetObj2)
throws QueryServiceException
tableName - table nametargetObj1 - first object including the needed input
value at the execution of the query
statementtargetObj2 - Second object including the needed input
value at the query execution
QueryServiceException - if there is any problem executing the
query
protected int remove(String tableName,
List targetObjs)
throws QueryServiceException
tableName - table nametargetList - the List including the needed input value
at query execution
QueryServiceException - if there is any problem executing the
query
protected int remove(String tableName,
Object[] targetObjs)
throws QueryServiceException
tableName - table nametargetObjs - Object Array including the needed input
value at the query execution
QueryServiceException - if there is any problem executing the
query
protected Object findByPk(String tableName,
Object targetObj)
throws QueryServiceException
tableName - table nametargetObj - Object including the needed input value
of query execution
QueryServiceException - if there is any problem executing the
query
protected Object findByPk(String tableName,
Map targetMap)
throws QueryServiceException
tableName - table nametargetMap - Map including the needed input value at
the query execution
QueryServiceException - if there is any problem executing the
query
protected Object findByPk(String tableName,
List targetList)
throws QueryServiceException
tableName - targetList - the List including the needed input value
at the query execution
QueryServiceException - if there is any problem executing the
query
protected Object findByPk(String tableName,
Object[] targetObjs)
throws QueryServiceException
tableName - table nametargetObjs - Object Array including the needed
inputted value at the query execution
QueryServiceException - if there is any problem executing the
query
protected Collection findList(String tableName,
Object targetObj)
throws QueryServiceException
tableName - table nametargetObj - Object including the needed input value
at query exeuction
QueryServiceException - if there is any problem executing the
query
protected Collection findList(String tableName,
Map targetMap)
throws QueryServiceException
tableName - table nametargetMap - the Map including the needed inputted
value at the query execution
QueryServiceException - if there is any problem executing the
query
protected Collection findList(String tableName,
List targetObjs)
throws QueryServiceException
tableName - table nametargetList - the List including the needed input
object at the query execution
QueryServiceException - if there is any problem executing the
query
protected Collection findList(String tableName,
Object[] targetObjs)
throws QueryServiceException
tableName - table nametargetObjs - Object Array including the needed input
value at query execution
QueryServiceException - if there is any problem executing the
query
protected Collection findList(String tableName,
Object targetObj,
int pageIndex,
int pageSize)
throws QueryServiceException
tableName - table nametargetObj - the object including the needed input
value at query executionpageIndex - page number which expected to be
displayed.pageSize - maximum number of data that can be
displayed.
QueryServiceException - if there is any problem executing the
query
protected Collection findList(String tableName,
Map targetMap,
int pageIndex,
int pageSize)
throws QueryServiceException
tableName - table nametargetMap - the Map including the needed variable
value at execution of query statementpageIndex - page number which expected to be
displayed.pageSize - maximum number of data that can be
displayed.
QueryServiceException - if there is any problem executing the
query
protected Collection findList(String tableName,
List targetList,
int pageIndex,
int pageSize)
throws QueryServiceException
tableName - table nametargetList - the List including the needed input
object at the execution of the query
statementpageIndex - page number which expected to be
displayed.pageSize - maximum number of data that can be
displayed.
QueryServiceException - if there is any problem executing the
query
protected Page findListWithPaging(String tableName,
Object targetObj,
int pageIndex,
int pageSize)
throws QueryServiceException
tableName - table nametargetObj - the object included in the needed input
variable at the query executionpageIndex - page number which expected to be
displayed.pageSize - maximum number of data that can be
displayed.
QueryServiceException - if there is any problem executing the
query
protected Page findListWithPaging(String tableName,
Object targetObj,
int pageIndex,
int pageSize,
int pageUnit)
throws QueryServiceException
tableName - table nametargetObj - the object including the inputted name at
the query executionpageIndex - page number which expected to be
displayed.pageSize - maximum number of data that can be
displayed.pageUnit - page unit which expected to be displayed.
QueryServiceException - if there is any problem executing the
query
protected Page findListWithPaging(String tableName,
Map targetMap,
int pageIndex,
int pageSize)
throws QueryServiceException
tableName - table nametargetMap - the Map including the needed inputted
value at the query executionpageIndex - page number which expected to be
displayed.pageSize - maximum number of data that can be
displayed.
QueryServiceException - if there is any problem executing the
query
protected Page findListWithPaging(String tableName,
Map targetMap,
int pageIndex,
int pageSize,
int pageUnit)
throws QueryServiceException
tableName - table nametargetMap - the Map including the needed input value
at the query executionpageIndex - page number which expected to be
displayed.pageSize - maximum number of data that can be
displayed.pageUnit - page unit which expected to be displayed.
QueryServiceException - if there is any problem executing the
query
protected Page findListWithPaging(String tableName,
List targetObjs,
int pageIndex,
int pageSize)
throws QueryServiceException
tableName - table nametargetList - the List including the inputted object at
the query exeuctionpageIndex - page number which expected to be
displayed.pageSize - maximum number of data that can be
displayed.
QueryServiceException - if there is any problem executing the
query
protected Page findListWithPaging(String tableName,
List targetObjs,
int pageIndex,
int pageSize,
int pageUnit)
throws QueryServiceException
tableName - table nametargetList - the List including the needed input
object at query executionpageIndex - page number which expected to be
displayed.pageSize - maximum number of data that can be
displayed.pageUnit - page unit which expected to be displayed.
QueryServiceException - if there is any problem executing the
query
protected Page findListWithPaging(String tableName,
Object[] targetObjs,
int pageIndex,
int pageSize)
throws QueryServiceException
tableName - table nametargetObjs - the Object Array including the needed
query info at query executionpageIndex - page number which expected to be
displayed.pageSize - maximum number of data that can be
displayed.
QueryServiceException - if there is any problem executing the
query
protected Page findListWithPaging(String tableName,
Object[] targetObjs,
int pageIndex,
int pageSize,
int pageUnit)
throws QueryServiceException
tableName - table nametargetObjs - the Object Array including the needed
inputted value at the query executionpageIndex - page number which expected to be
displayed.pageSize - maximum number of data that can be
displayed.pageUnit - page unit which expected to be displayed.
QueryServiceException - if there is any problem executing the
query
|
Anyframe Core | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||