|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.ogcwebservices.wmps.WMPSDatabase
public class WMPSDatabase
Provides database functionalities for the wmps.
| Constructor Summary | |
|---|---|
WMPSDatabase(CacheDatabase cacheDatabase)
Creates a new WMPSDatabase instance. |
|
| Method Summary | |
|---|---|
java.sql.Connection |
acquireConnection()
Creates a valid db connection with properties read from the configuration file. |
void |
insertData(java.sql.Connection connection,
PrintMap request)
Inserts data into the table. |
protected void |
releaseConnection(java.sql.Connection connection)
Releases the current database connection. |
PrintMap |
selectPrintMapRequest(java.sql.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(java.sql.Connection connection,
java.lang.String id,
java.sql.Timestamp timeStamp,
java.lang.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 |
|---|
public WMPSDatabase(CacheDatabase cacheDatabase)
throws java.lang.Exception
cacheDatabase -
java.lang.Exception| Method Detail |
|---|
public void insertData(java.sql.Connection connection,
PrintMap request)
throws PrintMapServiceException,
java.io.IOException
connection - request -
java.io.IOException
PrintMapServiceException
java.io.IOException
public java.sql.Connection acquireConnection()
throws java.lang.Exception
java.lang.Exception
protected void releaseConnection(java.sql.Connection connection)
throws java.sql.SQLException
connection -
java.sql.SQLException
public PrintMap selectPrintMapRequest(java.sql.Connection connection)
throws PrintMapServiceException
connection -
PrintMapServiceException
public void updateDB(java.sql.Connection connection,
java.lang.String id,
java.sql.Timestamp timeStamp,
java.lang.String state)
throws java.sql.SQLException
connection - id - timeStamp - state -
java.sql.SQLException
|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org