|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object toolbox.dao.MetaDataHelper
public class MetaDataHelper
Convenience class containing methods to return meta data from a database connection.
Constructor Summary | |
---|---|
MetaDataHelper(java.sql.Connection conn)
Construct a new helper with the given connection. |
Method Summary | |
---|---|
void |
destroy()
Destroy this helper |
java.util.List |
getColumns(java.lang.String table)
Returns a list of column descriptions for a specific table. |
static void |
main(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MetaDataHelper(java.sql.Connection conn) throws java.sql.SQLException
conn
- Database connection
java.sql.SQLException
Method Detail |
---|
public java.util.List getColumns(java.lang.String table) throws java.sql.SQLException
The HashMap contains the following keys:
table
- Table name.
java.sql.SQLException
public void destroy() throws java.sql.SQLException
java.sql.SQLException
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |