deegree 2.3 (2010/04/09 10:10 build-4-official)

org.deegree.ogcwebservices.wmps
Class WMPSDatabase

java.lang.Object
  extended by org.deegree.ogcwebservices.wmps.WMPSDatabase

public class WMPSDatabase
extends Object

Provides database functionalities for the wmps.

Since:
2.0
Version:
2.0, $Revision: 18195 $, $Date: 2009-06-18 17:55:39 +0200 (Do, 18. Jun 2009) $
Author:
Anup Deshmukh, last edited by: $Author: mschneider $

Constructor Summary
WMPSDatabase(CacheDatabase cacheDatabase)
          Creates a new WMPSDatabase instance.
 
Method Summary
 Connection acquireConnection()
          Creates a valid db connection with properties read from the configuration file.
 void insertData(Connection connection, PrintMap request)
          Inserts data into the table.
protected  void releaseConnection(Connection connection)
          Releases the current database connection.
 PrintMap selectPrintMapRequest(Connection connection)
          Select the PrintMap request that has been in the databank for the longest time. i.e the first in queue to be processed.
 void updateDB(Connection connection, String id, Timestamp timeStamp, String state)
          Updating the processed field in the db to signify that the PrintMap request has been successfully carried out.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WMPSDatabase

public WMPSDatabase(CacheDatabase cacheDatabase)
             throws Exception
Creates a new WMPSDatabase instance.

Parameters:
cacheDatabase -
Throws:
Exception
Method Detail

insertData

public void insertData(Connection connection,
                       PrintMap request)
                throws PrintMapServiceException,
                       IOException
Inserts data into the table. Each incomming request is stored in the db.

Parameters:
connection -
request -
Throws:
IOException
PrintMapServiceException
IOException

acquireConnection

public Connection acquireConnection()
                             throws Exception
Creates a valid db connection with properties read from the configuration file.

Returns:
Connection
Throws:
Exception

releaseConnection

protected void releaseConnection(Connection connection)
                          throws SQLException
Releases the current database connection.

Parameters:
connection -
Throws:
SQLException

selectPrintMapRequest

public PrintMap selectPrintMapRequest(Connection connection)
                               throws PrintMapServiceException
Select the PrintMap request that has been in the databank for the longest time. i.e the first in queue to be processed.

Parameters:
connection -
Returns:
PrintMap
Throws:
PrintMapServiceException

updateDB

public void updateDB(Connection connection,
                     String id,
                     Timestamp timeStamp,
                     String state)
              throws SQLException
Updating the processed field in the db to signify that the PrintMap request has been successfully carried out.

Parameters:
connection -
id -
timeStamp -
state -
Throws:
SQLException

deegree 2.3 (2010/04/09 10:10 build-4-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org