|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectJDBCAccessCustom
public abstract class JDBCAccessCustom
This class is a base class for customzied JDBCAccess Special implentations should subclass
Constructor Summary | |
---|---|
JDBCAccessCustom(Config config)
|
Method Summary | |
---|---|
protected void |
closeCallableStmt(CallableStatement stmt)
closeCallableStatement |
protected void |
closeConnection(Connection con)
closeConnection |
protected void |
closePreparedStmt(PreparedStatement stmt)
closePreparedStatement |
protected void |
closeResultSet(ResultSet rs)
closeResultSet |
protected void |
closeStmt(Statement stmt)
closeStmt |
Config |
getConfig()
|
protected Connection |
getConnection()
getConnection |
protected CoordinateReferenceSystem |
getCRS()
getCRS |
ImageLevelInfo |
getLevelInfo(int level)
|
List<ImageLevelInfo> |
getLevelInfos()
|
int |
getNumOverviews()
|
abstract void |
initialize()
initialze the the JDBCAccess object, has to be called exactly once |
abstract void |
startTileDecoders(Rectangle pixelDimension,
GeneralEnvelope requestEnvelope,
ImageLevelInfo info,
LinkedBlockingQueue<TileQueueElement> tileQueue,
GridCoverageFactory coverageFactory)
Method for starting the main action, getting the neccessairy tiles and decoding them in a multithreaded manner |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JDBCAccessCustom(Config config) throws IOException
IOException
Method Detail |
---|
public ImageLevelInfo getLevelInfo(int level)
getLevelInfo
in interface JDBCAccess
level
- the level (0 is original, 1 is first pyramid,...)
public int getNumOverviews()
getNumOverviews
in interface JDBCAccess
public abstract void initialize() throws SQLException, IOException
JDBCAccess
initialize
in interface JDBCAccess
SQLException
IOException
public abstract void startTileDecoders(Rectangle pixelDimension, GeneralEnvelope requestEnvelope, ImageLevelInfo info, LinkedBlockingQueue<TileQueueElement> tileQueue, GridCoverageFactory coverageFactory) throws IOException
JDBCAccess
startTileDecoders
in interface JDBCAccess
pixelDimension
- the needed pixel dimensionrequestEnvelope
- the needed envelope in world coordinatesinfo
- the corresponding ImageLevelInfo objecttileQueue
- a queue where to put the thread resultscoverageFactory
- GridCoverageFactory
IOException
protected Connection getConnection()
protected void closeConnection(Connection con)
conn
- Connection Object passed to be closedprotected void closePreparedStmt(PreparedStatement stmt)
stmt
- PreparedStatement Object passed to be closedprotected void closeCallableStmt(CallableStatement stmt)
stmt
- CallableStatement Object passed to be closedprotected void closeStmt(Statement stmt)
stmt
- Statement Object passed to be closedprotected void closeResultSet(ResultSet rs)
rs
- ResultSet Object passed to be closedprotected CoordinateReferenceSystem getCRS()
public Config getConfig()
public List<ImageLevelInfo> getLevelInfos()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |