|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.zentense.step2.model.DBTableData
public class DBTableData
This class implements a pool of prepared statements with the database and is used for getting database tables metadata.
| Nested Class Summary | |
|---|---|
static class |
DBTableData.Table
Holds information of a table |
| Constructor Summary | |
|---|---|
DBTableData()
|
|
| Method Summary | |
|---|---|
static DBTableData.Table |
getTable(java.lang.String name)
Gets table information |
static java.lang.String[] |
getTableColumnNames(java.lang.String tableName,
java.sql.Connection db)
Get table column names |
static int[] |
getTableColumnTypes(java.lang.String tableName,
java.sql.Connection db)
Get column types of a table |
static void |
reset()
Resets table of prepared statements |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DBTableData()
| Method Detail |
|---|
public static final void reset()
public static final DBTableData.Table getTable(java.lang.String name)
name - Name of the table
public static final int[] getTableColumnTypes(java.lang.String tableName,
java.sql.Connection db)
throws java.lang.Exception
tableName - Table namedb - Database connection
java.lang.Exception - If there is an error accessing database
public static final java.lang.String[] getTableColumnNames(java.lang.String tableName,
java.sql.Connection db)
throws java.lang.Exception
tableName - Table namedb - Database connection
java.lang.Exception - If there is an error accessing database
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||