|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jfw.database.metadata.MetaData com.jfw.database.metadata.TablesViews
public abstract class TablesViews
Common methods for get tables or views.
Field Summary |
---|
Fields inherited from class com.jfw.database.metadata.MetaData |
---|
className, resourceName, TABLE, VIEW |
Constructor Summary | |
---|---|
TablesViews()
Use the default db resource from the jfw.properties. |
|
TablesViews(java.lang.String resourceName)
Use the parameter resourceName as db resource. |
Method Summary | |
---|---|
java.util.ArrayList |
get(java.lang.String catalogName,
java.lang.String schemaName)
Get the table or view names from a database schema. |
java.util.ArrayList |
getColumns(java.lang.String tableName)
Get the columns names of a table. |
java.util.ArrayList |
getForeignKeys(java.lang.String tableName)
Get the primary keys of a table. |
java.util.ArrayList |
getPrimaryKeys(java.lang.String tableName)
Get the primary keys of a table. |
Methods inherited from class com.jfw.database.metadata.MetaData |
---|
getType |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TablesViews()
public TablesViews(java.lang.String resourceName)
resourceName
- the name of a resource as specified in the jfw.properties.Method Detail |
---|
public java.util.ArrayList get(java.lang.String catalogName, java.lang.String schemaName) throws DatabaseException
catalogName
- the catalog name to which the object belong.schemaName
- the schema name to which the object belong.
DatabaseException
public java.util.ArrayList getColumns(java.lang.String tableName) throws DatabaseException
tableName
- the table name to which the fields belong.
DatabaseException
public java.util.ArrayList getPrimaryKeys(java.lang.String tableName) throws DatabaseException
tableName
- the table name to which the fields belong.
DatabaseException
public java.util.ArrayList getForeignKeys(java.lang.String tableName) throws DatabaseException
tableName
- the table name to which the fields belong.
DatabaseException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |