|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.suse.lib.sqlmap.drivers.GenericDriver
public abstract class GenericDriver
Base driver operator.
Field Summary | |
---|---|
protected ConnectionCallback |
callback
|
protected java.sql.Connection |
connection
|
Constructor Summary | |
---|---|
GenericDriver(java.sql.Connection conn)
Create connection directly from already opened connection. |
|
GenericDriver(java.lang.String url)
Create a connection from an URL. |
Method Summary | |
---|---|
void |
close()
|
GenericDriver |
connect(java.lang.String user,
java.lang.String password)
Connect to the database. |
java.sql.Connection |
getConnection()
|
protected java.lang.String |
getDatabase()
|
protected java.lang.String |
getHost()
|
protected java.lang.String |
getPort()
|
protected java.lang.String |
getUrl()
|
boolean |
isConnected()
Check if driver is connected at the moment. |
protected void |
parseURL()
Parse URL for connect. |
void |
setConnectionCallback(ConnectionCallback callback)
|
protected void |
setDatabase(java.lang.String database)
|
protected void |
setHost(java.lang.String host)
|
protected void |
setPort(java.lang.String port)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.sql.Connection connection
protected ConnectionCallback callback
Constructor Detail |
---|
public GenericDriver(java.sql.Connection conn)
conn
- public GenericDriver(java.lang.String url) throws java.net.URISyntaxException, java.sql.SQLException, java.lang.Exception
url
-
java.net.URISyntaxException
java.sql.SQLException
java.lang.Exception
Method Detail |
---|
protected void parseURL() throws java.sql.SQLException
java.sql.SQLException
public GenericDriver connect(java.lang.String user, java.lang.String password) throws java.lang.Exception
connect
in interface DBConnectionDriver
java.lang.Exception
public boolean isConnected()
isConnected
in interface DBConnectionDriver
protected java.lang.String getDatabase()
protected void setDatabase(java.lang.String database)
protected java.lang.String getHost()
protected void setHost(java.lang.String host)
protected java.lang.String getPort()
protected void setPort(java.lang.String port)
protected java.lang.String getUrl()
public void close()
close
in interface DBConnectionDriver
public java.sql.Connection getConnection()
getConnection
in interface DBConnectionDriver
public void setConnectionCallback(ConnectionCallback callback)
setConnectionCallback
in interface DBConnectionDriver
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |