public class DataSourceBinding extends Object implements oracle.fmwplatform.envspec.common.Tunable<Schema>
| Modifier and Type | Field and Description |
|---|---|
static String |
RESERVED_TOKEN_DATASOURCE
Token used by discovery as a variable to be replaced by datasource name.
|
| Constructor and Description |
|---|
DataSourceBinding() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addSetting(String alias, String value)
Convenience method to add a setting with the given alias and value, to the tuning parameters for this DataSourceBinding.
|
List<String> |
getConnectStrings()
Returns the Connect Strings for each of the Nodes contained in this Database.
|
Database |
getDatabase()
Returns the Database from the Schema attached to this DataSourceBinding.
|
String |
getDataSourceName()
Returns the name of this DataSource.
|
Schema |
getParent()
Returns the object that contains this entity.
|
Map<String,String> |
getReservedKeywords()
Returns a map containing any reserved keywords and values for variable substitution for this entity
|
TuningParameters |
getTuningParameters()
Returns the TuningParameters for this DataSourceBinding or null if no TuningParameters are available.
|
String |
getVariableValue(String key)
Returns the variable value assigned to the specified key.
|
boolean |
isXA()
Returns if an XA driver must be used.
|
DataSourceBinding |
setDataSourceName(String dataSourceName)
Sets the name of this DataSourceBinding.
|
DataSourceBinding |
setParent(Schema containerSchema)
Sets the parent of this object.
|
DataSourceBinding |
setTuningParameters(TuningParameters tuningParameters)
Sets the TuningParameters for this DataSourceBinding or null if no TuningParameters.
|
DataSourceBinding |
setXA(boolean xa)
Sets if an XA driver must be used.
|
String |
substitute(String text)
Replaces substitution keys in the specified text with their corresponding values.
|
String |
toCompactString()
Returns a compact string representation of the object in JSON format.
|
String |
toString()
Returns a string representation of the object in JSON format.
|
String |
toXmlCompactString()
Returns a compact string representation of the object in XML format.
|
String |
toXmlString()
Returns a string representation of the object in XML format.
|
public static final String RESERVED_TOKEN_DATASOURCE
public boolean addSetting(String alias, String value)
addSetting in interface oracle.fmwplatform.envspec.common.Tunable<Schema>alias - the alias of a Settingvalue - the value of a Settingpublic List<String> getConnectStrings()
public Database getDatabase()
public String getDataSourceName()
public Schema getParent()
oracle.fmwplatform.envspec.common.ContainerAwaregetParent in interface oracle.fmwplatform.envspec.common.ContainerAware<Schema>public Map<String,String> getReservedKeywords()
oracle.fmwplatform.envspec.common.ReservedKeywordProvidergetReservedKeywords in interface oracle.fmwplatform.envspec.common.ReservedKeywordProviderpublic TuningParameters getTuningParameters()
getTuningParameters in interface oracle.fmwplatform.envspec.common.Tunable<Schema>public boolean isXA()
public DataSourceBinding setDataSourceName(String dataSourceName)
dataSourceName - the name to be set for this DataSourceBindingpublic DataSourceBinding setParent(Schema containerSchema) throws IllegalArgumentException
oracle.fmwplatform.envspec.common.ContainerAwaresetParent in interface oracle.fmwplatform.envspec.common.ContainerAware<Schema>containerSchema - the parent containerIllegalArgumentExceptionpublic DataSourceBinding setTuningParameters(TuningParameters tuningParameters)
setTuningParameters in interface oracle.fmwplatform.envspec.common.Tunable<Schema>tuningParameters - the TuningParameters for this DataSourceBinding or null if no TuningParameterspublic DataSourceBinding setXA(boolean xa)
xa - true for XA driver, otherwise falsepublic String getVariableValue(String key)
getVariableValue in interface oracle.fmwplatform.envspec.common.Substitutablekey - the key of the variable to be checkedpublic String substitute(String text)
substitute in interface oracle.fmwplatform.envspec.common.Substitutabletext - the original textpublic String toXmlCompactString()
public String toXmlString()
public String toCompactString()