org.apache.openejb.jee
Class DataSource

java.lang.Object
  extended by org.apache.openejb.jee.DataSource
All Implemented Interfaces:
Keyable<String>

public class DataSource
extends Object
implements Keyable<String>

javaee6.xsd

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>
 


Field Summary
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 Summary
DataSource()
           
DataSource(String name, String className)
           
 
Method Summary
 DataSource className(String className)
           
 DataSource databaseName(String databaseName)
           
 String getClassName()
           
 String getDatabaseName()
           
 String getDescription()
           
 Text[] getDescriptions()
           
 String getId()
           
 Integer getInitialPoolSize()
           
 IsolationLevel getIsolationLevel()
           
 String getKey()
          Gets the immutable key for this object.
 Integer getLoginTimeout()
           
 Integer getMaxIdleTime()
           
 Integer getMaxPoolSize()
           
 Integer getMaxStatements()
           
 Integer getMinPoolSize()
           
 String getName()
           
 String getPassword()
           
 Integer getPortNumber()
           
 List<Property> getProperty()
           
 String getServerName()
           
 Boolean getTransactional()
           
 String getUrl()
           
 String getUser()
           
 DataSource initialPoolSize(Integer initialPoolSize)
           
 DataSource isolationLevel(IsolationLevel isolationLevel)
           
 DataSource loginTimeout(Integer loginTimeout)
           
 DataSource maxIdleTime(Integer maxIdleTime)
           
 DataSource maxPoolSize(Integer maxPoolSize)
           
 DataSource maxStatements(Integer maxStatements)
           
 DataSource minPoolSize(Integer minPoolSize)
           
 DataSource name(String name)
           
 DataSource password(String password)
           
 DataSource portNumber(Integer portNumber)
           
 DataSource property(String name, String value)
           
 DataSource serverName(String serverName)
           
 void setClassName(String value)
           
 void setDatabaseName(String value)
           
 void setDescriptions(Text[] text)
           
 void setId(String value)
           
 void setInitialPoolSize(Integer value)
           
 void setIsolationLevel(IsolationLevel value)
           
 void setLoginTimeout(Integer value)
           
 void setMaxIdleTime(Integer value)
           
 void setMaxPoolSize(Integer value)
           
 void setMaxStatements(Integer value)
           
 void setMinPoolSize(Integer value)
           
 void setName(String value)
           
 void setPassword(String value)
           
 void setPortNumber(Integer value)
           
 void setServerName(String value)
           
 void setTransactional(Boolean value)
           
 void setUrl(String value)
           
 void setUser(String value)
           
 DataSource transactional(Boolean transactional)
           
 DataSource url(String url)
           
 DataSource user(String user)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

description

protected TextMap description

name

protected String name

className

protected String className

serverName

protected String serverName

portNumber

protected Integer portNumber

databaseName

protected String databaseName

url

protected String url

user

protected String user

password

protected String password

property

protected List<Property> property

loginTimeout

protected Integer loginTimeout

transactional

protected Boolean transactional

isolationLevel

protected IsolationLevel isolationLevel

initialPoolSize

protected Integer initialPoolSize

maxPoolSize

protected Integer maxPoolSize

minPoolSize

protected Integer minPoolSize

maxIdleTime

protected Integer maxIdleTime

maxStatements

protected Integer maxStatements

id

protected String id
Constructor Detail

DataSource

public DataSource()

DataSource

public DataSource(String name,
                  String className)
Method Detail

getDescriptions

public Text[] getDescriptions()

name

public DataSource name(String name)

className

public DataSource className(String className)

serverName

public DataSource serverName(String serverName)

portNumber

public DataSource portNumber(Integer portNumber)

databaseName

public DataSource databaseName(String databaseName)

url

public DataSource url(String url)

user

public DataSource user(String user)

password

public DataSource password(String password)

property

public DataSource property(String name,
                           String value)

loginTimeout

public DataSource loginTimeout(Integer loginTimeout)

transactional

public DataSource transactional(Boolean transactional)

isolationLevel

public DataSource isolationLevel(IsolationLevel isolationLevel)

initialPoolSize

public DataSource initialPoolSize(Integer initialPoolSize)

maxPoolSize

public DataSource maxPoolSize(Integer maxPoolSize)

minPoolSize

public DataSource minPoolSize(Integer minPoolSize)

maxIdleTime

public DataSource maxIdleTime(Integer maxIdleTime)

maxStatements

public DataSource maxStatements(Integer maxStatements)

setDescriptions

public void setDescriptions(Text[] text)

getDescription

public String getDescription()

getName

public String getName()

setName

public void setName(String value)

getClassName

public String getClassName()

setClassName

public void setClassName(String value)

getServerName

public String getServerName()

setServerName

public void setServerName(String value)

getPortNumber

public Integer getPortNumber()

setPortNumber

public void setPortNumber(Integer value)

getDatabaseName

public String getDatabaseName()

setDatabaseName

public void setDatabaseName(String value)

getUrl

public String getUrl()

setUrl

public void setUrl(String value)

getUser

public String getUser()

setUser

public void setUser(String value)

getPassword

public String getPassword()

setPassword

public void setPassword(String value)

getProperty

public List<Property> getProperty()

getLoginTimeout

public Integer getLoginTimeout()

setLoginTimeout

public void setLoginTimeout(Integer value)

getTransactional

public Boolean getTransactional()

setTransactional

public void setTransactional(Boolean value)

getIsolationLevel

public IsolationLevel getIsolationLevel()

setIsolationLevel

public void setIsolationLevel(IsolationLevel value)

getInitialPoolSize

public Integer getInitialPoolSize()

setInitialPoolSize

public void setInitialPoolSize(Integer value)

getMaxPoolSize

public Integer getMaxPoolSize()

setMaxPoolSize

public void setMaxPoolSize(Integer value)

getMinPoolSize

public Integer getMinPoolSize()

setMinPoolSize

public void setMinPoolSize(Integer value)

getMaxIdleTime

public Integer getMaxIdleTime()

setMaxIdleTime

public void setMaxIdleTime(Integer value)

getMaxStatements

public Integer getMaxStatements()

setMaxStatements

public void setMaxStatements(Integer value)

getId

public String getId()

setId

public void setId(String value)

getKey

public String getKey()
Description copied from interface: Keyable
Gets the immutable key for this object.

Specified by:
getKey in interface Keyable<String>
Returns:
gets the immutable key for this object


Copyright © 1999-2012 The Apache Software Foundation. All Rights Reserved.