|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
DB_MySQL
This class represents the entity of a MySQL database connection. One can query, connect, etc. It also provides static functions that allow one to create connections and process queries.
| Constructor Summary | |
DB_MySQL(var $name,
var $password,
var $dbName,
var $server)
Constructs a DB_MySQL. |
|
| Method Summary | |
static int |
connect(var $name,
var $password,
var $server)
Creates a database connection. |
int |
getDB()
Returns a reference to the database handler. |
boolean |
getStatus()
Returns of the status of the database. |
static java.lang.String[] |
query(var $query,
var $db)
Queries the database link. |
void |
select(var $dbName)
Selects a database to use for the object's database link. |
| Constructor Detail |
public DB_MySQL(var $name,
var $password,
var $dbName,
var $server)
$name - String specifying login$password - String specifying password$dbName - String specifying database name$server - String specifying server$dbName - Default Value: ""$server - Default Value: "localhost"| Method Detail |
public static int connect(var $name,
var $password,
var $server)
$name - String specifying login$password - String specifying password$server - String specifying server to use$server - Default Value: "localhost"
public static java.lang.String[] query(var $query,
var $db)
$query - String specifying the SQL query$db - int specifying the database link$db - Default Value: ""public void select(var $dbName)
$dbName - String specifying the database to usepublic int getDB()
public boolean getStatus()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||