org.n52.wps.server.database
Class HSQLDatabase

java.lang.Object
  extended by org.n52.wps.server.database.AbstractDatabase
      extended by org.n52.wps.server.database.HSQLDatabase
All Implemented Interfaces:
IDatabase

public class HSQLDatabase
extends AbstractDatabase


Field Summary
 
Fields inherited from class org.n52.wps.server.database.AbstractDatabase
creationString, INSERT_COLUMN_MIME_TYPE, INSERT_COLUMN_REQUEST_DATE, INSERT_COLUMN_REQUEST_ID, INSERT_COLUMN_RESPONSE, INSERT_COLUMN_RESPONSE_TYPE, insertionString, insertSQL, PROPERTY_NAME_DATABASE, PROPERTY_NAME_DATABASE_NAME, PROPERTY_NAME_DATABASE_PATH, SELECT_COLUMN_RESPONSE, selectionString, selectSQL, UPDATE_COLUMN_REQUEST_ID, UPDATE_COLUMN_RESPONSE, updateSQL, updateString
 
Method Summary
 java.sql.Connection getConnection()
           
 java.lang.String getConnectionURL()
           
static HSQLDatabase getInstance()
           
static java.lang.String getProtocol()
          Reads the protocol from the properties file.
protected  java.lang.String insertResultEntity(LargeBufferStream baos, java.lang.String id, java.lang.String type, java.lang.String mimeType)
          Inserts any result, which has to be stored in the DB.
 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.
 void shutdown()
          Shutdown the database in a clean, safe way.
 
Methods inherited from class org.n52.wps.server.database.AbstractDatabase
deleteStoredResponse, generateRetrieveResultURL, getDatabaseName, getDatabasePath, getMimeTypeForStoreResponse, insertResponse, lookupResponseAsFile, storeComplexValue, storeResponse, updateResponse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static HSQLDatabase getInstance()

lookupResponse

public java.io.InputStream lookupResponse(java.lang.String request_id)
Description copied from class: AbstractDatabase
Retrieve the Response on a previous Request, based on an unique identifier, which was already given to the client for reference.

Specified by:
lookupResponse in interface IDatabase
Overrides:
lookupResponse in class AbstractDatabase
Parameters:
request_id - The identifier of the Request
Returns:
null, if an SQLException occurred, else an InputStream with the Response

insertResultEntity

protected java.lang.String insertResultEntity(LargeBufferStream baos,
                                              java.lang.String id,
                                              java.lang.String type,
                                              java.lang.String mimeType)
Description copied from class: AbstractDatabase
Inserts any result, which has to be stored in the DB.

Overrides:
insertResultEntity in class AbstractDatabase

getConnection

public java.sql.Connection getConnection()
Specified by:
getConnection in class AbstractDatabase

getConnectionURL

public java.lang.String getConnectionURL()
Specified by:
getConnectionURL in class AbstractDatabase

shutdown

public void shutdown()
Shutdown the database in a clean, safe way.

Specified by:
shutdown in interface IDatabase
Overrides:
shutdown in class AbstractDatabase

getProtocol

public static java.lang.String getProtocol()
Reads the protocol from the properties file.

Returns:
The protocol as a string. The protocol can be file, mem, res, hsql, http, hsqls or https. The default protocol is file.


Copyright © 2007-2011 52north.org. All Rights Reserved.