Interface DataSourceType<T>
- All Superinterfaces:
org.jboss.shrinkwrap.descriptor.api.Child<T>
- All Known Implementing Classes:
DataSourceTypeImpl
public interface DataSourceType<T>
extends org.jboss.shrinkwrap.descriptor.api.Child<T>
This interface defines the contract for the
data-sourceType xsd type-
Method Summary
Modifier and TypeMethodDescriptionSets theclass-nameelementCreates a newpropertyelementdatabaseName(String databaseName) Sets thedatabase-nameelementdescription(String description) Sets thedescriptionelementReturns allpropertyelementsReturns theclass-nameelementReturns thedatabase-nameelementReturns thedescriptionelementgetId()Returns theidattributeReturns theinitial-pool-sizeelementReturns theisolation-levelelementReturns theisolation-levelelementReturns thelogin-timeoutelementReturns themax-idle-timeelementReturns themax-pool-sizeelementReturns themax-statementselementReturns themin-pool-sizeelementgetName()Returns thenameelementIf not already created, a newpropertyelement will be created and returned.Returns thepasswordelementReturns theport-numberelementReturns theserver-nameelementgetUrl()Returns theurlelementgetUser()Returns theuserelementSets theidattributeinitialPoolSize(Integer initialPoolSize) Sets theinitial-pool-sizeelementisolationLevel(String isolationLevel) Sets theisolation-levelelementisolationLevel(IsolationLevelType isolationLevel) Sets theisolation-levelelementReturns thetransactionalelementloginTimeout(Integer loginTimeout) Sets thelogin-timeoutelementmaxIdleTime(Integer maxIdleTime) Sets themax-idle-timeelementmaxPoolSize(Integer maxPoolSize) Sets themax-pool-sizeelementmaxStatements(Integer maxStatements) Sets themax-statementselementminPoolSize(Integer minPoolSize) Sets themin-pool-sizeelementSets thenameelementSets thepasswordelementportNumber(Integer portNumber) Sets theport-numberelementRemoves allpropertyelementsRemoves theclass-nameelementRemoves thedatabase-nameelementRemoves thedescriptionelementremoveId()Removes theidattributeRemoves theinitial-pool-sizeelementRemoves theisolation-levelattributeRemoves thelogin-timeoutelementRemoves themax-idle-timeelementRemoves themax-pool-sizeelementRemoves themax-statementselementRemoves themin-pool-sizeelementRemoves thenameelementRemoves thepasswordelementRemoves theport-numberelementRemoves theserver-nameelementRemoves thetransactionalelementRemoves theurlelementRemoves theuserelementserverName(String serverName) Sets theserver-nameelementtransactional(Boolean transactional) Sets thetransactionalelementSets theurlelementSets theuserelementMethods inherited from interface org.jboss.shrinkwrap.descriptor.api.Child
up
-
Method Details
-
description
Sets thedescriptionelement- Parameters:
description- the value for the elementdescription- Returns:
- the current instance of
DataSourceType
-
getDescription
String getDescription()Returns thedescriptionelement- Returns:
- the node defined for the element
description
-
removeDescription
DataSourceType<T> removeDescription()Removes thedescriptionelement- Returns:
- the current instance of
DataSourceType
-
name
Sets thenameelement- Parameters:
name- the value for the elementname- Returns:
- the current instance of
DataSourceType
-
getName
String getName()Returns thenameelement- Returns:
- the node defined for the element
name
-
removeName
DataSourceType<T> removeName()Removes thenameelement- Returns:
- the current instance of
DataSourceType
-
className
Sets theclass-nameelement- Parameters:
className- the value for the elementclass-name- Returns:
- the current instance of
DataSourceType
-
getClassName
String getClassName()Returns theclass-nameelement- Returns:
- the node defined for the element
class-name
-
removeClassName
DataSourceType<T> removeClassName()Removes theclass-nameelement- Returns:
- the current instance of
DataSourceType
-
serverName
Sets theserver-nameelement- Parameters:
serverName- the value for the elementserver-name- Returns:
- the current instance of
DataSourceType
-
getServerName
String getServerName()Returns theserver-nameelement- Returns:
- the node defined for the element
server-name
-
removeServerName
DataSourceType<T> removeServerName()Removes theserver-nameelement- Returns:
- the current instance of
DataSourceType
-
portNumber
Sets theport-numberelement- Parameters:
portNumber- the value for the elementport-number- Returns:
- the current instance of
DataSourceType
-
getPortNumber
Integer getPortNumber()Returns theport-numberelement- Returns:
- the node defined for the element
port-number
-
removePortNumber
DataSourceType<T> removePortNumber()Removes theport-numberelement- Returns:
- the current instance of
DataSourceType
-
databaseName
Sets thedatabase-nameelement- Parameters:
databaseName- the value for the elementdatabase-name- Returns:
- the current instance of
DataSourceType
-
getDatabaseName
String getDatabaseName()Returns thedatabase-nameelement- Returns:
- the node defined for the element
database-name
-
removeDatabaseName
DataSourceType<T> removeDatabaseName()Removes thedatabase-nameelement- Returns:
- the current instance of
DataSourceType
-
url
Sets theurlelement- Parameters:
url- the value for the elementurl- Returns:
- the current instance of
DataSourceType
-
getUrl
String getUrl()Returns theurlelement- Returns:
- the node defined for the element
url
-
removeUrl
DataSourceType<T> removeUrl()Removes theurlelement- Returns:
- the current instance of
DataSourceType
-
user
Sets theuserelement- Parameters:
user- the value for the elementuser- Returns:
- the current instance of
DataSourceType
-
getUser
String getUser()Returns theuserelement- Returns:
- the node defined for the element
user
-
removeUser
DataSourceType<T> removeUser()Removes theuserelement- Returns:
- the current instance of
DataSourceType
-
password
Sets thepasswordelement- Parameters:
password- the value for the elementpassword- Returns:
- the current instance of
DataSourceType
-
getPassword
String getPassword()Returns thepasswordelement- Returns:
- the node defined for the element
password
-
removePassword
DataSourceType<T> removePassword()Removes thepasswordelement- Returns:
- the current instance of
DataSourceType
-
getOrCreateProperty
PropertyType<DataSourceType<T>> getOrCreateProperty()If not already created, a newpropertyelement will be created and returned. Otherwise, the first existingpropertyelement will be returned.- Returns:
- the instance defined for the element
property
-
createProperty
PropertyType<DataSourceType<T>> createProperty()Creates a newpropertyelement- Returns:
- the new created instance of
PropertyType<DataSourceType>
-
getAllProperty
List<PropertyType<DataSourceType<T>>> getAllProperty()Returns allpropertyelements- Returns:
- list of
property
-
removeAllProperty
DataSourceType<T> removeAllProperty()Removes allpropertyelements- Returns:
- the current instance of
PropertyType<DataSourceType>
-
loginTimeout
Sets thelogin-timeoutelement- Parameters:
loginTimeout- the value for the elementlogin-timeout- Returns:
- the current instance of
DataSourceType
-
getLoginTimeout
Integer getLoginTimeout()Returns thelogin-timeoutelement- Returns:
- the node defined for the element
login-timeout
-
removeLoginTimeout
DataSourceType<T> removeLoginTimeout()Removes thelogin-timeoutelement- Returns:
- the current instance of
DataSourceType
-
transactional
Sets thetransactionalelement- Parameters:
transactional- the value for the elementtransactional- Returns:
- the current instance of
DataSourceType
-
isTransactional
Boolean isTransactional()Returns thetransactionalelement- Returns:
- the node defined for the element
transactional
-
removeTransactional
DataSourceType<T> removeTransactional()Removes thetransactionalelement- Returns:
- the current instance of
DataSourceType
-
isolationLevel
Sets theisolation-levelelement- Parameters:
isolationLevel- the value for the elementisolation-level- Returns:
- the current instance of
DataSourceType
-
isolationLevel
Sets theisolation-levelelement- Parameters:
isolationLevel- the value for the elementisolation-level- Returns:
- the current instance of
DataSourceType
-
getIsolationLevel
IsolationLevelType getIsolationLevel()Returns theisolation-levelelement- Returns:
- the value found for the element
isolation-level
-
getIsolationLevelAsString
String getIsolationLevelAsString()Returns theisolation-levelelement- Returns:
- the value found for the element
isolation-level
-
removeIsolationLevel
DataSourceType<T> removeIsolationLevel()Removes theisolation-levelattribute- Returns:
- the current instance of
DataSourceType
-
initialPoolSize
Sets theinitial-pool-sizeelement- Parameters:
initialPoolSize- the value for the elementinitial-pool-size- Returns:
- the current instance of
DataSourceType
-
getInitialPoolSize
Integer getInitialPoolSize()Returns theinitial-pool-sizeelement- Returns:
- the node defined for the element
initial-pool-size
-
removeInitialPoolSize
DataSourceType<T> removeInitialPoolSize()Removes theinitial-pool-sizeelement- Returns:
- the current instance of
DataSourceType
-
maxPoolSize
Sets themax-pool-sizeelement- Parameters:
maxPoolSize- the value for the elementmax-pool-size- Returns:
- the current instance of
DataSourceType
-
getMaxPoolSize
Integer getMaxPoolSize()Returns themax-pool-sizeelement- Returns:
- the node defined for the element
max-pool-size
-
removeMaxPoolSize
DataSourceType<T> removeMaxPoolSize()Removes themax-pool-sizeelement- Returns:
- the current instance of
DataSourceType
-
minPoolSize
Sets themin-pool-sizeelement- Parameters:
minPoolSize- the value for the elementmin-pool-size- Returns:
- the current instance of
DataSourceType
-
getMinPoolSize
Integer getMinPoolSize()Returns themin-pool-sizeelement- Returns:
- the node defined for the element
min-pool-size
-
removeMinPoolSize
DataSourceType<T> removeMinPoolSize()Removes themin-pool-sizeelement- Returns:
- the current instance of
DataSourceType
-
maxIdleTime
Sets themax-idle-timeelement- Parameters:
maxIdleTime- the value for the elementmax-idle-time- Returns:
- the current instance of
DataSourceType
-
getMaxIdleTime
Integer getMaxIdleTime()Returns themax-idle-timeelement- Returns:
- the node defined for the element
max-idle-time
-
removeMaxIdleTime
DataSourceType<T> removeMaxIdleTime()Removes themax-idle-timeelement- Returns:
- the current instance of
DataSourceType
-
maxStatements
Sets themax-statementselement- Parameters:
maxStatements- the value for the elementmax-statements- Returns:
- the current instance of
DataSourceType
-
getMaxStatements
Integer getMaxStatements()Returns themax-statementselement- Returns:
- the node defined for the element
max-statements
-
removeMaxStatements
DataSourceType<T> removeMaxStatements()Removes themax-statementselement- Returns:
- the current instance of
DataSourceType
-
id
Sets theidattribute- Parameters:
id- the value for the attributeid- Returns:
- the current instance of
DataSourceType
-
getId
String getId()Returns theidattribute- Returns:
- the value defined for the attribute
id
-
removeId
DataSourceType<T> removeId()Removes theidattribute- Returns:
- the current instance of
DataSourceType
-