|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.refractions.udig.catalog.service.database.DatabaseServiceDialect
public abstract class DatabaseServiceDialect
This class abstracts out all of the service and database specific code for a Geotools Database-based DatastoreIService extension.
Field Summary | |
---|---|
Param |
databaseParam
The key of the parameter that identifies the database (within the database, this is concept is inherited from Postgis) |
Param |
hostParam
The key that identifies the host server of the database |
DatabaseWizardLocalization |
localization
|
Param |
passwordParam
The key that identifies connecting user's password |
Param |
portParam
The key that identifies the server port for connecting to the database |
Param |
schemaParam
The key of the parameter that (at least in Postgis) identifies the schema that the table resides in. |
Param |
typeParam
The key that indicates the type of Datastore to create. |
java.lang.String |
urlPrefix
The prefix/host to put in a url that identifies this type of database. |
Param |
usernameParam
The key that identifies connecting user's username |
Constructor Summary | |
---|---|
DatabaseServiceDialect(Param schemaParam,
Param databaseParam,
Param hostParam,
Param portParam,
Param usernameParam,
Param passwordParam,
Param typeParam,
java.lang.String urlPrefix,
DatabaseWizardLocalization localization)
|
Method Summary | |
---|---|
java.util.Collection<java.net.URL> |
constructResourceIDs(TableDescriptor[] descriptors,
java.util.Map<java.lang.String,java.io.Serializable> params)
|
abstract DatabaseConnectionRunnable |
createDatabaseConnectionRunnable(java.lang.String host,
int port,
java.lang.String username,
java.lang.String password)
Creates a DatabaseConnectionRunnable . |
abstract LookUpSchemaRunnable |
createLookupSchemaRunnable(java.lang.String host,
int port,
java.lang.String username,
java.lang.String password,
java.lang.String database)
Creates a LookUpSchemaRunnable . |
java.util.Map<Control,Tab> |
createOptionConnectionPageTabs(TabFolder tabFolder,
DataConnectionPage containingPage)
The TabSelectionTab is always created, this method allows the specific implementation to add custom tabs. |
abstract IDialogSettings |
getDialogSetting()
|
abstract void |
log(java.lang.String message,
java.lang.Throwable e)
|
java.net.URL |
toURL(java.util.Map<java.lang.String,java.io.Serializable> params)
|
java.net.URL |
toURL(java.lang.String the_spec)
|
java.net.URL |
toURL(java.lang.String the_username,
java.lang.String the_password,
java.lang.String the_host,
java.lang.Integer intPort,
java.lang.String the_database)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final Param schemaParam
public final Param databaseParam
public final Param hostParam
public final Param portParam
public final Param usernameParam
public final Param passwordParam
public final Param typeParam
public final java.lang.String urlPrefix
public final DatabaseWizardLocalization localization
Constructor Detail |
---|
public DatabaseServiceDialect(Param schemaParam, Param databaseParam, Param hostParam, Param portParam, Param usernameParam, Param passwordParam, Param typeParam, java.lang.String urlPrefix, DatabaseWizardLocalization localization)
Method Detail |
---|
public java.util.Collection<java.net.URL> constructResourceIDs(TableDescriptor[] descriptors, java.util.Map<java.lang.String,java.io.Serializable> params)
public java.net.URL toURL(java.util.Map<java.lang.String,java.io.Serializable> params) throws java.net.MalformedURLException
java.net.MalformedURLException
public java.net.URL toURL(java.lang.String the_username, java.lang.String the_password, java.lang.String the_host, java.lang.Integer intPort, java.lang.String the_database) throws java.net.MalformedURLException
java.net.MalformedURLException
public java.net.URL toURL(java.lang.String the_spec) throws java.net.MalformedURLException
java.net.MalformedURLException
public abstract IDialogSettings getDialogSetting()
public abstract void log(java.lang.String message, java.lang.Throwable e)
public abstract DatabaseConnectionRunnable createDatabaseConnectionRunnable(java.lang.String host, int port, java.lang.String username, java.lang.String password)
DatabaseConnectionRunnable
.
host
- the url of the host to connect toport
- the port on which to connectusername
- the username for connectionspassword
- the password for connectiondatabase
- In postgis there are databases within a database. This is a common construct but often
named differently. Please try to make the mapping.
DatabaseConnectionRunnable
public java.util.Map<Control,Tab> createOptionConnectionPageTabs(TabFolder tabFolder, DataConnectionPage containingPage)
tabFolder
- the parent folder of the tabspublic abstract LookUpSchemaRunnable createLookupSchemaRunnable(java.lang.String host, int port, java.lang.String username, java.lang.String password, java.lang.String database)
LookUpSchemaRunnable
.
host
- the url of the host to connect toport
- the port on which to connectusername
- the username for connectionspassword
- the password for connectiondatabase
- In postgis there are databases within a database. This is a common construct but often
named differently. Please try to make the mapping.
LookUpSchemaRunnable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |