com.mymed.controller.core.manager.reputation.db.table.facade
Class UserApplicationProducerFacade
java.lang.Object
com.mymed.controller.core.manager.reputation.db.table.facade.UserApplicationProducerFacade
public class UserApplicationProducerFacade
- extends java.lang.Object
- Author:
- piccolo
Method Summary |
java.util.Collection<UserApplicationProducer> |
getAllRecords()
it returns the collection of all entries of the table
UserServiceProvider. |
UserApplicationProducer |
getRecordById(java.lang.String idUser,
java.lang.String idApp)
it returns the entry of the table UserServiceProvider
having the specified id. |
void |
persist(UserApplicationProducer u)
this methods persists the object given in input in the database
(he could do an INSERT statement or an UPDATE statement depending on
the fact that the object given in input has a new id or not). |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UserApplicationProducerFacade
public UserApplicationProducerFacade(CassandraWrapper w)
getAllRecords
public java.util.Collection<UserApplicationProducer> getAllRecords()
throws InternalBackEndException
- it returns the collection of all entries of the table
UserServiceProvider. In an SQL-like sintax, it returns the
result of the
SELECT * FROM UserServiceProvider;
- Returns:
-
- Throws:
InternalBackEndException
persist
public void persist(UserApplicationProducer u)
- this methods persists the object given in input in the database
(he could do an INSERT statement or an UPDATE statement depending on
the fact that the object given in input has a new id or not).
It throws an Exception if the persist operation fails.
- Parameters:
u
- the object to be persisted
- Throws:
PersistException
- if the writing operation fails
getRecordById
public UserApplicationProducer getRecordById(java.lang.String idUser,
java.lang.String idApp)
throws InternalBackEndException
- it returns the entry of the table UserServiceProvider
having the specified id. In an SQL-like syntax, it returns
the result of the
SELECT * FROM UserServiceProvider WHERE id = $id;
- Parameters:
id
-
- Returns:
-
- Throws:
InternalBackEndException