|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.n52.wps.server.database.DatabaseFactory
public class DatabaseFactory
| Field Summary | |
|---|---|
static java.lang.String |
PROPERTY_NAME_DATABASE_CLASS_NAME
|
| Constructor Summary | |
|---|---|
DatabaseFactory()
|
|
| Method Summary | |
|---|---|
boolean |
deleteStoredResponse(java.lang.String id)
|
protected void |
finalize()
|
java.lang.String |
generateRetrieveResultURL(java.lang.String id)
The URL referencing the location from which the ExecuteResponse can be retrieved. |
static IDatabase |
getDatabase()
|
java.lang.String |
getDatabaseName()
Returns some name for the database, like DERBY, HSQL, ... |
java.lang.String |
getMimeTypeForStoreResponse(java.lang.String id)
|
java.lang.String |
insertResponse(Response response)
Insert a new Response into the Database. |
java.io.InputStream |
lookupResponse(java.lang.String request_id)
Retrieve the Response on a previous Request, based on an unique identifier, which was already given to the client for reference. |
java.io.File |
lookupResponseAsFile(java.lang.String id)
|
void |
shutdown()
Shutdown the database in a clean, safe way. |
java.lang.String |
storeComplexValue(java.lang.String id,
LargeBufferStream stream,
java.lang.String type,
java.lang.String mimeType)
|
java.lang.String |
storeResponse(Response response)
Store the Response of a deferred Request. |
void |
updateResponse(Response response)
Update the Response in the Database, based on the Identifier. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String PROPERTY_NAME_DATABASE_CLASS_NAME
| Constructor Detail |
|---|
public DatabaseFactory()
| Method Detail |
|---|
public static IDatabase getDatabase()
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwablepublic void shutdown()
shutdown in interface IDatabasepublic java.lang.String insertResponse(Response response)
insertResponse in interface IDatabaseresponse - The Response to insert.storeResponse(Response)public void updateResponse(Response response)
updateResponse in interface IDatabaseresponse - The Response to updatestoreResponse(Response)public java.lang.String storeResponse(Response response)
storeResponse in interface IDatabaseresponse - The Response to store.public java.io.InputStream lookupResponse(java.lang.String request_id)
lookupResponse in interface IDatabaserequest_id - The identifier of the Request
public java.lang.String storeComplexValue(java.lang.String id,
LargeBufferStream stream,
java.lang.String type,
java.lang.String mimeType)
storeComplexValue in interface IDatabasepublic java.lang.String generateRetrieveResultURL(java.lang.String id)
generateRetrieveResultURL in interface IDatabasepublic java.lang.String getDatabaseName()
getDatabaseName in interface IDatabasepublic java.lang.String getMimeTypeForStoreResponse(java.lang.String id)
getMimeTypeForStoreResponse in interface IDatabasepublic boolean deleteStoredResponse(java.lang.String id)
deleteStoredResponse in interface IDatabasepublic java.io.File lookupResponseAsFile(java.lang.String id)
lookupResponseAsFile in interface IDatabase
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||