com.mymed.controller.core.manager.reputation.db.table.facade
Class UserApplicationConsumerFacade

java.lang.Object
  extended by com.mymed.controller.core.manager.reputation.db.table.facade.UserApplicationConsumerFacade

public class UserApplicationConsumerFacade
extends java.lang.Object

Author:
piccolo

Constructor Summary
UserApplicationConsumerFacade(CassandraWrapper w)
           
 
Method Summary
 java.util.Collection<UserApplicationConsumer> getAllRecords()
          it returns the collection of all entries of the table UserApplicationConsumer.
 UserApplicationConsumer getRecordById(java.lang.String idUser, java.lang.String idApp)
          it returns the entry of the table UserServiceConsumer having the specified id.
 void persist(UserApplicationConsumer 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
 

Constructor Detail

UserApplicationConsumerFacade

public UserApplicationConsumerFacade(CassandraWrapper w)
Method Detail

getAllRecords

public java.util.Collection<UserApplicationConsumer> getAllRecords()
                                                            throws InternalBackEndException
it returns the collection of all entries of the table UserApplicationConsumer. In an SQL-like sintax, it returns the result of the query SELECT * FROM UserApplicationConsumer

Throws:
InternalBackEndException

persist

public void persist(UserApplicationConsumer 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. If it inserts a new item, then it updates the corresponding primary key

Parameters:
u - the object to be persisted

getRecordById

public UserApplicationConsumer getRecordById(java.lang.String idUser,
                                             java.lang.String idApp)
                                      throws InternalBackEndException
it returns the entry of the table UserServiceConsumer having the specified id. In an SQL-like syntax, it returns the result of the query SELECT * FROM UserServiceConsumer WHERE id = $id;

Parameters:
id -
Returns:
Throws:
InternalBackEndException