com.caucho.env.jdbc
Class DatabaseFactory

java.lang.Object
  extended by com.caucho.env.jdbc.DatabaseFactory
Direct Known Subclasses:
DatabaseFactoryImpl

public abstract class DatabaseFactory
extends java.lang.Object

Manages databases in a local environment, e.g. for PHP dynamic database lookup.


Field Summary
 java.lang.String _databaseName
           
 
Constructor Summary
DatabaseFactory()
           
 
Method Summary
abstract  javax.sql.DataSource create()
           
static DatabaseFactory createBuilder()
           
 java.lang.String getDatabaseName()
           
 java.lang.Class<?> getDriverClass()
           
 java.lang.String getName()
           
 java.lang.String getPassword()
           
 java.lang.String getUrl()
           
 java.lang.String getUser()
           
 void setDatabaseName(java.lang.String databaseName)
           
 void setDriverClass(java.lang.Class<?> driverClass)
           
 void setName(java.lang.String name)
           
 void setPassword(java.lang.String password)
           
 void setUrl(java.lang.String url)
           
 void setUser(java.lang.String user)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_databaseName

public java.lang.String _databaseName
Constructor Detail

DatabaseFactory

public DatabaseFactory()
Method Detail

createBuilder

public static DatabaseFactory createBuilder()

setName

public void setName(java.lang.String name)

getName

public java.lang.String getName()

setDriverClass

public void setDriverClass(java.lang.Class<?> driverClass)

getDriverClass

public java.lang.Class<?> getDriverClass()

setUrl

public void setUrl(java.lang.String url)

getUrl

public java.lang.String getUrl()

setUser

public void setUser(java.lang.String user)

getUser

public java.lang.String getUser()

setPassword

public void setPassword(java.lang.String password)

getPassword

public java.lang.String getPassword()

setDatabaseName

public void setDatabaseName(java.lang.String databaseName)

getDatabaseName

public java.lang.String getDatabaseName()

create

public abstract javax.sql.DataSource create()