|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--javazoom.upload.DBStore
|
+--javazoom.upload.DefaultDBStore
This class implements a generic DBStore.
| Constructor Summary | |
DefaultDBStore()
|
|
| Method Summary | |
void |
connect(java.lang.Object p1,
java.lang.Object p2,
java.lang.Object p3)
Connects to database store. |
int |
countFiles()
Counts database entries. |
java.sql.Connection |
getConnection()
Returns JDBC Connection. |
int |
getLastId()
Return last id used for UPLOADID column. |
void |
reset()
Deletes entries in database store. |
void |
store(UploadFile file,
boolean overwrite)
Depending on overwrite state, inserts or updates file in store. |
| Methods inherited from class javazoom.upload.DBStore |
setConnection |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DefaultDBStore()
| Method Detail |
public java.sql.Connection getConnection()
DBStore
getConnection in class DBStorepublic int getLastId()
public void connect(java.lang.Object p1,
java.lang.Object p2,
java.lang.Object p3)
throws java.lang.Exception
connect in class DBStorep1 - Driver string or Jdbc connectionp2 - URL Stringp3 - Credentials properties
java.lang.Exception
public int countFiles()
throws java.lang.Exception
countFiles in class DBStorejava.lang.Exception
public void store(UploadFile file,
boolean overwrite)
throws java.lang.Exception
store in class DBStorefile - input fileoverwrite - enables/disables overwrite
java.lang.Exception
public void reset()
throws java.lang.Exception
reset in class DBStorejava.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||