railo.runtime.db
Interface DataSource

All Superinterfaces:
Cloneable
All Known Subinterfaces:
DataSourcePro
All Known Implementing Classes:
ApplicationDataSource, DataSourceImpl, DataSourceSupport

public interface DataSource
extends Cloneable

interface for a datasource


Field Summary
static int ALLOW_ALL
          Field ALLOW_ALL
static int ALLOW_ALTER
          Field ALLOW_ALTER
static int ALLOW_CREATE
          Field ALLOW_CREATE
static int ALLOW_DELETE
          Field ALLOW_DELETE
static int ALLOW_DROP
          Field ALLOW_DROP
static int ALLOW_GRANT
          Field ALLOW_GRANT
static int ALLOW_INSERT
          Field ALLOW_INSERT
static int ALLOW_REVOKE
          Field ALLOW_REVOKE
static int ALLOW_SELECT
          Field ALLOW_SELECT
static int ALLOW_UPDATE
          Field ALLOW_UPDATE
 
Method Summary
 Object clone()
           
 DataSource cloneReadOnly()
           
 Class getClazz()
           
 int getConnectionLimit()
           
 int getConnectionTimeout()
           
 String[] getCustomNames()
           
 Struct getCustoms()
           
 String getCustomValue(String key)
           
 String getDatabase()
           
 String getDsnOriginal()
           
 String getDsnTranslated()
           
 String getHost()
           
 long getMetaCacheTimeout()
           
 String getName()
           
 String getPassword()
           
 int getPort()
           
 TimeZone getTimeZone()
           
 String getUsername()
           
 boolean hasAllow(int allow)
           
 boolean hasSQLRestriction()
           
 boolean isBlob()
           
 boolean isClob()
           
 boolean isReadOnly()
           
 boolean isStorage()
           
 void setClazz(Class clazz)
           
 boolean validate()
           
 

Field Detail

ALLOW_SELECT

static final int ALLOW_SELECT
Field ALLOW_SELECT

See Also:
Constant Field Values

ALLOW_DELETE

static final int ALLOW_DELETE
Field ALLOW_DELETE

See Also:
Constant Field Values

ALLOW_UPDATE

static final int ALLOW_UPDATE
Field ALLOW_UPDATE

See Also:
Constant Field Values

ALLOW_INSERT

static final int ALLOW_INSERT
Field ALLOW_INSERT

See Also:
Constant Field Values

ALLOW_CREATE

static final int ALLOW_CREATE
Field ALLOW_CREATE

See Also:
Constant Field Values

ALLOW_GRANT

static final int ALLOW_GRANT
Field ALLOW_GRANT

See Also:
Constant Field Values

ALLOW_REVOKE

static final int ALLOW_REVOKE
Field ALLOW_REVOKE

See Also:
Constant Field Values

ALLOW_DROP

static final int ALLOW_DROP
Field ALLOW_DROP

See Also:
Constant Field Values

ALLOW_ALTER

static final int ALLOW_ALTER
Field ALLOW_ALTER

See Also:
Constant Field Values

ALLOW_ALL

static final int ALLOW_ALL
Field ALLOW_ALL

See Also:
Constant Field Values
Method Detail

getDsnOriginal

String getDsnOriginal()
Returns:
Returns the dsn.

getDsnTranslated

String getDsnTranslated()
Returns:
Returns the dsn.

getPassword

String getPassword()
Returns:
Returns the password.

getUsername

String getUsername()
Returns:
Returns the username.

isReadOnly

boolean isReadOnly()
Returns:
Returns the readOnly.

hasAllow

boolean hasAllow(int allow)
Parameters:
allow -
Returns:
returns if given allow exists

getClazz

Class getClazz()
Returns:
Returns the clazz.

getDatabase

String getDatabase()
Returns:
Returns the database.

getPort

int getPort()
Returns:
Returns the port.

getHost

String getHost()
Returns:
Returns the host.

clone

Object clone()
Returns:
cloned Object

cloneReadOnly

DataSource cloneReadOnly()
Returns:
clone the DataSource as ReadOnly

isBlob

boolean isBlob()
Returns:
Returns the blob.

isClob

boolean isClob()
Returns:
Returns the clob.

getConnectionLimit

int getConnectionLimit()
Returns:
Returns the connectionLimit.

getConnectionTimeout

int getConnectionTimeout()
Returns:
Returns the connectionTimeout.

getMetaCacheTimeout

long getMetaCacheTimeout()

getTimeZone

TimeZone getTimeZone()

getCustomValue

String getCustomValue(String key)
Parameters:
key -
Returns:
Returns matching custom value or null if not exist.

getCustomNames

String[] getCustomNames()
Returns:
returns all custom names

getCustoms

Struct getCustoms()
Returns:
returns custom

hasSQLRestriction

boolean hasSQLRestriction()
Returns:
returns if database has a SQL restriction

getName

String getName()
Returns:
Returns the name.

setClazz

void setClazz(Class clazz)
Parameters:
clazz - The clazz to set.

isStorage

boolean isStorage()

validate

boolean validate()


Copyright © 2012 Railo