cybergarage-upnp
org.cybergarage.sql.Database Class Referenceabstract
Inheritance diagram for org.cybergarage.sql.Database:
org.cybergarage.sql.mysql.MySQL org.cybergarage.upnp.std.av.server.directory.mythtv.MythDatabase

Public Member Functions

 Database ()
 
abstract boolean open (String host, String dbname, String user, String passwd)
 
void close ()
 
boolean query (String sql)
 
boolean fetch ()
 
String getString (String name)
 
String getString (int n)
 
int getInteger (String name)
 
int getInteger (int n)
 
long getLong (String name)
 
long getLong (int n)
 
long getTimestamp (String name)
 
long getTimestamp (int n)
 
long getDate (String name)
 
long getDate (int n)
 
int update (String sql)
 

Protected Member Functions

void setConnection (Connection c)
 

Private Member Functions

Connection getConnection ()
 
void setStatement (Statement s)
 
Statement getStatement ()
 
void setResultSet (ResultSet r)
 
ResultSet getResultSet ()
 

Private Attributes

Connection con
 
Statement stmt
 
ResultSet rs
 

Constructor & Destructor Documentation

◆ Database()

org.cybergarage.sql.Database.Database ( )
inline

Member Function Documentation

◆ close()

void org.cybergarage.sql.Database.close ( )
inline

◆ fetch()

boolean org.cybergarage.sql.Database.fetch ( )
inline

◆ getConnection()

Connection org.cybergarage.sql.Database.getConnection ( )
inlineprivate

◆ getDate() [1/2]

long org.cybergarage.sql.Database.getDate ( int n)
inline

◆ getDate() [2/2]

long org.cybergarage.sql.Database.getDate ( String name)
inline

◆ getInteger() [1/2]

int org.cybergarage.sql.Database.getInteger ( int n)
inline

◆ getInteger() [2/2]

int org.cybergarage.sql.Database.getInteger ( String name)
inline

◆ getLong() [1/2]

long org.cybergarage.sql.Database.getLong ( int n)
inline

◆ getLong() [2/2]

long org.cybergarage.sql.Database.getLong ( String name)
inline

◆ getResultSet()

ResultSet org.cybergarage.sql.Database.getResultSet ( )
inlineprivate

◆ getStatement()

Statement org.cybergarage.sql.Database.getStatement ( )
inlineprivate

◆ getString() [1/2]

String org.cybergarage.sql.Database.getString ( int n)
inline

◆ getString() [2/2]

String org.cybergarage.sql.Database.getString ( String name)
inline

◆ getTimestamp() [1/2]

long org.cybergarage.sql.Database.getTimestamp ( int n)
inline

◆ getTimestamp() [2/2]

long org.cybergarage.sql.Database.getTimestamp ( String name)
inline

◆ open()

abstract boolean org.cybergarage.sql.Database.open ( String host,
String dbname,
String user,
String passwd )
abstract

◆ query()

boolean org.cybergarage.sql.Database.query ( String sql)
inline

◆ setConnection()

void org.cybergarage.sql.Database.setConnection ( Connection c)
inlineprotected

◆ setResultSet()

void org.cybergarage.sql.Database.setResultSet ( ResultSet r)
inlineprivate

◆ setStatement()

void org.cybergarage.sql.Database.setStatement ( Statement s)
inlineprivate

◆ update()

int org.cybergarage.sql.Database.update ( String sql)
inline

Field Documentation

◆ con

Connection org.cybergarage.sql.Database.con
private

◆ rs

ResultSet org.cybergarage.sql.Database.rs
private

◆ stmt

Statement org.cybergarage.sql.Database.stmt
private

The documentation for this class was generated from the following file: