public class DataSource extends Object implements Keyable<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 String |
className |
protected String |
databaseName |
protected TextMap |
description |
protected String |
id |
protected Integer |
initialPoolSize |
protected IsolationLevel |
isolationLevel |
protected Integer |
loginTimeout |
protected Integer |
maxIdleTime |
protected Integer |
maxPoolSize |
protected Integer |
maxStatements |
protected Integer |
minPoolSize |
protected String |
name |
protected String |
password |
protected Integer |
portNumber |
protected List<Property> |
property |
protected String |
serverName |
protected Boolean |
transactional |
protected String |
url |
protected String |
user |
| Constructor and Description |
|---|
DataSource() |
DataSource(String name,
String className) |
protected TextMap description
protected String name
protected String className
protected String serverName
protected Integer portNumber
protected String databaseName
protected String url
protected String user
protected String password
protected Integer loginTimeout
protected Boolean transactional
protected IsolationLevel isolationLevel
protected Integer initialPoolSize
protected Integer maxPoolSize
protected Integer minPoolSize
protected Integer maxIdleTime
protected Integer maxStatements
protected String id
public Text[] getDescriptions()
public DataSource name(String name)
public DataSource className(String className)
public DataSource serverName(String serverName)
public DataSource portNumber(Integer portNumber)
public DataSource databaseName(String databaseName)
public DataSource url(String url)
public DataSource user(String user)
public DataSource password(String password)
public DataSource property(String name, String value)
public DataSource loginTimeout(Integer loginTimeout)
public DataSource transactional(Boolean transactional)
public DataSource isolationLevel(IsolationLevel isolationLevel)
public DataSource initialPoolSize(Integer initialPoolSize)
public DataSource maxPoolSize(Integer maxPoolSize)
public DataSource minPoolSize(Integer minPoolSize)
public DataSource maxIdleTime(Integer maxIdleTime)
public DataSource maxStatements(Integer maxStatements)
public void setDescriptions(Text[] text)
public String getDescription()
public String getName()
public void setName(String value)
public String getClassName()
public void setClassName(String value)
public String getServerName()
public void setServerName(String value)
public Integer getPortNumber()
public void setPortNumber(Integer value)
public String getDatabaseName()
public void setDatabaseName(String value)
public String getUrl()
public void setUrl(String value)
public String getUser()
public void setUser(String value)
public String getPassword()
public void setPassword(String value)
public Integer getLoginTimeout()
public void setLoginTimeout(Integer value)
public Boolean getTransactional()
public void setTransactional(Boolean value)
public IsolationLevel getIsolationLevel()
public void setIsolationLevel(IsolationLevel value)
public Integer getInitialPoolSize()
public void setInitialPoolSize(Integer value)
public Integer getMaxPoolSize()
public void setMaxPoolSize(Integer value)
public Integer getMinPoolSize()
public void setMinPoolSize(Integer value)
public Integer getMaxIdleTime()
public void setMaxIdleTime(Integer value)
public Integer getMaxStatements()
public void setMaxStatements(Integer value)
public String getId()
public void setId(String value)
Copyright © 1999–2014 The Apache Software Foundation. All rights reserved.