java.lang.Objectorg.objectweb.telosys.dal.metadata.DbMetaData
This Class allow user to access Metadata from a Database.
Constructor Summary | |
DbMetaData()
|
Method Summary | |
static DbColumn |
getColumn(java.lang.String columnName,
DbTable table)
Return the column, specified by columnName, of the indicated table from the current Database |
static DbColumn |
getColumn(java.lang.String columnName,
DbTable table,
java.sql.Connection con)
Return the column, specified by columnName, of the indicated table from the specified Database |
static DbColumn |
getColumn(java.lang.String columnName,
DbTable table,
DatabaseSession session)
Return the column, specified by columnName, of the indicated table from the specified Database |
static DbColumn |
getColumn(java.lang.String columnName,
DbTable table,
int iDatabaseId)
Return the column, specified by columnName, of the indicated table from the specified Database |
static DbColumn[] |
getColumns(DbTable table)
Return all columns of the indicated DbTable table, on the current DataBase |
static DbColumn[] |
getColumns(DbTable table,
java.sql.Connection con)
Return all columns of the indicated DbTable table, on the specified DataBase |
static DbColumn[] |
getColumns(DbTable table,
DatabaseSession session)
Return all columns of the indicated DbTable table, on the specified DataBase |
static DbColumn[] |
getColumns(DbTable table,
int iDatabaseId)
Return all columns of the indicated DbTable table, on the specified DataBase |
static java.sql.DatabaseMetaData |
getMetaData()
Return MetaData about the current DataBase |
static java.sql.DatabaseMetaData |
getMetaData(java.sql.Connection con)
Return MetaData about the DataBase identify by her Connection con |
static java.sql.DatabaseMetaData |
getMetaData(DatabaseSession session)
Return MetaData about the DataBase identify by the session's connection |
static java.sql.DatabaseMetaData |
getMetaData(int iDatabaseId)
Return MetaData about the DataBase identify by her id iDatabaseId |
static java.lang.String[] |
getSchemas()
Return all Schemas of the current DataBase |
static java.lang.String[] |
getSchemas(java.sql.Connection con)
Return all Schemas of the DataBase identify by her Connection |
static java.lang.String[] |
getSchemas(DatabaseSession session)
Return all Schemas of the DataBase identify by the session's connection |
static java.lang.String[] |
getSchemas(int iDatabaseId)
Return all Schemas of the DataBase identify by her id iDatabaseId |
static DbTable |
getTable(java.lang.String tableName)
Return the table, specified by tableName from the current Database |
static DbTable |
getTable(java.lang.String tableName,
java.sql.Connection con)
Return the table, specified by tableName from the specified Database |
static DbTable |
getTable(java.lang.String tableName,
DatabaseSession session)
Return the table, specified by tableName from the specified Database |
static DbTable |
getTable(java.lang.String tableName,
int iDatabaseId)
Return the table, specified by tableName from the specified Database |
static DbTable[] |
getTables()
Return all information about the tables in the current DataBase. |
static DbTable[] |
getTables(java.sql.Connection con)
Return all information about the tables in the DataBase identify by the connection |
static DbTable[] |
getTables(DatabaseSession session)
Return all information about the tables in the DataBase identify by the session's connection |
static DbTable[] |
getTables(int iDatabaseId)
Return all information about the tables in the DataBase identify by the given id |
static DbTable[] |
getTables(java.lang.String sCatalog,
java.lang.String sSchema,
java.lang.String tableName,
java.lang.String[] arrayTableTypes)
Return all information about the tables identify by Catalog, Schema, tableName or/and Type in the current DataBase |
static DbTable[] |
getTables(java.lang.String sCatalog,
java.lang.String sSchema,
java.lang.String tableName,
java.lang.String[] arrayTableTypes,
java.sql.Connection con)
Return all information about the tables identify by Catalog, Schema, tableName or/and Type in the DataBase identify by her Connection con |
static DbTable[] |
getTables(java.lang.String sCatalog,
java.lang.String sSchema,
java.lang.String tableName,
java.lang.String[] arrayTableTypes,
DatabaseSession session)
Return all information about the tables identify by Catalog, Schema, tableName or/and Type in the DataBase identify by the session's connection |
static DbTable[] |
getTables(java.lang.String sCatalog,
java.lang.String sSchema,
java.lang.String tableName,
java.lang.String[] arrayTableTypes,
int iDatabaseId)
Return all information about the tables identify by Catalog, Schema, tableName or/and Type in the DataBase identify by her id iDatabaseId |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DbMetaData()
Method Detail |
public static DbTable[] getTables() throws TelosysException
TelosysException
public static DbTable[] getTables(int iDatabaseId) throws TelosysException
iDatabaseId
-
TelosysException
public static DbTable[] getTables(java.sql.Connection con) throws TelosysException
con
-
TelosysException
public static DbTable[] getTables(DatabaseSession session) throws TelosysException
session
-
TelosysException
public static DbTable[] getTables(java.lang.String sCatalog, java.lang.String sSchema, java.lang.String tableName, java.lang.String[] arrayTableTypes) throws TelosysException
sCatalog
- sSchema
- tableName
- arrayTableTypes
-
TelosysException
public static DbTable[] getTables(java.lang.String sCatalog, java.lang.String sSchema, java.lang.String tableName, java.lang.String[] arrayTableTypes, int iDatabaseId) throws TelosysException
sCatalog
- sSchema
- tableName
- arrayTableTypes
- iDatabaseId
-
TelosysException
public static DbTable[] getTables(java.lang.String sCatalog, java.lang.String sSchema, java.lang.String tableName, java.lang.String[] arrayTableTypes, java.sql.Connection con) throws TelosysException
sCatalog
- sSchema
- tableName
- arrayTableTypes
- con
-
TelosysException
public static DbTable[] getTables(java.lang.String sCatalog, java.lang.String sSchema, java.lang.String tableName, java.lang.String[] arrayTableTypes, DatabaseSession session) throws TelosysException
sCatalog
- sSchema
- tableName
- arrayTableTypes
- session
-
TelosysException
public static DbTable getTable(java.lang.String tableName) throws TelosysException
tableName
-
TelosysException
public static DbTable getTable(java.lang.String tableName, int iDatabaseId) throws TelosysException
tableName
- iDatabaseId
-
TelosysException
public static DbTable getTable(java.lang.String tableName, java.sql.Connection con) throws TelosysException
tableName
- con
-
TelosysException
public static DbTable getTable(java.lang.String tableName, DatabaseSession session) throws TelosysException
tableName
- session
-
TelosysException
public static java.sql.DatabaseMetaData getMetaData() throws TelosysException
TelosysException
public static java.sql.DatabaseMetaData getMetaData(int iDatabaseId) throws TelosysException
iDatabaseId
-
TelosysException
public static java.sql.DatabaseMetaData getMetaData(java.sql.Connection con) throws TelosysException
con
-
TelosysException
public static java.sql.DatabaseMetaData getMetaData(DatabaseSession session) throws TelosysException
session
-
TelosysException
public static java.lang.String[] getSchemas() throws TelosysException, java.sql.SQLException
TelosysException
java.sql.SQLException
public static java.lang.String[] getSchemas(int iDatabaseId) throws TelosysException
TelosysException
public static java.lang.String[] getSchemas(java.sql.Connection con) throws TelosysException
TelosysException
public static java.lang.String[] getSchemas(DatabaseSession session) throws TelosysException
TelosysException
public static DbColumn[] getColumns(DbTable table) throws TelosysException
table
-
TelosysException
public static DbColumn[] getColumns(DbTable table, int iDatabaseId) throws TelosysException
table
-
TelosysException
public static DbColumn[] getColumns(DbTable table, java.sql.Connection con) throws TelosysException
table
-
TelosysException
public static DbColumn[] getColumns(DbTable table, DatabaseSession session) throws TelosysException
table
-
TelosysException
public static DbColumn getColumn(java.lang.String columnName, DbTable table) throws TelosysException
columnName
- table
-
TelosysException
public static DbColumn getColumn(java.lang.String columnName, DbTable table, int iDatabaseId) throws TelosysException
columnName
- table
- iDatabaseId
-
TelosysException
public static DbColumn getColumn(java.lang.String columnName, DbTable table, java.sql.Connection con) throws TelosysException
columnName
- table
- con
-
TelosysException
public static DbColumn getColumn(java.lang.String columnName, DbTable table, DatabaseSession session) throws TelosysException
columnName
- table
- session
-
TelosysException