| Modifier and Type | Field and Description |
|---|---|
protected boolean |
refreshed |
| Constructor and Description |
|---|
DatabaseImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanMushroom(double fps)
Clean all of the mushroom tables
|
void |
cleanPlatePieces(double fps) |
void |
cleanReefer(double fps)
Truncate the reefer table
|
void |
cleanSpew(double fps)
Delete entries from the spew table
|
void |
cleanSpew2(double fps) |
void |
cleanSpewGlobals(double fps) |
java.util.List<ExplodePiece> |
getExplodePieces(double fps,
int f) |
java.util.List<ExplodeTopPiece> |
getExplodeTops(double fps,
int f) |
java.util.List<Magnet> |
getMagnets(double fps,
int f) |
java.util.List<MushPiece> |
getMushPieces(double fps,
int f) |
java.util.List<MushTopPiece> |
getMushTops(double fps,
int f) |
java.util.List<PlatePiece> |
getPlatePieces(double fps,
int f) |
int |
getReeferCount() |
java.util.List<Spew2> |
getSpew2s(double fps,
int f) |
int |
getSpewCount() |
java.util.List<SpewGlobal> |
getSpewGlobals(double fps) |
java.util.List<Spew> |
getSpews(double fps,
int f) |
void |
putExplodePiece(double fps,
int mindex,
int f,
ExplodePiece piece) |
void |
putExplodeTop(double fps,
int mindex,
int f,
ExplodeTopPiece piece) |
void |
putMagnet(double fps,
int mindex,
int f,
Magnet m)
Write this magnet to the database.
|
void |
putMushPiece(double fps,
int mindex,
int f,
MushPiece piece)
Write this MushroomCloud piece to the database.
|
void |
putMushTop(double fps,
int mindex,
int f,
MushTopPiece piece) |
void |
putPlatePiece(double fps,
int mindex,
int f,
PlatePiece piece) |
void |
putSpew(double fps,
int i,
int f,
Spew s)
Write this spew to the database
|
void |
putSpew2(double fps,
int i,
int f,
Spew2 s) |
void |
putSpewGlobal(double fps,
SpewGlobal sg) |
void |
setInit(java.lang.String configFile)
Configure and initialize the database.
|
void |
shutdown() |
public void setInit(java.lang.String configFile)
configFile - "TteoacService-test-hibernate.cfg.xml" or null to use the built-in configpublic void shutdown()
public void cleanSpew(double fps)
Databasepublic void cleanSpew2(double fps)
cleanSpew2 in interface Databasepublic void cleanSpewGlobals(double fps)
cleanSpewGlobals in interface Databasepublic void cleanReefer(double fps)
DatabasecleanReefer in interface Databasepublic void cleanMushroom(double fps)
DatabasecleanMushroom in interface Databasefps - The fps to deletepublic void cleanPlatePieces(double fps)
cleanPlatePieces in interface Databasepublic void putSpew(double fps,
int i,
int f,
Spew s)
Databasepublic void putSpew2(double fps,
int i,
int f,
Spew2 s)
public int getSpewCount()
getSpewCount in interface Databasepublic java.util.List<Spew> getSpews(double fps, int f)
public java.util.List<Spew2> getSpew2s(double fps, int f)
public int getReeferCount()
getReeferCount in interface Databasepublic void putSpewGlobal(double fps,
SpewGlobal sg)
putSpewGlobal in interface Databasepublic java.util.List<SpewGlobal> getSpewGlobals(double fps)
getSpewGlobals in interface Databasepublic void putMagnet(double fps,
int mindex,
int f,
Magnet m)
Databasepublic java.util.List<Magnet> getMagnets(double fps, int f)
getMagnets in interface Databasepublic void putMushPiece(double fps,
int mindex,
int f,
MushPiece piece)
DatabaseputMushPiece in interface Databasefps - The fps to use as an indexmindex - The index into the mushroom piece array.f - The frame numberpiece - The piece to writepublic java.util.List<MushPiece> getMushPieces(double fps, int f)
getMushPieces in interface Databasepublic void putMushTop(double fps,
int mindex,
int f,
MushTopPiece piece)
putMushTop in interface Databasepublic java.util.List<MushTopPiece> getMushTops(double fps, int f)
getMushTops in interface Databasepublic void putPlatePiece(double fps,
int mindex,
int f,
PlatePiece piece)
putPlatePiece in interface Databasepublic java.util.List<PlatePiece> getPlatePieces(double fps, int f)
getPlatePieces in interface Databasepublic void putExplodePiece(double fps,
int mindex,
int f,
ExplodePiece piece)
putExplodePiece in interface Databasepublic void putExplodeTop(double fps,
int mindex,
int f,
ExplodeTopPiece piece)
putExplodeTop in interface Databasepublic java.util.List<ExplodePiece> getExplodePieces(double fps, int f)
getExplodePieces in interface Databasepublic java.util.List<ExplodeTopPiece> getExplodeTops(double fps, int f)
getExplodeTops in interface Database