|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.spy.SpyObject
net.spy.db.FileDriver
public class FileDriver
| Nested Class Summary | |
|---|---|
static class |
FileDriver.AnyParamMatcher
Parameter matching instance that matches any parameter. |
static class |
FileDriver.ClassParamMatcher
Parameter matching instance that matches objects by class. |
static interface |
FileDriver.ParamMatcher
Parameter matching interface for fuzzy matches on query parameters. |
static interface |
FileDriver.Updater
Interface for registering updates. |
| Field Summary | |
|---|---|
static String |
URL_PREFIX
|
| Constructor Summary | |
|---|---|
FileDriver()
|
|
| Method Summary | |
|---|---|
boolean |
acceptsURL(String arg0)
|
void |
clearQueries()
Remove all mapped queries. |
Connection |
connect(String url,
Properties prop)
|
int |
getMajorVersion()
|
int |
getMinorVersion()
|
DriverPropertyInfo[] |
getPropertyInfo(String arg0,
Properties arg1)
|
boolean |
jdbcCompliant()
|
void |
registerQuery(String url,
DBSQL db,
Object[] args,
URL path)
Register the query(-ies) from the given DBSQL and args to a URL. |
void |
registerQuery(String url,
String s,
Object[] args,
URL f)
Register a ResultSet URL to a parameterized query. |
void |
registerQuery(String url,
String s,
URL f)
Register a query to URL mapping. |
void |
registerUpdate(String url,
DBSQL db,
Object[] args,
FileDriver.Updater u)
Register the update(s) from the given DBSQL and args to an updater. |
void |
registerUpdate(String url,
DBSQL db,
Object[] args,
int rv)
Register the update(s) from the given DBSQL and args to return an int. |
void |
registerUpdate(String url,
String s,
Object[] args,
FileDriver.Updater action)
Register an update action. |
void |
registerUpdate(String url,
String s,
Object[] args,
int rv)
Register a simple update that returns an int. |
| Methods inherited from class net.spy.SpyObject |
|---|
getLogger |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String URL_PREFIX
| Constructor Detail |
|---|
public FileDriver()
| Method Detail |
|---|
public void registerQuery(String url,
String s,
URL f)
url - JDBC URL to which this query appliess - the query stringf - the URL that will provide the results
public void registerQuery(String url,
String s,
Object[] args,
URL f)
url - JDBC URL to which this query appliess - the query stringargs - the argsf - the URL with the result set
public void registerQuery(String url,
DBSQL db,
Object[] args,
URL path)
url - JDBC URL to which this query appliesdb - the DBSQL instance.args - arguments to this querypath - the path of the results
public void registerUpdate(String url,
String s,
Object[] args,
FileDriver.Updater action)
url - JDBC URL to which this query appliess - the queryargs - the argsaction - the action to be performed upon this update
public void registerUpdate(String url,
DBSQL db,
Object[] args,
FileDriver.Updater u)
url - JDBC URL to which this query appliesdb - the DBSQL instanceargs - the arguments to the updateu - the updater
public void registerUpdate(String url,
DBSQL db,
Object[] args,
int rv)
url - JDBC URL to which this query appliesdb - the DBSQL instanceargs - the arguments to the updaterv - the return value
public void registerUpdate(String url,
String s,
Object[] args,
int rv)
url - JDBC URL to which this query appliess - the queryargs - the argsrv - the value that should be returned from this updatepublic void clearQueries()
public Connection connect(String url,
Properties prop)
throws SQLException
connect in interface DriverSQLException
public boolean acceptsURL(String arg0)
throws SQLException
acceptsURL in interface DriverSQLException
public DriverPropertyInfo[] getPropertyInfo(String arg0,
Properties arg1)
throws SQLException
getPropertyInfo in interface DriverSQLExceptionpublic int getMajorVersion()
getMajorVersion in interface Driverpublic int getMinorVersion()
getMinorVersion in interface Driverpublic boolean jdbcCompliant()
jdbcCompliant in interface Driver
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||