Class DriverTypeImpl<T>
- java.lang.Object
-
- org.jboss.jca.embedded.dsl.datasources10.impl.DriverTypeImpl<T>
-
- All Implemented Interfaces:
DriverType<T>,org.jboss.shrinkwrap.descriptor.api.Child<T>
public class DriverTypeImpl<T> extends Object implements org.jboss.shrinkwrap.descriptor.api.Child<T>, DriverType<T>
This class implements thedriverTypexsd type
-
-
Constructor Summary
Constructors Constructor Description DriverTypeImpl(T t, String nodeName, org.jboss.shrinkwrap.descriptor.spi.node.Node node)DriverTypeImpl(T t, String nodeName, org.jboss.shrinkwrap.descriptor.spi.node.Node node, org.jboss.shrinkwrap.descriptor.spi.node.Node childNode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DriverType<T>datasourceClass(String datasourceClass)Sets thedatasource-classelementDriverType<T>driverClass(String driverClass)Sets thedriver-classelementStringgetDatasourceClass()Returns thedatasource-classelementStringgetDriverClass()Returns thedriver-classelementIntegergetMajorVersion()Returns themajor-versionattributeIntegergetMinorVerion()Returns theminor-verionattributeStringgetModule()Returns themoduleattributeStringgetName()Returns thenameattributeStringgetXaDatasourceClass()Returns thexa-datasource-classelementDriverType<T>majorVersion(Integer majorVersion)Sets themajor-versionattributeDriverType<T>minorVerion(Integer minorVerion)Sets theminor-verionattributeDriverType<T>module(String module)Sets themoduleattributeDriverType<T>name(String name)Sets thenameattributeDriverType<T>removeDatasourceClass()Removes thedatasource-classelementDriverType<T>removeDriverClass()Removes thedriver-classelementDriverType<T>removeMajorVersion()Removes themajor-versionattributeDriverType<T>removeMinorVerion()Removes theminor-verionattributeDriverType<T>removeModule()Removes themoduleattributeDriverType<T>removeName()Removes thenameattributeDriverType<T>removeXaDatasourceClass()Removes thexa-datasource-classelementTup()DriverType<T>xaDatasourceClass(String xaDatasourceClass)Sets thexa-datasource-classelement
-
-
-
Method Detail
-
driverClass
public DriverType<T> driverClass(String driverClass)
Sets thedriver-classelement- Specified by:
driverClassin interfaceDriverType<T>- Parameters:
driverClass- the value for the elementdriver-class- Returns:
- the current instance of
DriverType
-
getDriverClass
public String getDriverClass()
Returns thedriver-classelement- Specified by:
getDriverClassin interfaceDriverType<T>- Returns:
- the node defined for the element
driver-class
-
removeDriverClass
public DriverType<T> removeDriverClass()
Removes thedriver-classelement- Specified by:
removeDriverClassin interfaceDriverType<T>- Returns:
- the current instance of
DriverType
-
datasourceClass
public DriverType<T> datasourceClass(String datasourceClass)
Sets thedatasource-classelement- Specified by:
datasourceClassin interfaceDriverType<T>- Parameters:
datasourceClass- the value for the elementdatasource-class- Returns:
- the current instance of
DriverType
-
getDatasourceClass
public String getDatasourceClass()
Returns thedatasource-classelement- Specified by:
getDatasourceClassin interfaceDriverType<T>- Returns:
- the node defined for the element
datasource-class
-
removeDatasourceClass
public DriverType<T> removeDatasourceClass()
Removes thedatasource-classelement- Specified by:
removeDatasourceClassin interfaceDriverType<T>- Returns:
- the current instance of
DriverType
-
xaDatasourceClass
public DriverType<T> xaDatasourceClass(String xaDatasourceClass)
Sets thexa-datasource-classelement- Specified by:
xaDatasourceClassin interfaceDriverType<T>- Parameters:
xaDatasourceClass- the value for the elementxa-datasource-class- Returns:
- the current instance of
DriverType
-
getXaDatasourceClass
public String getXaDatasourceClass()
Returns thexa-datasource-classelement- Specified by:
getXaDatasourceClassin interfaceDriverType<T>- Returns:
- the node defined for the element
xa-datasource-class
-
removeXaDatasourceClass
public DriverType<T> removeXaDatasourceClass()
Removes thexa-datasource-classelement- Specified by:
removeXaDatasourceClassin interfaceDriverType<T>- Returns:
- the current instance of
DriverType
-
name
public DriverType<T> name(String name)
Sets thenameattribute- Specified by:
namein interfaceDriverType<T>- Parameters:
name- the value for the attributename- Returns:
- the current instance of
DriverType
-
getName
public String getName()
Returns thenameattribute- Specified by:
getNamein interfaceDriverType<T>- Returns:
- the value defined for the attribute
name
-
removeName
public DriverType<T> removeName()
Removes thenameattribute- Specified by:
removeNamein interfaceDriverType<T>- Returns:
- the current instance of
DriverType
-
module
public DriverType<T> module(String module)
Sets themoduleattribute- Specified by:
modulein interfaceDriverType<T>- Parameters:
module- the value for the attributemodule- Returns:
- the current instance of
DriverType
-
getModule
public String getModule()
Returns themoduleattribute- Specified by:
getModulein interfaceDriverType<T>- Returns:
- the value defined for the attribute
module
-
removeModule
public DriverType<T> removeModule()
Removes themoduleattribute- Specified by:
removeModulein interfaceDriverType<T>- Returns:
- the current instance of
DriverType
-
majorVersion
public DriverType<T> majorVersion(Integer majorVersion)
Sets themajor-versionattribute- Specified by:
majorVersionin interfaceDriverType<T>- Parameters:
majorVersion- the value for the attributemajor-version- Returns:
- the current instance of
DriverType
-
getMajorVersion
public Integer getMajorVersion()
Returns themajor-versionattribute- Specified by:
getMajorVersionin interfaceDriverType<T>- Returns:
- the value defined for the attribute
major-version
-
removeMajorVersion
public DriverType<T> removeMajorVersion()
Removes themajor-versionattribute- Specified by:
removeMajorVersionin interfaceDriverType<T>- Returns:
- the current instance of
DriverType
-
minorVerion
public DriverType<T> minorVerion(Integer minorVerion)
Sets theminor-verionattribute- Specified by:
minorVerionin interfaceDriverType<T>- Parameters:
minorVerion- the value for the attributeminor-verion- Returns:
- the current instance of
DriverType
-
getMinorVerion
public Integer getMinorVerion()
Returns theminor-verionattribute- Specified by:
getMinorVerionin interfaceDriverType<T>- Returns:
- the value defined for the attribute
minor-verion
-
removeMinorVerion
public DriverType<T> removeMinorVerion()
Removes theminor-verionattribute- Specified by:
removeMinorVerionin interfaceDriverType<T>- Returns:
- the current instance of
DriverType
-
-