|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.uoc.pfc.lcamps.persistenciaFW.admin.session.impl.SessionFWImpl
public class SessionFWImpl
Classe que ens servirà per la gestió de les sessions
Constructor Summary | |
---|---|
SessionFWImpl()
|
Method Summary | |
---|---|
void |
closeTransaction()
Tanquem la transacció |
void |
delete(java.lang.Object obj)
Donat un determinat objecte fem un delete de la base de dades |
java.util.List<java.lang.Object> |
findListFromObj(java.lang.Object obj)
Donat un determinat objecte obtenim el llistat de la base de dades |
java.util.List<java.lang.Object> |
findListFromQuery(java.lang.String query,
java.lang.Object objReturn)
Donada una determinada query obtenim el llistat de la base de dades |
TransactionFW |
getTransactionFW()
Obtenim la Transaction |
int |
insert(java.lang.Object obj)
Donat un determinat objecte fem insert a la base de dades |
TransactionFW |
newTransaction()
Creem una nova transacció amb autoCommit a true |
TransactionFW |
newTransaction(boolean autoCommit)
Creem una nova transacció passant l'autoCommit |
void |
setTransactionFW(TransactionFW transactionFW)
Realitza el set de l'objecte TransactionFW |
void |
update(java.lang.Object obj)
Donat un determinat objecte fem update a la base de dades |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SessionFWImpl()
Method Detail |
---|
public TransactionFW newTransaction() throws DBException
SessionFW
newTransaction
in interface SessionFW
DBException
public TransactionFW newTransaction(boolean autoCommit) throws DBException
SessionFW
newTransaction
in interface SessionFW
DBException
public void closeTransaction() throws DBException
SessionFW
closeTransaction
in interface SessionFW
DBException
public int insert(java.lang.Object obj) throws DBException
SessionFW
insert
in interface SessionFW
DBException
public void update(java.lang.Object obj) throws DBException
SessionFW
update
in interface SessionFW
DBException
public void delete(java.lang.Object obj) throws DBException
SessionFW
delete
in interface SessionFW
DBException
public java.util.List<java.lang.Object> findListFromObj(java.lang.Object obj) throws DBException
SessionFW
findListFromObj
in interface SessionFW
DBException
public java.util.List<java.lang.Object> findListFromQuery(java.lang.String query, java.lang.Object objReturn) throws DBException
SessionFW
findListFromQuery
in interface SessionFW
DBException
public void setTransactionFW(TransactionFW transactionFW)
SessionFW
setTransactionFW
in interface SessionFW
public TransactionFW getTransactionFW()
SessionFW
getTransactionFW
in interface SessionFW
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |