public class CommandFunctions
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private static javax.persistence.EntityManager |
em |
private static javax.persistence.EntityManagerFactory |
emFactory |
| Constructor and Description |
|---|
CommandFunctions() |
| Modifier and Type | Method and Description |
|---|---|
static TransactionResult |
sendCommands(Command c,
Device d)
Send a command to the target device.
|
static Command |
storeCommand(Command c)
Store a new command in the database
|
private static javax.persistence.EntityManagerFactory emFactory
private static javax.persistence.EntityManager em
public static Command storeCommand(Command c)
c - a Command to be storedpublic static TransactionResult sendCommands(Command c, Device d)
c - the Command to sendd - a Device to send the command to.