|
JDBaccess API 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DataAccessObject
Super interface of all data access object interfaces.
Method Summary | |
---|---|
void |
createSequence(java.lang.String seqName)
Creates sequence with that sequence name |
void |
createTable(java.lang.String sqlCreateTableString)
Creates table with that create table string |
java.lang.Long |
delete(TransferObject to)
Deletes one database row (wit the id of the transfer object) or delete some database rows (with the whereCondition of the transfer object) |
java.lang.Long |
deleteAll(java.lang.String entity)
Deletes all rows for that entity |
void |
dropSequence(java.lang.String seqName)
Drops sequence with that sequence name |
void |
dropTable(java.lang.String tableName)
Drops table with that table name |
Function |
executeFunction(java.lang.String objectType,
java.lang.String name,
java.lang.String moduleName,
java.lang.String functionName,
java.util.ArrayList params,
java.lang.String outputParamType)
Try to find the function with that object type and name over the defined data access xml files. |
Procedure |
executeProcedure(java.lang.String objectType,
java.lang.String name,
java.lang.String moduleName,
java.lang.String procedureName,
java.util.ArrayList params,
java.util.ArrayList outputParamTypes)
Try to find the procedure with that object type and name with user defined data access xml files. |
Result |
find(java.lang.String objectType,
java.lang.String selectName)
Try to do a find with that object type and select name over the defined data access xml files. |
Result |
find(java.lang.String objectType,
java.lang.String selectName,
java.lang.String sql,
java.lang.String sqlCount,
java.util.ArrayList params,
java.util.ArrayList orderBy,
java.lang.Class resultType,
java.util.ArrayList resultFieldTypes,
boolean readFull)
Try to do a find with that object type and select name over the defined data access xml files. |
java.lang.Long |
getSequenceNextValue(java.lang.String seqName)
Gets one next value of that sequence |
java.util.ArrayList |
getSequenceNextValues(java.lang.String seqName,
int count)
Gets "count" number of values for that sequence |
java.util.ArrayList |
insert(java.util.ArrayList tos)
Inserts these transfer objects |
TransferObject |
insert(TransferObject to)
Inserts this transfer object |
java.lang.Long |
update(TransferObject to)
Updates modified values of this transfer object in one database row (over id of that transfer object) or update modified values of this transfer object in some database rows (over whereCondition of that transfer object) |
Method Detail |
---|
void createTable(java.lang.String sqlCreateTableString) throws ApplicationException
sqlCreateTableString
- sql string for creating the table
ApplicationException
void dropTable(java.lang.String tableName) throws ApplicationException
tableName
- table name
ApplicationException
void createSequence(java.lang.String seqName) throws ApplicationException
seqName
- sequence name
ApplicationException
void dropSequence(java.lang.String seqName) throws ApplicationException
seqName
- sequence name
ApplicationException
java.lang.Long getSequenceNextValue(java.lang.String seqName) throws ApplicationException
seqName
- sequence name
ApplicationException
java.util.ArrayList getSequenceNextValues(java.lang.String seqName, int count) throws ApplicationException
seqName
- sequence namecount
- number of sequences to fetch from sequence
ApplicationException
TransferObject insert(TransferObject to) throws ApplicationException
to
- transfer object
ApplicationException
java.util.ArrayList insert(java.util.ArrayList tos) throws ApplicationException
tos
- transfer objects
ApplicationException
java.lang.Long update(TransferObject to) throws ApplicationException
to
- transfer object
ApplicationException
java.lang.Long delete(TransferObject to) throws ApplicationException
to
- transfer object
ApplicationException
java.lang.Long deleteAll(java.lang.String entity) throws ApplicationException
entity
- table name
ApplicationException
Result find(java.lang.String objectType, java.lang.String selectName) throws ApplicationException
objectType
- object type of the select objectselectName
- name of the select object
ApplicationException
Result find(java.lang.String objectType, java.lang.String selectName, java.lang.String sql, java.lang.String sqlCount, java.util.ArrayList params, java.util.ArrayList orderBy, java.lang.Class resultType, java.util.ArrayList resultFieldTypes, boolean readFull) throws ApplicationException
objectType
- object type of the select objectselectName
- name of the select objectsql
- sql string of the selectsqlCount
- sql count string of the selectparams
- parameters of the selectorderBy
- order by parameters of the selectresultType
- result type of the selectresultFieldTypes
- result field type of the selectreadFull
- all fields are read full if true
ApplicationException
Procedure executeProcedure(java.lang.String objectType, java.lang.String name, java.lang.String moduleName, java.lang.String procedureName, java.util.ArrayList params, java.util.ArrayList outputParamTypes) throws ApplicationException
objectType
- object type of the procedure objectname
- name of the procedure objectmoduleName
- package name of the database procedureprocedureName
- name of the database procedureparams
- parameters of the procedureoutputParamTypes
- output parameter types of the procedure
ApplicationException
Function executeFunction(java.lang.String objectType, java.lang.String name, java.lang.String moduleName, java.lang.String functionName, java.util.ArrayList params, java.lang.String outputParamType) throws ApplicationException
objectType
- object type of the function objectname
- of the function objectmoduleName
- package name of the database functionfunctionName
- name of the database functionparams
- parameters of the functionoutputParamType
- output parameter type of the function
ApplicationException
|
JDBaccess API 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |