railo.runtime.db
Interface DataSource

All Superinterfaces:
java.lang.Cloneable

public interface DataSource
extends java.lang.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
 java.lang.Object clone()
           
 DataSource cloneReadOnly()
           
 java.lang.Class getClazz()
           
 int getConnectionLimit()
           
 int getConnectionTimeout()
           
 java.lang.String[] getCustomNames()
           
 Struct getCustoms()
           
 java.lang.String getCustomValue(java.lang.String key)
           
 java.lang.String getDatabase()
           
 java.lang.String getDsnOriginal()
           
 java.lang.String getDsnTranslated()
           
 java.lang.String getHost()
           
 java.lang.String getName()
           
 java.lang.String getPassword()
           
 int getPort()
           
 java.lang.String getUsername()
           
 boolean hasAllow(int allow)
           
 boolean hasSQLRestriction()
           
 boolean isBlob()
           
 boolean isClob()
           
 boolean isReadOnly()
           
 void setClazz(java.lang.Class clazz)
           
 

Field Detail

ALLOW_SELECT

public static final int ALLOW_SELECT
Field ALLOW_SELECT

See Also:
Constant Field Values

ALLOW_DELETE

public static final int ALLOW_DELETE
Field ALLOW_DELETE

See Also:
Constant Field Values

ALLOW_UPDATE

public static final int ALLOW_UPDATE
Field ALLOW_UPDATE

See Also:
Constant Field Values

ALLOW_INSERT

public static final int ALLOW_INSERT
Field ALLOW_INSERT

See Also:
Constant Field Values

ALLOW_CREATE

public static final int ALLOW_CREATE
Field ALLOW_CREATE

See Also:
Constant Field Values

ALLOW_GRANT

public static final int ALLOW_GRANT
Field ALLOW_GRANT

See Also:
Constant Field Values

ALLOW_REVOKE

public static final int ALLOW_REVOKE
Field ALLOW_REVOKE

See Also:
Constant Field Values

ALLOW_DROP

public static final int ALLOW_DROP
Field ALLOW_DROP

See Also:
Constant Field Values

ALLOW_ALTER

public static final int ALLOW_ALTER
Field ALLOW_ALTER

See Also:
Constant Field Values

ALLOW_ALL

public static final int ALLOW_ALL
Field ALLOW_ALL

See Also:
Constant Field Values
Method Detail

getDsnOriginal

public java.lang.String getDsnOriginal()
Returns:
Returns the dsn.

getDsnTranslated

public java.lang.String getDsnTranslated()
Returns:
Returns the dsn.

getPassword

public java.lang.String getPassword()
Returns:
Returns the password.

getUsername

public java.lang.String getUsername()
Returns:
Returns the username.

isReadOnly

public boolean isReadOnly()
Returns:
Returns the readOnly.

hasAllow

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

getClazz

public java.lang.Class getClazz()
Returns:
Returns the clazz.

getDatabase

public java.lang.String getDatabase()
Returns:
Returns the database.

getPort

public int getPort()
Returns:
Returns the port.

getHost

public java.lang.String getHost()
Returns:
Returns the host.

clone

public java.lang.Object clone()
Returns:
cloned Object

cloneReadOnly

public DataSource cloneReadOnly()
Returns:
clone the DataSource as ReadOnly

isBlob

public boolean isBlob()
Returns:
Returns the blob.

isClob

public boolean isClob()
Returns:
Returns the clob.

getConnectionLimit

public int getConnectionLimit()
Returns:
Returns the connectionLimit.

getConnectionTimeout

public int getConnectionTimeout()
Returns:
Returns the connectionTimeout.

getCustomValue

public java.lang.String getCustomValue(java.lang.String key)
Parameters:
key -
Returns:
Returns matching custom value or null if not exists.

getCustomNames

public java.lang.String[] getCustomNames()
Returns:
returns all custom names

getCustoms

public Struct getCustoms()
Returns:
returns custom

hasSQLRestriction

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

getName

public java.lang.String getName()
Returns:
Returns the name.

setClazz

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