public class DataSourceBinding extends Object implements oracle.fmwplatform.envspec.common.Tunable<Schema>
Modifier and Type | Field and Description |
---|---|
static String |
RESERVED_TOKEN_DATASOURCE |
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 container object that contains this.
|
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.ContainerAware
getParent
in interface oracle.fmwplatform.envspec.common.ContainerAware<Schema>
public Map<String,String> getReservedKeywords()
oracle.fmwplatform.envspec.common.ReservedKeywordProvider
getReservedKeywords
in interface oracle.fmwplatform.envspec.common.ReservedKeywordProvider
public 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.ContainerAware
setParent
in interface oracle.fmwplatform.envspec.common.ContainerAware<Schema>
containerSchema
- the parent containerIllegalArgumentException
public 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.Substitutable
key
- the key of the variable to be checkedpublic String substitute(String text)
substitute
in interface oracle.fmwplatform.envspec.common.Substitutable
text
- the original textpublic String toXmlCompactString()
public String toXmlString()
public String toCompactString()