|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--ajax.wrappers.WrapperManager
| Field Summary | |
static int |
FILE_TABLE
|
static int |
JDBC_TABLE
|
| Method Summary | |
void |
close()
closes all statements used by WrapperManager |
boolean |
close(java.lang.String tableName)
closes a wrapper |
void |
createTable(java.lang.String createQuery,
int type)
Create a table with query and type given in argument. |
int |
executeInJdbcUpdate(java.lang.String query)
force execution of an update in jdbc. |
java.sql.ResultSet |
executeQuery(java.lang.String query)
Execute a SQL query. |
int |
executeUpdate(java.lang.String sql)
Execute a sql update |
static WrapperManager |
getWrapperManager()
Get unique instance. |
static void |
main(java.lang.String[] args)
|
void |
openTable(java.lang.String tableName,
int type)
Open an existing table. |
Wrapper |
wrapper(java.lang.String tableName)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int JDBC_TABLE
public static final int FILE_TABLE
| Method Detail |
public Wrapper wrapper(java.lang.String tableName)
public static WrapperManager getWrapperManager()
public void createTable(java.lang.String createQuery,
int type)
throws WrapperException
createQuery - SQL CREATE querytype - type of table
public void openTable(java.lang.String tableName,
int type)
throws WrapperException
tableName - table name (file or jdbc)type - type of table
public int executeInJdbcUpdate(java.lang.String query)
throws java.sql.SQLException
query - SQL updateStatement.executeUpdate(String)
public java.sql.ResultSet executeQuery(java.lang.String query)
throws java.sql.SQLException
query - SQL SELECT query
public int executeUpdate(java.lang.String sql)
throws WrapperException
sql - SQL INSERT queryStatement.executeUpdate(String)
public void close()
throws WrapperException
public boolean close(java.lang.String tableName)
throws java.sql.SQLException
tableName - name of wrapper (so table name)Wrapper.close()
public static void main(java.lang.String[] args)
throws java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||