|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgistoolkit.datasources.SimpleDataSource
gistoolkit.datasources.SimpleDBDataSource
gistoolkit.datasources.postgis.PostGISDataSource
PostGIS is an extension to the PostgreSQL object-relational database system which allows GIS (Geographic Information Systems) objects to be stored in the database. PostGIS includes support for GiST-based R-Tree spatial indexes, and functions for basic analysis of GIS objects.
From the PostGIS documentation by Paul Ramsey
Field Summary |
Fields inherited from class gistoolkit.datasources.SimpleDataSource |
|
Constructor Summary | |
PostGISDataSource()
Creates new PostGISDataSource |
Method Summary | |
protected void |
closeConnection()
Close the connection to the database. |
java.sql.Connection |
connect()
Connect this datasource to the database |
void |
finalize()
Close any open connections |
java.lang.String |
getDatabaseName()
Get the database name the postmaster should access for servicing this request. |
java.lang.String |
getDatabasePassword()
Get the password that validates the username. |
int |
getDatabasePort()
Get the TCP-IP port number on which the postmaster is listening. |
java.lang.String |
getDatabaseServername()
Get thehostname/servername of the target computer. |
java.lang.String |
getDatabaseShapeColumn()
Get the name of the column containing shapes. |
int |
getDatabaseSpatialReferenceID()
Returns the spatial reference id to use for converting shapes to and from database format. |
java.lang.String |
getDatabaseURLBase()
Get the string to prepend to the url used to locate the database. |
java.lang.String |
getDatabaseUsername()
Get the username with permission to connect to the database. |
Node |
getNode()
Get the configuration information for this data source |
SQLConverter |
getSQLConverter()
Returns the converter for this Database. |
void |
load(java.util.Properties inProperties)
Initialize the data source from the properties. |
Envelope |
readEnvelope()
Returns the bounding rectangle of all the shapes in the Data Source. |
void |
setDatabaseName(java.lang.String inDatabaseName)
Set the database name the postmaster should access for servicing this request. |
void |
setDatabasePassword(java.lang.String inDatabasePassword)
Set the password that validates the username. |
void |
setDatabasePort(int inPortNumber)
Set the TCP-IP port number on which the postmaster is listening. |
void |
setDatabaseServername(java.lang.String inDatabaseServername)
Set thehostname/servername of the target computer. |
void |
setDatabaseShapeColumn(java.lang.String inShapeColumn)
Set the name of the column containing shapes. |
void |
setDatabaseSpatialReferenceID(int inDatabaseSpatialReferenceID)
Sets the SpatialReferenceID to use when converting shapes to and from database format. |
void |
setDatabaseSpatialReferenceID(java.lang.String inDatabaseSpatialReferenceID)
Sets the SpatialReferenceID to use when converting shapes to and from database format. |
void |
setDatabaseURLBase(java.lang.String inURLBase)
Set the string to prepend to the url used to locate the database. |
void |
setDatabaseUsername(java.lang.String inDatabaseUsername)
Set the username with permission to connect to the database. |
void |
setNode(Node inNode)
Set the configuration information for this data source |
Methods inherited from class gistoolkit.datasources.SimpleDBDataSource |
getFilter, getFilterSQL, setFilter |
Methods inherited from class gistoolkit.datasources.SimpleDataSource |
addDataSourceListener, clearCache, commit, delete, doCommit, doDelete, doInsert, doRollback, doUpdate, filterDataset, fireCommit, fireDelete, fireInsert, fireRead, fireRollBack, fireUpdate, getCached, getCacheDataset, getCacheEnvelope, getEnvelope, getFromProjection, getName, getStyle, getToProjection, getValidShapeTypes, insert, isCachedProjected, isUpdateable, projectBackward, projectForward, queryFromCache, readDataset, readDataset, readShapes, removeDataSourceListener, rollback, setCache, setCached, setFromProjection, setName, setProjection, setToProjection, update |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PostGISDataSource()
Method Detail |
public java.lang.String getDatabaseURLBase()
public void setDatabaseURLBase(java.lang.String inURLBase)
public java.lang.String getDatabaseServername()
public void setDatabaseServername(java.lang.String inDatabaseServername)
public int getDatabasePort()
public void setDatabasePort(int inPortNumber)
public java.lang.String getDatabaseName()
public void setDatabaseName(java.lang.String inDatabaseName)
public java.lang.String getDatabaseShapeColumn()
public void setDatabaseShapeColumn(java.lang.String inShapeColumn)
public java.lang.String getDatabaseUsername()
public void setDatabaseUsername(java.lang.String inDatabaseUsername)
public java.lang.String getDatabasePassword()
public void setDatabasePassword(java.lang.String inDatabasePassword)
public int getDatabaseSpatialReferenceID()
public void setDatabaseSpatialReferenceID(int inDatabaseSpatialReferenceID)
public void setDatabaseSpatialReferenceID(java.lang.String inDatabaseSpatialReferenceID)
public java.sql.Connection connect() throws java.lang.Exception
java.lang.Exception
protected void closeConnection() throws java.lang.Exception
java.lang.Exception
public void finalize()
public Node getNode()
getNode
in interface DataSource
getNode
in class SimpleDataSource
public void setNode(Node inNode) throws java.lang.Exception
setNode
in interface DataSource
setNode
in class SimpleDataSource
java.lang.Exception
public void load(java.util.Properties inProperties)
public Envelope readEnvelope() throws java.lang.Exception
readEnvelope
in class SimpleDataSource
java.lang.Exception
public SQLConverter getSQLConverter()
getSQLConverter
in class SimpleDBDataSource
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |