|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjxtray.connection.JxtConnection
Constructor Summary | |
JxtConnection(JxtConnectionParam param,
java.lang.String driverName)
Constructor |
Method Summary | |
void |
close()
Close connection |
void |
connect()
Establish connection with the server |
void |
finalize()
Memory Managnement |
java.lang.String[] |
getCatalogs()
|
java.sql.Connection |
getConnection()
|
java.lang.String |
getDriverName()
|
JxtConnectionParam |
getJxtConnectionParam()
|
java.sql.DatabaseMetaData |
getMetaData()
|
java.lang.String |
getName()
Return the connection name |
java.util.Properties |
getProperties()
|
java.lang.String[] |
getSchemas()
|
java.util.Vector |
getTables(java.lang.String catalog,
java.lang.String schema)
|
boolean |
isConnected()
Return true if connection is active |
boolean |
isVisible()
|
java.sql.ResultSet |
select(java.lang.String query)
Execute the function executeQuery from Statement class |
void |
setConnection(java.sql.Connection connection)
Initialize Connection object |
void |
setDebug(boolean debug)
|
void |
setDriverName(java.lang.String driverName)
|
void |
setJxtConnectionParam(JxtConnectionParam jxtConnectionParam)
|
void |
setVisible(boolean visible)
|
void |
update(java.lang.String query)
Execute the function executeUpdate from Statement class |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JxtConnection(JxtConnectionParam param, java.lang.String driverName)
Method Detail |
public void setDebug(boolean debug)
public void close() throws java.sql.SQLException
java.sql.SQLException
public boolean isVisible()
public void setVisible(boolean visible)
public void connect() throws java.sql.SQLException, java.lang.ClassNotFoundException
java.sql.SQLException
java.lang.ClassNotFoundException
public java.sql.ResultSet select(java.lang.String query) throws java.sql.SQLException
java.sql.SQLException
public void update(java.lang.String query) throws java.sql.SQLException
java.sql.SQLException
public boolean isConnected()
public java.sql.Connection getConnection()
public void setConnection(java.sql.Connection connection)
connection
- public void finalize()
public JxtConnectionParam getJxtConnectionParam()
public void setJxtConnectionParam(JxtConnectionParam jxtConnectionParam)
jxtConnectionParam
- public java.lang.String getName()
public java.lang.String getDriverName()
public void setDriverName(java.lang.String driverName)
driverName
- public java.util.Properties getProperties() throws java.sql.SQLException
java.sql.SQLException
public java.lang.String[] getCatalogs() throws java.lang.Exception
java.lang.Exception
public java.lang.String[] getSchemas() throws java.lang.Exception
java.lang.Exception
public java.sql.DatabaseMetaData getMetaData() throws java.lang.Exception
java.lang.Exception
public java.util.Vector getTables(java.lang.String catalog, java.lang.String schema) throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |