public class DataSource extends java.lang.Object implements Keyable<java.lang.String>
Java class for data-sourceType complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="data-sourceType"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="description" type="{http://java.sun.com/xml/ns/javaee}descriptionType" minOccurs="0"/> <element name="name" type="{http://java.sun.com/xml/ns/javaee}jndi-nameType"/> <element name="class-name" type="{http://java.sun.com/xml/ns/javaee}fully-qualified-classType" minOccurs="0"/> <element name="server-name" type="{http://java.sun.com/xml/ns/javaee}string" minOccurs="0"/> <element name="port-number" type="{http://java.sun.com/xml/ns/javaee}xsdIntegerType" minOccurs="0"/> <element name="database-name" type="{http://java.sun.com/xml/ns/javaee}string" minOccurs="0"/> <element name="url" type="{http://java.sun.com/xml/ns/javaee}jdbc-urlType" minOccurs="0"/> <element name="user" type="{http://java.sun.com/xml/ns/javaee}string" minOccurs="0"/> <element name="password" type="{http://java.sun.com/xml/ns/javaee}string" minOccurs="0"/> <element name="property" type="{http://java.sun.com/xml/ns/javaee}propertyType" maxOccurs="unbounded" minOccurs="0"/> <element name="login-timeout" type="{http://java.sun.com/xml/ns/javaee}xsdIntegerType" minOccurs="0"/> <element name="transactional" type="{http://java.sun.com/xml/ns/javaee}xsdBooleanType" minOccurs="0"/> <element name="isolation-level" type="{http://java.sun.com/xml/ns/javaee}isolation-levelType" minOccurs="0"/> <element name="initial-pool-size" type="{http://java.sun.com/xml/ns/javaee}xsdIntegerType" minOccurs="0"/> <element name="max-pool-size" type="{http://java.sun.com/xml/ns/javaee}xsdIntegerType" minOccurs="0"/> <element name="min-pool-size" type="{http://java.sun.com/xml/ns/javaee}xsdIntegerType" minOccurs="0"/> <element name="max-idle-time" type="{http://java.sun.com/xml/ns/javaee}xsdIntegerType" minOccurs="0"/> <element name="max-statements" type="{http://java.sun.com/xml/ns/javaee}xsdIntegerType" minOccurs="0"/> </sequence> <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" /> </restriction> </complexContent> </complexType>
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
className |
protected java.lang.String |
databaseName |
protected TextMap |
description |
protected java.lang.String |
id |
protected java.lang.Integer |
initialPoolSize |
protected IsolationLevel |
isolationLevel |
protected java.lang.Integer |
loginTimeout |
protected java.lang.Integer |
maxIdleTime |
protected java.lang.Integer |
maxPoolSize |
protected java.lang.Integer |
maxStatements |
protected java.lang.Integer |
minPoolSize |
protected java.lang.String |
name |
protected java.lang.String |
password |
protected java.lang.Integer |
portNumber |
protected java.util.List<Property> |
property |
protected java.lang.String |
serverName |
protected java.lang.Boolean |
transactional |
protected java.lang.String |
url |
protected java.lang.String |
user |
Constructor and Description |
---|
DataSource() |
DataSource(java.lang.String name,
java.lang.String className) |
Modifier and Type | Method and Description |
---|---|
DataSource |
className(java.lang.String className) |
DataSource |
databaseName(java.lang.String databaseName) |
java.lang.String |
getClassName() |
java.lang.String |
getDatabaseName() |
java.lang.String |
getDescription() |
Text[] |
getDescriptions() |
java.lang.String |
getId() |
java.lang.Integer |
getInitialPoolSize() |
IsolationLevel |
getIsolationLevel() |
java.lang.String |
getKey()
Gets the immutable key for this object.
|
java.lang.Integer |
getLoginTimeout() |
java.lang.Integer |
getMaxIdleTime() |
java.lang.Integer |
getMaxPoolSize() |
java.lang.Integer |
getMaxStatements() |
java.lang.Integer |
getMinPoolSize() |
java.lang.String |
getName() |
java.lang.String |
getPassword() |
java.lang.Integer |
getPortNumber() |
java.util.List<Property> |
getProperty() |
java.lang.String |
getServerName() |
java.lang.Boolean |
getTransactional() |
java.lang.String |
getUrl() |
java.lang.String |
getUser() |
DataSource |
initialPoolSize(java.lang.Integer initialPoolSize) |
DataSource |
isolationLevel(IsolationLevel isolationLevel) |
DataSource |
loginTimeout(java.lang.Integer loginTimeout) |
DataSource |
maxIdleTime(java.lang.Integer maxIdleTime) |
DataSource |
maxPoolSize(java.lang.Integer maxPoolSize) |
DataSource |
maxStatements(java.lang.Integer maxStatements) |
DataSource |
minPoolSize(java.lang.Integer minPoolSize) |
DataSource |
name(java.lang.String name) |
DataSource |
password(java.lang.String password) |
DataSource |
portNumber(java.lang.Integer portNumber) |
DataSource |
property(java.lang.String name,
java.lang.String value) |
DataSource |
serverName(java.lang.String serverName) |
void |
setClassName(java.lang.String value) |
void |
setDatabaseName(java.lang.String value) |
void |
setDescriptions(Text[] text) |
void |
setId(java.lang.String value) |
void |
setInitialPoolSize(java.lang.Integer value) |
void |
setIsolationLevel(IsolationLevel value) |
void |
setLoginTimeout(java.lang.Integer value) |
void |
setMaxIdleTime(java.lang.Integer value) |
void |
setMaxPoolSize(java.lang.Integer value) |
void |
setMaxStatements(java.lang.Integer value) |
void |
setMinPoolSize(java.lang.Integer value) |
void |
setName(java.lang.String value) |
void |
setPassword(java.lang.String value) |
void |
setPortNumber(java.lang.Integer value) |
void |
setServerName(java.lang.String value) |
void |
setTransactional(java.lang.Boolean value) |
void |
setUrl(java.lang.String value) |
void |
setUser(java.lang.String value) |
DataSource |
transactional(java.lang.Boolean transactional) |
DataSource |
url(java.lang.String url) |
DataSource |
user(java.lang.String user) |
protected TextMap description
protected java.lang.String name
protected java.lang.String className
protected java.lang.String serverName
protected java.lang.Integer portNumber
protected java.lang.String databaseName
protected java.lang.String url
protected java.lang.String user
protected java.lang.String password
protected java.util.List<Property> property
protected java.lang.Integer loginTimeout
protected java.lang.Boolean transactional
protected IsolationLevel isolationLevel
protected java.lang.Integer initialPoolSize
protected java.lang.Integer maxPoolSize
protected java.lang.Integer minPoolSize
protected java.lang.Integer maxIdleTime
protected java.lang.Integer maxStatements
protected java.lang.String id
public DataSource()
public DataSource(java.lang.String name, java.lang.String className)
public Text[] getDescriptions()
public DataSource name(java.lang.String name)
public DataSource className(java.lang.String className)
public DataSource serverName(java.lang.String serverName)
public DataSource portNumber(java.lang.Integer portNumber)
public DataSource databaseName(java.lang.String databaseName)
public DataSource url(java.lang.String url)
public DataSource user(java.lang.String user)
public DataSource password(java.lang.String password)
public DataSource property(java.lang.String name, java.lang.String value)
public DataSource loginTimeout(java.lang.Integer loginTimeout)
public DataSource transactional(java.lang.Boolean transactional)
public DataSource isolationLevel(IsolationLevel isolationLevel)
public DataSource initialPoolSize(java.lang.Integer initialPoolSize)
public DataSource maxPoolSize(java.lang.Integer maxPoolSize)
public DataSource minPoolSize(java.lang.Integer minPoolSize)
public DataSource maxIdleTime(java.lang.Integer maxIdleTime)
public DataSource maxStatements(java.lang.Integer maxStatements)
public void setDescriptions(Text[] text)
public java.lang.String getDescription()
public java.lang.String getName()
public void setName(java.lang.String value)
public java.lang.String getClassName()
public void setClassName(java.lang.String value)
public java.lang.String getServerName()
public void setServerName(java.lang.String value)
public java.lang.Integer getPortNumber()
public void setPortNumber(java.lang.Integer value)
public java.lang.String getDatabaseName()
public void setDatabaseName(java.lang.String value)
public java.lang.String getUrl()
public void setUrl(java.lang.String value)
public java.lang.String getUser()
public void setUser(java.lang.String value)
public java.lang.String getPassword()
public void setPassword(java.lang.String value)
public java.util.List<Property> getProperty()
public java.lang.Integer getLoginTimeout()
public void setLoginTimeout(java.lang.Integer value)
public java.lang.Boolean getTransactional()
public void setTransactional(java.lang.Boolean value)
public IsolationLevel getIsolationLevel()
public void setIsolationLevel(IsolationLevel value)
public java.lang.Integer getInitialPoolSize()
public void setInitialPoolSize(java.lang.Integer value)
public java.lang.Integer getMaxPoolSize()
public void setMaxPoolSize(java.lang.Integer value)
public java.lang.Integer getMinPoolSize()
public void setMinPoolSize(java.lang.Integer value)
public java.lang.Integer getMaxIdleTime()
public void setMaxIdleTime(java.lang.Integer value)
public java.lang.Integer getMaxStatements()
public void setMaxStatements(java.lang.Integer value)
public java.lang.String getId()
public void setId(java.lang.String value)