public class Database extends Object implements oracle.fmwplatform.envspec.common.ContainerAware<Topology>, oracle.fmwplatform.envspec.common.EntityWithId, oracle.fmwplatform.envspec.common.ParentContainerWithVariables
Modifier and Type | Class and Description |
---|---|
static class |
Database.Role
Represents the role used to connect to the database, e.g. SYSDBA.
|
static class |
Database.Vendor
The database vendor.
|
Constructor and Description |
---|
Database() |
Modifier and Type | Method and Description |
---|---|
boolean |
addAllNodes(List<Node> nodes)
Adds a list of Nodes to this Database's list of Nodes.
|
boolean |
addNode(Node node)
Adds a single Node to this Database's list of Nodes.
|
Node |
addNode(String id)
Creates a new Cluster Node and add it to this Database.
|
List<String> |
getConnectStrings()
Returns the Connect Strings for each of the Nodes contained in this Database.
|
String |
getDbaCredentialRef()
Returns the DBA Credential Reference or null if one has not been set
|
Database.Role |
getDbaRole()
Returns the DBA role.
|
String |
getDriverClass()
Returns the fully qualified Java class name of the non-XA JDBC driver.
|
Map<String,String> |
getEffectiveVariables()
Returns the derived map of variables for this element.
|
String |
getId()
Returns the id used to reference this model object.
|
List<Node> |
getNodes()
Returns the Nodes in this Database.
|
Topology |
getParent()
Returns the object that contains this entity
|
String |
getRcuConnectString()
Returns the RCU connect string.
|
String |
getVariableValue(String key)
Returns the variable value assigned to the specified key.
|
Database.Vendor |
getVendor()
Returns the vendor for the Database.
|
String |
getXaDriverClass()
Returns the fully qualified Java class name of the XA JDBC driver.
|
Database |
setDbaCredentialRef(String dbaCredentialRef)
Sets the DBA Credential reference which may be null.
|
Database |
setDbaRole(Database.Role dbaRole)
Sets the DBA role.
|
Database |
setDriverClass(String driverClass)
Sets the fully qualified Java class name of the non-XA JDBC driver.
|
Database |
setId(String id)
Sets the id used to reference this model object.
|
Database |
setNodes(List<Node> nodes)
Sets the Nodes in this Database.
|
Database |
setParent(Topology containerTopology)
Sets the container object that contains this.
|
Database |
setRcuConnectString(String rcuConnectString)
Sets the RCU connect string.
|
Database |
setVendor(Database.Vendor vendor)
Sets the vendor of this Database.
|
Database |
setXaDriverClass(String xaDriverClass)
Sets the fully qualified Java class name of the XA JDBC driver.
|
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 Topology getParent()
oracle.fmwplatform.envspec.common.ContainerAware
getParent
in interface oracle.fmwplatform.envspec.common.ContainerAware<Topology>
public Database setParent(Topology containerTopology) throws IllegalArgumentException
oracle.fmwplatform.envspec.common.ContainerAware
setParent
in interface oracle.fmwplatform.envspec.common.ContainerAware<Topology>
containerTopology
- the parent containerIllegalArgumentException
public boolean addNode(Node node) throws IllegalArgumentException
node
- the Node to be added to this Database's list of Nodestrue
if the list changed as a result of this callIllegalArgumentException
public boolean addAllNodes(List<Node> nodes) throws IllegalArgumentException
nodes
- the Node to be added to this Database's list of Nodestrue
if the list changed as a result of this callIllegalArgumentException
public Node addNode(String id) throws IllegalArgumentException
id
- the id to use for the new Cluster NodeIllegalArgumentException
public List<String> getConnectStrings()
public String getDbaCredentialRef()
public Database.Role getDbaRole()
public String getDriverClass()
public String getId()
oracle.fmwplatform.envspec.common.EntityWithId
getId
in interface oracle.fmwplatform.envspec.common.EntityWithId
public List<Node> getNodes()
public String getRcuConnectString()
public Database.Vendor getVendor()
public String getXaDriverClass()
public Database setDbaCredentialRef(String dbaCredentialRef)
dbaCredentialRef
- the DBA Credential reference which may be nullpublic Database setDbaRole(Database.Role dbaRole)
dbaRole
- the DBA role to be set for this Databasepublic Database setDriverClass(String driverClass)
driverClass
- the fully qualified Java class name of the non-XA JDBC driverpublic Database setId(String id)
oracle.fmwplatform.envspec.common.EntityWithId
setId
in interface oracle.fmwplatform.envspec.common.EntityWithId
id
- the id to be used when referencing this model objectpublic Database setNodes(List<Node> nodes)
nodes
- the Nodes in this Databasepublic Database setRcuConnectString(String rcuConnectString)
rcuConnectString
- the RCU connect stringpublic Database setVendor(Database.Vendor vendor)
vendor
- the vendor of this Databasepublic Database setXaDriverClass(String xaDriverClass)
xaDriverClass
- the fully qualified Java class name of the XA JDBC driverpublic Map<String,String> getEffectiveVariables() throws FMWEnvSpecException
getEffectiveVariables
in interface oracle.fmwplatform.envspec.common.ParentContainerWithVariables
FMWEnvSpecException
- in the event of a critical errorpublic 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()