cluster5.server.datastorage.dao
Class TerminalDao

java.lang.Object
  extended by cluster5.server.datastorage.dao.TerminalDao

public class TerminalDao
extends java.lang.Object


Constructor Summary
TerminalDao()
           
 
Method Summary
 Terminal getByAddress(java.lang.String address)
           
 Terminal getById(java.lang.Long terminalId)
           
 Terminal save(Terminal terminal)
          Saves/updates record in the database.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TerminalDao

public TerminalDao()
Method Detail

getById

public Terminal getById(java.lang.Long terminalId)
Parameters:
terminalId -
Returns:
instance of Terminal by given ID or null if there is no such one

getByAddress

public Terminal getByAddress(java.lang.String address)
Parameters:
address - IP address of a terminal
Returns:
instance of terminal or null if there is no such one

save

public Terminal save(Terminal terminal)
Saves/updates record in the database.

Parameters:
terminal -
Returns: