coldbox.system.core.db

Class DatasourceBean

WEB-INF.cftags.component
        extended by coldbox.system.core.db.DatasourceBean
Class Attributes:
  • output : false
  •  

    I model a datasource connection setting.

    Constructor Summary
    init([struct datasourceStruct='[runtime expression]'])
          I build a new datasource bean.
    Method Summary
    string getAlias()
         Get the alias.
    string getDBType()
         Get DBType.
    any getMemento()
         Get the memento.
    string getName()
         Get the name.
    string getPassword()
         Get Password.
    string getUsername()
         Get Username.
    void setAlias(string alias)
         Set alias of the datasource, this is used for reference to the structure.
    void setDBType(string dbtype)
         Set DBType.
    void setMemento(struct memento)
         Set the memento.
    void setName(string name)
         Set name of the datasource, this maps to the Coldfusion datasource name.
    void setPassword(string Password)
         Set Password.
    void setUsername(string Username)
         Set Username.
     
    Methods inherited from class WEB-INF.cftags.component
    None

    Constructor Detail

    init

    public init([struct datasourceStruct='[runtime expression]'])

    I build a new datasource bean.

    Parameters:
    datasourceStruct - The structure holding the name,dbtype,username,and password variables.

    Method Detail

    getAlias

    public string getAlias()

    Get the alias


    getDBType

    public string getDBType()

    Get DBType


    getMemento

    public any getMemento()

    Get the memento


    getName

    public string getName()

    Get the name


    getPassword

    public string getPassword()

    Get Password


    getUsername

    public string getUsername()

    Get Username


    setAlias

    public void setAlias(string alias)

    Set alias of the datasource, this is used for reference to the structure.

    Parameters:
    alias

    setDBType

    public void setDBType(string dbtype)

    Set DBType

    Parameters:
    dbtype

    setMemento

    public void setMemento(struct memento)

    Set the memento

    Parameters:
    memento

    setName

    public void setName(string name)

    Set name of the datasource, this maps to the Coldfusion datasource name

    Parameters:
    name

    setPassword

    public void setPassword(string Password)

    Set Password

    Parameters:
    Password

    setUsername

    public void setUsername(string Username)

    Set Username

    Parameters:
    Username