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)
Database
public void cleanSpew2(double fps)
cleanSpew2
in interface Database
public void cleanSpewGlobals(double fps)
cleanSpewGlobals
in interface Database
public void cleanReefer(double fps)
Database
cleanReefer
in interface Database
public void cleanMushroom(double fps)
Database
cleanMushroom
in interface Database
fps
- The fps to deletepublic void cleanPlatePieces(double fps)
cleanPlatePieces
in interface Database
public void putSpew(double fps, int i, int f, Spew s)
Database
public void putSpew2(double fps, int i, int f, Spew2 s)
public int getSpewCount()
getSpewCount
in interface Database
public 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 Database
public void putSpewGlobal(double fps, SpewGlobal sg)
putSpewGlobal
in interface Database
public java.util.List<SpewGlobal> getSpewGlobals(double fps)
getSpewGlobals
in interface Database
public void putMagnet(double fps, int mindex, int f, Magnet m)
Database
public java.util.List<Magnet> getMagnets(double fps, int f)
getMagnets
in interface Database
public void putMushPiece(double fps, int mindex, int f, MushPiece piece)
Database
putMushPiece
in interface Database
fps
- 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 Database
public void putMushTop(double fps, int mindex, int f, MushTopPiece piece)
putMushTop
in interface Database
public java.util.List<MushTopPiece> getMushTops(double fps, int f)
getMushTops
in interface Database
public void putPlatePiece(double fps, int mindex, int f, PlatePiece piece)
putPlatePiece
in interface Database
public java.util.List<PlatePiece> getPlatePieces(double fps, int f)
getPlatePieces
in interface Database
public void putExplodePiece(double fps, int mindex, int f, ExplodePiece piece)
putExplodePiece
in interface Database
public void putExplodeTop(double fps, int mindex, int f, ExplodeTopPiece piece)
putExplodeTop
in interface Database
public java.util.List<ExplodePiece> getExplodePieces(double fps, int f)
getExplodePieces
in interface Database
public java.util.List<ExplodeTopPiece> getExplodeTops(double fps, int f)
getExplodeTops
in interface Database