|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjdbcadmin.core.tools.AbstractCnxUser
jdbcadmin.core.tools.DataManager
Class for managing data.
| Field Summary |
| Fields inherited from class jdbcadmin.core.tools.AbstractCnxUser |
cnx, conInfos |
| Constructor Summary | |
DataManager(ConnectionInfo aCnxInfos,
IAccessAuthorization aAuthorizations)
Cosntructor which set up connection informations and access authorizations |
|
| Method Summary | |
void |
delete(Line aLine)
Deletes the specified line from the database |
void |
insert(Line aLine)
Insert the specified line in the database. |
java.util.List |
select(Table aTable,
int aIdxDebut,
int aNbLines)
Retrieves some lines from the specified table. |
void |
update(Line aLine)
Update the database with the specified line |
| Methods inherited from class jdbcadmin.core.tools.AbstractCnxUser |
connect, disconnect |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DataManager(ConnectionInfo aCnxInfos,
IAccessAuthorization aAuthorizations)
aCnxInfos - connection informationsaAuthorizations - access authorizations| Method Detail |
public java.util.List select(Table aTable,
int aIdxDebut,
int aNbLines)
throws TechnicalException,
DataNotFoundException
aTable - The table to selectaIdxDebut - Index for the first lineaNbLines - Number of lines to retrieve
#jdbcadmin.core.data.Ligne
TechnicalException - Technical error
DataNotFoundException - Data not found
public void insert(Line aLine)
throws TechnicalException,
ConvertionException
aLine - the line to insert
TechnicalException - Technical error.
ConvertionException - Convertion error (the exception specify the bad column)
public void update(Line aLine)
throws TechnicalException,
FunctionalException,
DangerousOperationException,
ConvertionException
aLine - the line to update
TechnicalException - Technical error
DangerousOperationException - Dangerous operation (no primary key)
FunctionalException - Functionnal error (lines updated <> 1)
ConvertionException - Convertion error (the exception specify the bad column)
public void delete(Line aLine)
throws TechnicalException,
FunctionalException,
DangerousOperationException,
ConvertionException
aLine - the line to delete
TechnicalException - Technical error
DangerousOperationException - Dangerous operation (no primary key)
FunctionalException - Functionnal error (lines updated <> 1)
ConvertionException - Convertion error (the exception specify the bad column)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||