|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--javazoom.upload.DBStore
This abstract class defines DBStore developers have to extend to implement their own database store for UploadBean
| Constructor Summary | |
DBStore()
|
|
| Method Summary | |
abstract void |
connect(java.lang.Object p1,
java.lang.Object p2,
java.lang.Object p3)
Connects to database store. |
abstract int |
countFiles()
Counts database entries. |
java.sql.Connection |
getConnection()
Returns JDBC Connection. |
abstract void |
reset()
Deletes entries in database store. |
void |
setConnection(java.sql.Connection c)
Sets JDBC connection |
abstract void |
store(UploadFile file,
boolean overwrite)
Inserts or updates file in store. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DBStore()
| Method Detail |
public java.sql.Connection getConnection()
public void setConnection(java.sql.Connection c)
c - JDBC connection
public abstract void connect(java.lang.Object p1,
java.lang.Object p2,
java.lang.Object p3)
throws java.lang.Exception
p1 - Driver String or JDBC Connectionp2 - URL Stringp3 - JDBC credentials
java.lang.Exception
public abstract int countFiles()
throws java.lang.Exception
java.lang.Exception
public abstract void store(UploadFile file,
boolean overwrite)
throws java.lang.Exception
file - input fileoverwrite - enables/disables overwrite
java.lang.Exception
public abstract void reset()
throws java.lang.Exception
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||