Package org.jboss.hal.core.datasource
Class DataSource
- java.lang.Object
-
- org.jboss.hal.dmr.ModelNode
-
- org.jboss.hal.dmr.NamedNode
-
- org.jboss.hal.core.datasource.DataSource
-
- All Implemented Interfaces:
Cloneable,NamedObject
public class DataSource extends NamedNode
Used for data-sources in configuration, runtime and deployments
-
-
Constructor Summary
Constructors Constructor Description DataSource(boolean xa)DataSource(String name, boolean xa)DataSource(String name, ModelNode modelNode, boolean xa)DataSource(Property property, boolean xa)DataSource(ResourceAddress address, ModelNode modelNode, boolean xa)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanfromDeployment()ResourceAddressgetAddress()StringgetDeployment()StringgetPath()Returnsdeployment/subdeploymentifsubdeployment != null,deploymentotherwise.StringgetSubdeployment()booleanisEnabled()booleanisStatisticsEnabled()booleanisXa()voidsetDriver(JdbcDriver driver)-
Methods inherited from class org.jboss.hal.dmr.NamedNode
asModelNode, equals, getName, hashCode, setName, toString, update
-
Methods inherited from class org.jboss.hal.dmr.ModelNode
add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, addEmptyList, addEmptyObject, addExpression, as, asBigDecimal, asBigInteger, asBoolean, asBoolean, asBytes, asDouble, asDouble, asInt, asInt, asList, asLong, asLong, asObject, asProperty, asPropertyList, asString, asType, clear, clone, equals, fromBase64, get, get, get, getFailureDescription, getType, has, has, hasDefined, hasDefined, isDefined, isFailure, keys, protect, remove, require, require, resolve, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, setEmptyList, setEmptyObject, setExpression, setExpression, toBase64String, toJSONString, toJSONString, writeExternal
-
-
-
-
Constructor Detail
-
DataSource
public DataSource(boolean xa)
-
DataSource
public DataSource(String name, boolean xa)
-
DataSource
public DataSource(Property property, boolean xa)
-
DataSource
public DataSource(ResourceAddress address, ModelNode modelNode, boolean xa)
-
-
Method Detail
-
isXa
public boolean isXa()
-
isEnabled
public boolean isEnabled()
-
isStatisticsEnabled
public boolean isStatisticsEnabled()
-
setDriver
public void setDriver(JdbcDriver driver)
-
fromDeployment
public boolean fromDeployment()
-
getAddress
public ResourceAddress getAddress()
-
getDeployment
public String getDeployment()
-
getSubdeployment
public String getSubdeployment()
-
getPath
public String getPath()
Returnsdeployment/subdeploymentifsubdeployment != null,deploymentotherwise. Should not be used to build DMR operations, but rather in the UI.
-
-