|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.activemath.webapp.tools.data.storage.JDBCTutorPresetStorage
public class JDBCTutorPresetStorage
| Field Summary | |
|---|---|
protected static Logger |
log
|
| Constructor Summary | |
|---|---|
JDBCTutorPresetStorage()
standard constructor |
|
| Method Summary | |
|---|---|
int |
countPresets()
|
boolean |
deletePresetById(int TPID)
deletes preset from the database * |
Connection |
getConnection()
|
static Timestamp |
getCurrentJavaSqlTimestamp()
|
static JDBCTutorPresetStorage |
getInstance()
|
boolean |
init()
Initializes the database. |
boolean |
resetDB()
resets the database to its initial state |
TutorPreset |
retrieveTutorPresetById(int TPID)
returns the indicated preset from the database. |
Iterator<TutorPreset> |
selectAllTutorPresets(Boolean limit)
selects all presets from the database tutorPresets |
int |
storePreset(TutorPreset preset)
stores the given preset in the database |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static Logger log
| Constructor Detail |
|---|
public JDBCTutorPresetStorage()
| Method Detail |
|---|
public static JDBCTutorPresetStorage getInstance()
public boolean init()
public int storePreset(TutorPreset preset)
preset - preset that is stored in the database
public static Timestamp getCurrentJavaSqlTimestamp()
public TutorPreset retrieveTutorPresetById(int TPID)
mbaseId - the mbaseId of the item the gap is for
public Iterator<TutorPreset> selectAllTutorPresets(Boolean limit)
tutorPresets
limit - to improve performance. Can be null. If set and true, only the
first 100 results are output by default
public boolean deletePresetById(int TPID)
TPID - of the preset to delete
public boolean resetDB()
public int countPresets()
public Connection getConnection()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||