class MySQL extends Database
A MySQL Workspace connects to a MySQL database.
MySQL mysql = new MySQL("world","localhost","5432","uzr","pass")
Modifiers | Name | Description |
---|---|---|
static class |
MySQL.Factory |
The MySQL WorkspaceFactory |
Constructor and description |
---|
MySQL
(java.lang.String name, java.lang.String host, java.lang.String port, java.lang.String user, java.lang.String password) Create a new MySQL Workspace with a name, host, port, user, and password |
MySQL
(Map options, java.lang.String name) Create a new MySQL Workspace |
MySQL
(JDBCDataStore ds) Create a new MySQL Workspace from a GeoTools JDBCDataStore |
Type Params | Return Type | Name and description |
---|---|---|
|
java.lang.String |
getFormat() Get the format |
Methods inherited from class | Name |
---|---|
class Database |
createIndex, createIndex, createView, deleteIndex, deleteView, getDataSource, getIndexes, getSql, remove |
class Workspace |
add, add, close, create, create, get, getAt, getFormat, getLayers, getNames, getParameters, getWorkspace, getWorkspace, getWorkspaceNames, getWorkspaceParameters, has, readFeatures, remove, remove, withWorkspace, withWorkspace, withWorkspace, wrap |
Create a new MySQL Workspace with a name, host, port, user, and password
name
- The name of the databasehost
- The host nameport
- The portuser
- The user namepassword
- The passwordCreate a new MySQL Workspace
options
- The options
name
- The database or JNDI nameCreate a new MySQL Workspace from a GeoTools JDBCDataStore
ds
- The GeoTools JDBCDataStore