|
com.im.df/1 5.9.1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.im.df.impl.db.api.DBImplSchemaProvider
public class DBImplSchemaProvider
This class is used as starting point to DIF database implementation of DFSchemaProvider.
Use createSchemaProvider(PropsProvider)
method to create a new instance of DFSchemaProvider.
The basic idea is that this class creates a default implementation of DFSchemaProvider and through this other basic DIF objects will be accessed (DFSchema, DFEntities, etc.). To connect to data source this default implementation needs some configuration information (usually DB driver, DB URL, username, password, etc.). These properties can be modified during schema initialisation process and so should be stored for next time (e.g. remember username).
And so there is a DBImplSchemaProvider.PropsProvider interface which
provide the current connection properties and is able to store updated values. The typical implementation of this
interface will read/write the props from file.
| Nested Class Summary | |
|---|---|
static interface |
DBImplSchemaProvider.PropsProvider
Callback for reading/writing schema init properties. |
static interface |
DBImplSchemaProvider.PropsProviderExtra
Extra implementation can provide also a capability to be added to DFSchema when it's created. |
static class |
DBImplSchemaProvider.ShowOpts
|
| Constructor Summary | |
|---|---|
DBImplSchemaProvider()
|
|
| Method Summary | |
|---|---|
static DBImplSchemaProvider.PropsProvider |
createDefaultReadOnlyPropsProvider(File schemaFile)
Creates a new default instance of PropsProvider, which provides properties of the schema. |
static DFSchemaProvider |
createSchemaProvider(DBImplSchemaProvider.PropsProvider propsProvider)
Creates the schema provider based on properties given by propsProvider. |
static void |
decryptUserAndPass(Properties props,
Set<String> encryptedKeys)
|
static void |
encrypUserAndPass(Properties props,
Set<String> originallyEncryptedKeys)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String SCHEMA_ID
DBImplSchemaProvider.PropsProvider. DFSchema's id
public static final String SCHEMA_NAME
DBImplSchemaProvider.PropsProvider. DFSchema's display name
public static final String SCHEMA_AUTO_CONNECT
DBImplSchemaProvider.PropsProvider. Should schema be auto-connected after project opening? If not present
means 'false'
public static final String DATABASE_IS_LOCAL
DBImplSchemaProvider.PropsProvider. Is the database local or remote?
public static final String DATABASE_URL
DBImplSchemaProvider.PropsProvider. Database URL
public static final String DATABASE_DRIVER
DBImplSchemaProvider.PropsProvider. Database driver
public static final String DATABASE_USERNAME
DBImplSchemaProvider.PropsProvider. Database connection username
public static final String DATABASE_PASSWORD
DBImplSchemaProvider.PropsProvider. Database connection password
public static final String DATABASE_SCHEMA
DBImplSchemaProvider.PropsProvider. Database schema (some DBs don't use that)
public static final String DATABASE_CATALOG
DBImplSchemaProvider.PropsProvider. Database catalog (some DBs don't use that)
public static final String CUSTOM_OBJECT_POOL_FACTORY
DBImplSchemaProvider.PropsProvider. to determine if custom GenericObjectPoolFactory
public static final String SERVER_USERNAME
DBImplSchemaProvider.PropsProvider. Server connection username
public static final String SERVER_PASSWORD
DBImplSchemaProvider.PropsProvider. Server connection password
public static final String SERVER_URL
DBImplSchemaProvider.PropsProvider. Server URL
public static final String SERVER_IS_REMOTE
DBImplSchemaProvider.PropsProvider. Is DIF server implementation provided remotely ?
public static final String IJC_LICENSE
public static final String IJC_USERNAME
DBImplSchemaProvider.PropsProvider. IJC username (if IJC authorization is used)
public static final String IJC_PASSWORD
DBImplSchemaProvider.PropsProvider. IJC password (if IJC authorization is used)
public static final String SHOW_OPTIONS_IJCSERVER_USERNAME
public static final String SHOW_OPTIONS_IJC_USERNAME
public static final String SHOW_OPTIONS_DB_USERNAME
public static final String SHOW_OPTIONS_MODE_SELECT
| Constructor Detail |
|---|
public DBImplSchemaProvider()
| Method Detail |
|---|
public static DFSchemaProvider createSchemaProvider(DBImplSchemaProvider.PropsProvider propsProvider)
DIFUtilities.registerWhenSchemaReady(DFSchemaProvider, SchemaReadyRunnable) then.
propsProvider - The PropsProvider which provides the properties required to initialize the DFSchemaProvider
public static DBImplSchemaProvider.PropsProvider createDefaultReadOnlyPropsProvider(File schemaFile)
throws IOException
DBImplSchemaProvider.PropsProvider.rewriteProperties(java.util.Properties, java.util.List) of returned object will throw
UnsupportedOperationException.
schemaFile -
IOException
public static void encrypUserAndPass(Properties props,
Set<String> originallyEncryptedKeys)
public static void decryptUserAndPass(Properties props,
Set<String> encryptedKeys)
|
com.im.df/1 5.9.1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||