|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthenplus.SQLSession
public class SQLSession
a SQL session.
Constructor Summary | |
---|---|
SQLSession(String url,
String user,
String password)
creates a new SQL session. |
Method Summary | |
---|---|
void |
close()
|
void |
connect()
|
Statement |
createStatement()
|
Connection |
getConnection()
returns the current connection of this session. |
String |
getDatabaseInfo()
|
SQLMetaData |
getMetaData(SortedSet tableNames)
|
PropertyRegistry |
getPropertyRegistry()
|
long |
getStatementCount()
|
Table |
getTable(String tableName)
|
long |
getUptime()
|
String |
getURL()
|
String |
getUsername()
return username, if known. |
void |
interrupt()
|
void |
print(String msg)
|
void |
println(String msg)
|
boolean |
printMessages()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SQLSession(String url, String user, String password) throws IllegalArgumentException, ClassNotFoundException, SQLException, IOException
IllegalArgumentException
ClassNotFoundException
SQLException
IOException
Method Detail |
---|
public PropertyRegistry getPropertyRegistry()
public String getDatabaseInfo()
public String getURL()
public SQLMetaData getMetaData(SortedSet tableNames)
public Table getTable(String tableName)
public boolean printMessages()
public void print(String msg)
public void println(String msg)
public void connect() throws SQLException, IOException
SQLException
IOException
public void interrupt()
interrupt
in interface Interruptable
public String getUsername()
public long getUptime()
public long getStatementCount()
public void close()
public Connection getConnection()
public Statement createStatement()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |