public class DatabaseConnection
extends java.lang.Object
Constructor and Description |
---|
DatabaseConnection(java.util.Map<java.lang.String,java.lang.String> properties)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
arrivedEvent(TagReadEvent tag,
java.lang.String readzone)
Insert the Arrived event into the database.
|
void |
departedEvent(TagReadEvent tag,
java.lang.String readzone,
java.lang.Long approximateDepartedTime)
Update the departed time to the pre-existing row.
|
void |
init()
Opens the connection with the database.
|
public DatabaseConnection(java.util.Map<java.lang.String,java.lang.String> properties)
public void init()
public void arrivedEvent(TagReadEvent tag, java.lang.String readzone)
tag
- readzone
- public void departedEvent(TagReadEvent tag, java.lang.String readzone, java.lang.Long approximateDepartedTime)
tag
- readzone
- approximateDepartedTime
-