public class PluginSchemaLoader extends AbstractPluginValue
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_SCHEMALOADER_NAME
Default database provider name.
|
static String |
FEATURE_PROVIDER
Provider name feature.
|
static String |
FEATURE_PROVIDER_INSTANCE
Provider instance feature.
|
static String |
FEATURE_REUSE
Default connection setting for reuse.
|
eval, valuescopenameFEATURE_CONDITION, FEATURE_NORMALIZED, FEATURE_NORMALIZER, FEATURE_SLEEP, FEATURE_THREADSAFE, FEATURE_TIMEOUT, FEATURE_WAITparameters| Constructor and Description |
|---|
PluginSchemaLoader() |
| Modifier and Type | Method and Description |
|---|---|
ENext |
doStart(IContext context,
IResultSet result) |
ActionType |
getActionType() |
static ISchemaLoader |
getLoader(IContext context,
String name)
Gets the datasource provider saved in context.
|
String |
getProvider()
The provide class name.
|
ISchemaLoader |
getProviderInstance()
The instance of a data source.
|
Boolean |
getReuse()
Gets the reuse status.
|
void |
initialize(IContext context) |
void |
setProvider(String provider)
Sets the datasource provider class name.
|
void |
setProviderInstance(ISchemaLoader providerInstance)
The instance of data source.
|
void |
setReuse(Boolean reuse)
Set reusable state.
|
getValue, getValue, isEval, setEval, setValuegetScope, saveGlobal, saveLocal, saveStrict, setScopegetName, setNamecopy, doEnd, getCondition, getConditionModel, getNormalized, getNormalized, getNormalizer, getParent, getSleep, getSleepModel, getThreadsafe, getTimeout, getTimeoutModel, getWait, getWaitModel, setCondition, setConditionModel, setNormalized, setNormalizer, setParent, setSleep, setSleepModel, setThreadsafe, setTimeout, setTimeoutModel, setWait, setWaitModel, toStringgetParameters, setParametersclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetParameters, setParameterspublic static final String DEFAULT_SCHEMALOADER_NAME
public static final String FEATURE_PROVIDER
public static final String FEATURE_PROVIDER_INSTANCE
public static final String FEATURE_REUSE
public String getProvider()
IDataSourceProvider.public void setProvider(String provider)
provider - The class which implements IDataSourceProvider
provider name.public ISchemaLoader getProviderInstance()
public void setProviderInstance(ISchemaLoader providerInstance)
providerInstance - The instance.public Boolean getReuse()
public void setReuse(Boolean reuse)
reuse - true, for reuse, false, otherwise.public ActionType getActionType()
public void initialize(IContext context) throws PluginException
initialize in interface IPlugininitialize in class AbstractPluginPluginExceptionpublic ENext doStart(IContext context, IResultSet result) throws PluginException
doStart in interface IPlugindoStart in class AbstractPluginPluginExceptionpublic static ISchemaLoader getLoader(IContext context, String name) throws PluginException
context - The context.name - The datasource provider name.PluginException - On lookup errors.Copyright © 2017. All rights reserved.