applications.basics
Class t_connect

java.lang.Object
  extended by applications.basics.t_connect

public class t_connect
extends java.lang.Object


Field Summary
 java.sql.Connection con
           
 java.lang.String excpt
           
 java.lang.String iJDBC
           
 java.lang.String iURL
           
 java.sql.Statement stmt
           
 java.lang.String url
           
 
Constructor Summary
t_connect(java.sql.Connection con)
           
t_connect(java.lang.String ds)
           
t_connect(java.lang.String host, java.lang.String user, java.lang.String password, java.lang.String database)
          connect to the Database:
 
Method Summary
 boolean acceptsConnection()
           
 void close()
           
 void closeCon()
           
protected  void finalize()
           
 java.sql.Connection getCon()
          Get the value of con.
 java.lang.String getDatabase()
          Get the value of database.
 java.lang.String getError()
           
 java.lang.String getHost()
          Get the value of host.
 java.lang.String getPassword()
          Get the value of password.
 TConnectProperties getProp()
          Get the value of prop.
 java.sql.Statement getStmt()
          Get the value of stmt.
 java.lang.String getUser()
          Get the value of user.
 java.lang.String getVersion()
           
 void init()
           
 boolean isClosed()
           
static void main(java.lang.String[] args)
           
 void setCon(java.sql.Connection v)
          Set the value of con.
 void setDatabase(java.lang.String v)
          Set the value of database.
 void setHost(java.lang.String v)
          Set the value of host.
 void setPassword(java.lang.String v)
          Set the value of password.
 void setProp(TConnectProperties v)
          Set the value of prop.
 void setStmt(java.sql.Statement v)
          Set the value of stmt.
 void setUser(java.lang.String v)
          Set the value of user.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

stmt

public java.sql.Statement stmt

con

public java.sql.Connection con

excpt

public java.lang.String excpt

iJDBC

public java.lang.String iJDBC

iURL

public java.lang.String iURL

url

public java.lang.String url
Constructor Detail

t_connect

public t_connect(java.lang.String host,
                 java.lang.String user,
                 java.lang.String password,
                 java.lang.String database)
connect to the Database:


t_connect

public t_connect(java.sql.Connection con)

t_connect

public t_connect(java.lang.String ds)
Method Detail

getVersion

public java.lang.String getVersion()

getStmt

public java.sql.Statement getStmt()
Get the value of stmt.

Returns:
value of stmt.

setStmt

public void setStmt(java.sql.Statement v)
Set the value of stmt.

Parameters:
v - Value to assign to stmt.

getCon

public java.sql.Connection getCon()
Get the value of con.

Returns:
value of con.

setCon

public void setCon(java.sql.Connection v)
Set the value of con.

Parameters:
v - Value to assign to con.

getHost

public java.lang.String getHost()
Get the value of host.

Returns:
value of host.

setHost

public void setHost(java.lang.String v)
Set the value of host.

Parameters:
v - Value to assign to host.

getUser

public java.lang.String getUser()
Get the value of user.

Returns:
value of user.

setUser

public void setUser(java.lang.String v)
Set the value of user.

Parameters:
v - Value to assign to user.

getPassword

public java.lang.String getPassword()
Get the value of password.

Returns:
value of password.

setPassword

public void setPassword(java.lang.String v)
Set the value of password.

Parameters:
v - Value to assign to password.

getDatabase

public java.lang.String getDatabase()
Get the value of database.

Returns:
value of database.

setDatabase

public void setDatabase(java.lang.String v)
Set the value of database.

Parameters:
v - Value to assign to database.

getProp

public TConnectProperties getProp()
Get the value of prop.

Returns:
value of prop.

setProp

public void setProp(TConnectProperties v)
Set the value of prop.

Parameters:
v - Value to assign to prop.

init

public void init()

acceptsConnection

public boolean acceptsConnection()

isClosed

public boolean isClosed()

close

public void close()

closeCon

public void closeCon()

getError

public java.lang.String getError()

finalize

protected void finalize()
Overrides:
finalize in class java.lang.Object

main

public static void main(java.lang.String[] args)