|
JDBaccess API 1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jdbaccess.dao.DataAccessObjectImpl
public abstract class DataAccessObjectImpl
Abstract super class of all data access object implementation classes. If constructor is used with transaction all methods (also finders) use this transaction. If constructor is used empty (without transaction) only finders could be used because selects do not need necessarily a transaction (read transactions).
| Constructor Summary | |
|---|---|
DataAccessObjectImpl()
Construction of the data access object implementation. |
|
DataAccessObjectImpl(Transaction transaction)
Construction of the data access object implementation with this transaction. |
|
| 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 |
dropFunction(java.lang.String functionName)
|
void |
dropProcedure(java.lang.String procedureName)
|
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) |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DataAccessObjectImpl()
public DataAccessObjectImpl(Transaction transaction)
transaction - transaction| Method Detail |
|---|
public void createTable(java.lang.String sqlCreateTableString)
throws ApplicationException
DataAccessObject
createTable in interface DataAccessObjectsqlCreateTableString - sql string for creating the table
ApplicationExceptionDataAccessObject.createTable(String)
public void dropTable(java.lang.String tableName)
throws ApplicationException
DataAccessObject
dropTable in interface DataAccessObjecttableName - table name
ApplicationExceptionDataAccessObject.dropTable(String)
public void createSequence(java.lang.String seqName)
throws ApplicationException
DataAccessObject
createSequence in interface DataAccessObjectseqName - sequence name
ApplicationExceptionDataAccessObject.createSequence(String)
public void dropSequence(java.lang.String seqName)
throws ApplicationException
DataAccessObject
dropSequence in interface DataAccessObjectseqName - sequence name
ApplicationExceptionDataAccessObject.dropSequence(String)
public void dropProcedure(java.lang.String procedureName)
throws ApplicationException
ApplicationExceptionDataAccessObject#dropProcedure(String)
public void dropFunction(java.lang.String functionName)
throws ApplicationException
ApplicationExceptionDataAccessObject#dropFunction(String)
public java.lang.Long getSequenceNextValue(java.lang.String seqName)
throws ApplicationException
DataAccessObject
getSequenceNextValue in interface DataAccessObjectseqName - sequence name
ApplicationExceptionDataAccessObject.getSequenceNextValue(String)
public java.util.ArrayList getSequenceNextValues(java.lang.String seqName,
int count)
throws ApplicationException
DataAccessObject
getSequenceNextValues in interface DataAccessObjectseqName - sequence namecount - number of sequences to fetch from sequence
ApplicationExceptionDataAccessObject.getSequenceNextValues(String, int)
public TransferObject insert(TransferObject to)
throws ApplicationException
DataAccessObject
insert in interface DataAccessObjectto - transfer object
ApplicationExceptionDataAccessObject.insert(TransferObject)
public java.util.ArrayList insert(java.util.ArrayList tos)
throws ApplicationException
DataAccessObject
insert in interface DataAccessObjecttos - transfer objects
ApplicationExceptionDataAccessObject.insert(ArrayList)
public java.lang.Long update(TransferObject to)
throws ApplicationException
DataAccessObject
update in interface DataAccessObjectto - transfer object
ApplicationExceptionDataAccessObject.update(TransferObject)
public java.lang.Long delete(TransferObject to)
throws ApplicationException
DataAccessObject
delete in interface DataAccessObjectto - transfer object
ApplicationExceptionDataAccessObject.delete(TransferObject)
public java.lang.Long deleteAll(java.lang.String entity)
throws ApplicationException
DataAccessObject
deleteAll in interface DataAccessObjectentity - table name
ApplicationExceptionDataAccessObject.deleteAll(String)
public Result find(java.lang.String objectType,
java.lang.String selectName)
throws ApplicationException
DataAccessObject
find in interface DataAccessObjectobjectType - object type of the select objectselectName - name of the select object
ApplicationExceptionDataAccessObject.find(String, String)
public 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
DataAccessObject
find in interface DataAccessObjectobjectType - 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
ApplicationExceptionDataAccessObject.find(String, String, String, String, ArrayList, ArrayList, Class, ArrayList, boolean)
public 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
DataAccessObject
executeProcedure in interface DataAccessObjectobjectType - 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
ApplicationExceptionDataAccessObject.executeProcedure(String, String, String, String, ArrayList, ArrayList)
public 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
DataAccessObject
executeFunction in interface DataAccessObjectobjectType - 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
ApplicationExceptionDataAccessObject.executeFunction(String, String, String, String, ArrayList, String)
|
JDBaccess API 1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||