|
|||||||||||
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.mysql.MySQLDataSource
gistoolkit.datasources.mysql.UpdateableMySQLDataSource
Reads the shapes from a single table. This allows the shapes to be updated along with the attribute data without the confusion of adding additonal joins.
Field Summary |
Fields inherited from class gistoolkit.datasources.SimpleDataSource |
|
Constructor Summary | |
UpdateableMySQLDataSource()
Creates new UpdateableMySQLDataSource |
Method Summary | |
void |
commit()
Commit all changes since the last commit. |
java.sql.Connection |
connect()
Connect this datasource to the database |
void |
doDelete(Record inRecord)
Delete this record from the database. |
void |
doInsert(Record inRecord)
Inserts the given record into the datasource. |
void |
doUpdate(Record inRecord)
Update the data source with the changed record. |
java.lang.String |
getDatabaseTablename()
return the tablename to use when accessing the data source |
Node |
getNode()
Get the configuration information for this data source |
Style |
getStyle()
Get the style to use with this datasource. |
java.lang.String[] |
getValidShapeTypes()
Return the valid shapes for this data source |
boolean |
isUpdateable()
Determines if this datasource is updateable. |
protected GISDataset |
readShapes(Envelope inEnvelope)
This method returns the shapes from the data source |
void |
rollback()
Rollback any changes to this datasource since the last commit. |
void |
setDatabaseTablename(java.lang.String inDatabaseTablename)
Set the table name to use when accessing the data source |
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, delete, doCommit, doRollback, filterDataset, fireCommit, fireDelete, fireInsert, fireRead, fireRollBack, fireUpdate, getCached, getCacheDataset, getCacheEnvelope, getEnvelope, getFromProjection, getName, getToProjection, insert, isCachedProjected, projectBackward, projectForward, queryFromCache, readDataset, readDataset, removeDataSourceListener, 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 UpdateableMySQLDataSource()
Method Detail |
public void setDatabaseTablename(java.lang.String inDatabaseTablename)
public java.lang.String getDatabaseTablename()
public java.lang.String[] getValidShapeTypes()
getValidShapeTypes
in class SimpleDataSource
public java.sql.Connection connect() throws java.lang.Exception
MySQLDataSource
connect
in class MySQLDataSource
java.lang.Exception
protected GISDataset readShapes(Envelope inEnvelope) throws java.lang.Exception
readShapes
in class SimpleDataSource
java.lang.Exception
public Node getNode()
getNode
in interface DataSource
getNode
in class MySQLDataSource
public void setNode(Node inNode) throws java.lang.Exception
setNode
in interface DataSource
setNode
in class MySQLDataSource
java.lang.Exception
public boolean isUpdateable()
isUpdateable
in interface DataSource
isUpdateable
in class SimpleDataSource
public void doInsert(Record inRecord) throws java.lang.Exception
doInsert
in class SimpleDataSource
java.lang.Exception
public void doUpdate(Record inRecord) throws java.lang.Exception
doUpdate
in class SimpleDataSource
java.lang.Exception
public void doDelete(Record inRecord) throws java.lang.Exception
doDelete
in class SimpleDataSource
java.lang.Exception
public void commit() throws java.lang.Exception
commit
in interface DataSource
commit
in class SimpleDataSource
java.lang.Exception
public void rollback() throws java.lang.Exception
rollback
in interface DataSource
rollback
in class SimpleDataSource
java.lang.Exception
public Style getStyle()
getStyle
in interface DataSource
getStyle
in class SimpleDataSource
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |