railo.runtime.db
Class ApplicationDataSource
java.lang.Object
railo.runtime.db.DataSourceSupport
railo.runtime.db.ApplicationDataSource
- All Implemented Interfaces:
- Cloneable, DataSource, DataSourcePro
public class ApplicationDataSource
- extends DataSourceSupport
Method Summary |
DataSource |
cloneReadOnly()
|
String |
getConnectionString()
|
String |
getConnectionStringTranslated()
|
String[] |
getCustomNames()
|
Struct |
getCustoms()
|
String |
getCustomValue(String key)
|
String |
getDatabase()
|
String |
getDsnOriginal()
|
String |
getDsnTranslated()
|
String |
getHost()
|
static DataSource |
getInstance(String name,
String className,
String connStr,
String username,
String password,
boolean blob,
boolean clob,
int connectionLimit,
int connectionTimeout,
long metaCacheTimeout,
TimeZone timezone,
int allow,
boolean storage,
boolean readOnly)
|
int |
getPort()
|
boolean |
validate()
|
Methods inherited from class railo.runtime.db.DataSourceSupport |
clone, equals, getClazz, getConnectionLimit, getConnectionTimeout, getMetaCacheTimeout, getName, getPassword, getProcedureColumnCache, getTimeZone, getUsername, hasAllow, hasSQLRestriction, id, isBlob, isClob, isReadOnly, isStorage, setClazz, toClass, toString |
getInstance
public static DataSource getInstance(String name,
String className,
String connStr,
String username,
String password,
boolean blob,
boolean clob,
int connectionLimit,
int connectionTimeout,
long metaCacheTimeout,
TimeZone timezone,
int allow,
boolean storage,
boolean readOnly)
throws ClassException
- Throws:
ClassException
getDsnOriginal
public String getDsnOriginal()
- Returns:
- Returns the dsn.
getConnectionString
public String getConnectionString()
- Returns:
- Returns the connection string with NOT replaced placeholders.
getDsnTranslated
public String getDsnTranslated()
- Returns:
- Returns the dsn.
getConnectionStringTranslated
public String getConnectionStringTranslated()
- Returns:
- Returns the connection string with replaced placeholders.
getDatabase
public String getDatabase()
- Returns:
- Returns the database.
getPort
public int getPort()
- Returns:
- Returns the port.
getHost
public String getHost()
- Returns:
- Returns the host.
cloneReadOnly
public DataSource cloneReadOnly()
- Returns:
- clone the DataSource as ReadOnly
getCustomValue
public String getCustomValue(String key)
- Returns:
- Returns matching custom value or null if not exist.
getCustomNames
public String[] getCustomNames()
- Returns:
- returns all custom names
getCustoms
public Struct getCustoms()
- Returns:
- returns custom
validate
public boolean validate()
Copyright © 2012 Railo