|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cluster5.server.datastorage.dao.TerminalDao
public class TerminalDao
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 |
---|
public TerminalDao()
Method Detail |
---|
public Terminal getById(java.lang.Long terminalId)
terminalId
-
Terminal
by given ID or null if there is no such onepublic Terminal getByAddress(java.lang.String address)
address
- IP address of a terminal
public Terminal save(Terminal terminal)
terminal
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |