|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.iris.dmc.pdcc.container.PdccTableInfo
Reports characteristics of PDCC database tables and assists the linkage to Blockette object fields.
| Constructor Summary | |
PdccTableInfo(java.lang.String schemaFile)
Create an instance that describes the table characteristics represented in the indicated schema file. |
|
| Method Summary | |
int |
getBlocketteType(java.lang.String tableName)
return Blockette type associated with the indicated table name. |
java.util.Vector |
getChildTables(java.lang.String parentTableName)
return a vector of child table names mapped to the indicated parent table name |
int |
getCountField(java.lang.String tableName,
java.lang.String toTableName)
return the field number in tableName that refers to the count of toTableName records pointing to it. |
int[] |
getDKeyTableFields(java.lang.String tableName)
return an array of field numbers indicating database table fields, starting with field number 0, which are DKEY (database key) fields. |
java.lang.String |
getDKeyTableName(java.lang.String tableName,
int fieldNum)
return the dictionary table name that this field references, using the DKEY attribute keyword. |
java.lang.String |
getFieldName(java.lang.String tableName,
int fieldNum)
Get the name of the field for the indicated table and field number. |
java.util.Vector |
getFieldNames(java.lang.String tableName)
Get a vector of field names for the given table. |
java.lang.String |
getFieldType(java.lang.String tableName,
int fieldNum)
Get the data type of the indicated db field from the indicated db table. |
java.util.Vector |
getFKeyField(java.lang.String tableName)
return a vector of field numbers as Integers, each pertaining to a field with an FKEY reference to another table. |
int |
getFKeyField(java.lang.String tableName,
java.lang.String toTableName)
return the field number in tableName that refers to the primary key id of toTableName. |
java.util.Vector |
getFKeyNames(java.lang.String tableName)
return the table names of this table's FKEY fields. |
int |
getNumberFields(java.lang.String tableName)
Get the number of fields in the indicated table |
int |
getPKeyField(java.lang.String tableName)
return the field number, starting with 0 for the first field, that contains the Primary Key for a record in the indicated table. |
int |
getSeqField(java.lang.String tableName)
return the field number in tableName that contains a sequence number, used for maintaining list order of a set of related tables. |
java.lang.String |
getTableName(int blkType,
int blkFieldNum)
return the name of the table that maps to the indicated blockette type and blockette field number. |
java.util.Vector |
getTablesForBlockette(int blocketteType)
Get a vector of table names associated with the provided blockette type number. |
java.util.Vector |
getTableToBlocketteFields(java.lang.String tableName,
int blocketteType)
Returns a vector of Integers indicating the relationship of table fields to blockette fields. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PdccTableInfo(java.lang.String schemaFile)
throws java.lang.Exception
schemaFile - the schema file to be read and represented by this instance.
java.lang.Exception| Method Detail |
public java.util.Vector getFieldNames(java.lang.String tableName)
tableName - name of the table in question
public int getNumberFields(java.lang.String tableName)
tableName -
public java.lang.String getFieldName(java.lang.String tableName,
int fieldNum)
throws PdccDbException
tableName - name of the db tablefieldNum - db schema field number counting from 0
PdccDbException
public java.lang.String getFieldType(java.lang.String tableName,
int fieldNum)
throws PdccDbException
tableName - fieldNum - first fieldNum == 0
PdccDbException
public int getBlocketteType(java.lang.String tableName)
throws PdccDbException
PdccDbException
public java.util.Vector getTablesForBlockette(int blocketteType)
throws PdccDbException
blocketteType -
PdccDbException
public java.util.Vector getTableToBlocketteFields(java.lang.String tableName,
int blocketteType)
throws PdccDbException
tableName - the db table in questionblocketteType - the blockette type in question
PdccDbException
public int getPKeyField(java.lang.String tableName)
throws PdccDbException
PdccDbException
public java.util.Vector getFKeyNames(java.lang.String tableName)
throws PdccDbException
PdccDbException
public java.util.Vector getFKeyField(java.lang.String tableName)
throws PdccDbException
PdccDbException
public int getFKeyField(java.lang.String tableName,
java.lang.String toTableName)
throws PdccDbException
PdccDbException
public int getCountField(java.lang.String tableName,
java.lang.String toTableName)
throws PdccDbException
PdccDbException
public int getSeqField(java.lang.String tableName)
throws PdccDbException
PdccDbException
public java.lang.String getTableName(int blkType,
int blkFieldNum)
throws PdccDbException
PdccDbException
public int[] getDKeyTableFields(java.lang.String tableName)
throws PdccDbException
PdccDbException
public java.lang.String getDKeyTableName(java.lang.String tableName,
int fieldNum)
throws PdccDbException
PdccDbExceptionpublic java.util.Vector getChildTables(java.lang.String parentTableName)
parentTableName -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||