Transfer version 1.1

transfer.com.sql
Class Datasource

WEB-INF.cftags.component
        extended by transfer.com.sql.Datasource
Direct Known Subclasses:
Datasource

public class Datasource
extends WEB-INF.cftags.component

Datasource Bean


Constructor Summary
init()
          Constructor
 
Method Summary
private any getConnection()
          Returns a java.sql.Connection
private string getDataBaseProductName()
          retrience the database product name
 string getDatabaseType()
 string getName()
 string getPassword()
 string getUserName()
private string queryDatabaseType()
          Returns string value of the db type. Current values are: mssql, mysql
private void setDatabaseType(string DatabaseType)
 void setMemento(struct memento)
          Sets the state of the object
private void setName(string Name)
private void setPassword(string Password)
private void setUserName(string UserName)
private any throw(string type, string message, [string detail=''])
          Throws an Exception
 
Methods inherited from class WEB-INF.cftags.component
 

Constructor Detail

init

public init()
Constructor

Method Detail

getConnection

private any getConnection()
Returns a java.sql.Connection


getDataBaseProductName

private string getDataBaseProductName()
retrience the database product name


getDatabaseType

public string getDatabaseType()


getName

public string getName()


getPassword

public string getPassword()


getUserName

public string getUserName()


queryDatabaseType

private string queryDatabaseType()
Returns string value of the db type. Current values are: mssql, mysql


setDatabaseType

private void setDatabaseType(string DatabaseType)

Parameters:
DatabaseType

setMemento

public void setMemento(struct memento)
Sets the state of the object

Parameters:
memento - The memento the is the state of the object

setName

private void setName(string Name)

Parameters:
Name

setPassword

private void setPassword(string Password)

Parameters:
Password

setUserName

private void setUserName(string UserName)

Parameters:
UserName

throw

private any throw(string type, string message, [string detail=''])
Throws an Exception

Parameters:
type - The type of exception
message - The message to accompany the exception
detail - The detail message for the exception

Transfer version 1.1