|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectplanetj.database.fielddescriptors.FieldDescriptorManager
Field Summary |
Constructor Summary | |
FieldDescriptorManager()
|
Method Summary | |
static void |
addFD(FieldDescriptorRow pFD)
Adds the FieldDescriptor to the internal store |
static void |
addFD(FieldDescriptorRow pFD,
boolean pReplace)
Add Field Descriptors for this table, optionally replace existing field descriptors. |
static void |
addFD(FieldDescriptorRow pFD,
Table pTable)
Removes all FieldDescriptors for all systems. |
static void |
addFD(FieldDescriptorRow pFD,
Table pTable,
boolean pReplace)
Removes all FieldDescriptors for all systems. |
static void |
addFDs(java.util.List pFDs)
Removes all FieldDescriptors for all systems. |
static void |
addFDs(java.util.List pFDs,
boolean pReplace)
Removes all FieldDescriptors for all systems. |
static void |
addFDs(java.util.List pFDs,
Table pTable)
Removes all FieldDescriptors for all systems. |
static void |
addFDs(java.util.List pFDs,
Table pTable,
boolean pReplace)
Sets the FD's for a table |
static void |
addFDs(RowCollection pFDRows)
Add field descriptors. |
static void |
addFDs(RowCollection pFDRows,
boolean pReplace)
Add field descriptors. |
static void |
addFDs(RowCollection pFDRows,
Table pTable)
Add field descriptors. |
static void |
addFDs(RowCollection pFDRows,
Table pTable,
boolean pReplace)
Add field descriptors. |
static void |
clearFieldDescriptors()
Removes all FieldDescriptors for all systems. |
static FieldDescriptorCollection |
clearFieldDescriptors(Table table)
Removes all FieldDescriptors for all systems. |
static void |
clearFieldDescriptorsForSystem(java.lang.String systemAlias)
Removes all field descriptors for the specified system from the FD cache |
static FieldDescriptorRow |
createFDFromDBMetaData(java.sql.Connection pConnection,
Field pField)
Create a field descriptor for the specified field name in the table from the given connection. |
static FieldDescriptorRow |
createFDFromDBMetaData(java.sql.Connection pConnection,
Table pTable,
java.lang.String pFieldName)
Create a field descriptor for the specified field name in the table from the given connection. |
static FieldDescriptorRow |
createFDFromDBMetaData(Field pField)
Create a field descriptor for the specified Field. |
static FieldDescriptorRow |
createFDFromDBMetaData(Table pTable,
java.lang.String pFieldName)
Create a field descriptor for the specified field name in the table. |
static FieldDescriptorRow |
createFDFromRSMetaData(int pColumnIndex,
java.sql.ResultSetMetaData pRSMetaData,
Table pTable)
Creates and returns a FieldDescriptor using the given ResultSetMetaData and column index. |
static java.util.List |
createFDsFromDBMetaData(java.sql.Connection pConnection,
Library pLibrary)
Create field descriptors for the specified Library. |
static RowCollection |
createFDsFromDBMetaData(java.sql.Connection connection,
Table table)
Create field descriptors for the specified Table. |
static java.util.List |
createFDsFromDBMetaData(Library pLibrary)
Create field descriptors for the specified Library. |
static RowCollection |
createFDsFromDBMetaData(Table pTable)
Create field descriptors for the specified Table. |
static RowCollection |
createFDsFromFile(Table pTable)
Retrieves and creates any new FieldDescriptors from the Field data file that have not yet been created for the specified Table. |
static boolean |
createFieldDataFile(java.lang.String pFDSystemAlias)
Creates the Field data file if it doesn't already exist. |
static java.lang.String |
createFieldDataTableSQL()
|
static java.lang.StringBuffer |
generateJavaCode(FieldDescriptorRow fd,
RowClassProperties pProps,
java.lang.StringBuffer pSB)
|
static java.lang.Class |
getDefaultClassForLogicalType(int pFieldDescriptorType)
Gets the Class that is registered as the default class for the specifed type of logical] field descriptor. |
java.lang.String |
getDeleteConfirmationMessage()
|
static IFDModifier |
getFDModifier()
Gets the modifier that will be used to modify FD's read from RS or DB metadata (may be null) |
static RowCollection |
getFDsFromFile(Library pLibrary,
int pNumPerPage)
|
static RowCollection |
getFDsFromFile(java.lang.String pFDSystemAlias,
Library pLibrary,
int pNumPerPage)
|
static RowCollection |
getFDsFromFile(java.lang.String metadataAlias,
java.lang.String connectionAlias,
int ownerId)
|
static RowCollection |
getFDsFromFile(Table pTable,
int pNumPerPage)
|
static RowCollection |
getFDsFromFile(Table pTable,
int pNumPerPage,
java.util.List orderByColumns)
|
static Table |
getFieldDataTable(java.lang.String pFDSystemAlias)
Returns the System ((ex. |
static java.lang.String |
getFieldDataTableName()
|
static Table |
getFieldDataUserTable(java.lang.String pFDSystemAlias)
Returns the User Field data file Table object (FIELDDATA). |
static FieldDescriptorRow |
getFieldDescriptor(Field pField)
Return an IFieldDescriptor for the given Field, if it doesn't exist then create it from DatabaseMetaData. |
static FieldDescriptorRow |
getFieldDescriptor(java.lang.String pFieldName,
Table pTable)
Returns the FieldDescriptor for the given Field name. |
static FieldDescriptorRow |
getFieldDescriptor(java.lang.String pFieldName,
Table pTable,
boolean pCheckFieldDataFile)
Returns the FieldDescriptor for the given Field name. |
static FieldDescriptorRow |
getFieldDescriptorById(int id)
Gets a field descriptor by id, reading it from the file if necessary |
static FieldDescriptorCollection |
getFieldDescriptors(Table pTable)
Returns a map of FieldDescriptors created for the given Table. |
static FieldDescriptorCollection |
getFieldDescriptors(Table pTable,
boolean pCheckFieldDataFile)
Returns a map of FieldDescriptors created for the given Table. |
static boolean |
isFDFileUsed()
|
static boolean |
isMetaDataQuery(java.lang.String library)
Return whether or not this context is a special MetaData query |
static void |
registerDefaultFieldClass(int pFieldDescriptorType,
java.lang.Class pFieldClass)
Registers a Field class as the default Field class for a specific type of logical field descriptor. |
static void |
removeFD(FieldDescriptorRow fd)
|
protected static void |
removeFD(FieldDescriptorRow fd,
Table table)
|
static void |
setFDFileUsed(boolean pFDFileUsed)
|
static void |
setFDModifier(IFDModifier newFDModifier)
Sets the modifier that will be used to modify FD's read from RS or DB metadata (may be null) |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FieldDescriptorManager()
Method Detail |
public java.lang.String getDeleteConfirmationMessage()
public static void addFD(FieldDescriptorRow pFD) throws CMException
CMException
public static void addFD(FieldDescriptorRow pFD, Table pTable) throws CMException
CMException
public static void addFD(FieldDescriptorRow pFD, Table pTable, boolean pReplace) throws CMException
CMException
public static void addFD(FieldDescriptorRow pFD, boolean pReplace) throws CMException
CMException
public static void addFDs(java.util.List pFDs) throws CMException
CMException
public static void addFDs(java.util.List pFDs, Table pTable) throws CMException
CMException
public static void addFDs(java.util.List pFDs, Table pTable, boolean pReplace) throws CMException
CMException
public static void addFDs(java.util.List pFDs, boolean pReplace) throws CMException
CMException
public static void addFDs(RowCollection pFDRows) throws CMException
CMException
public static void addFDs(RowCollection pFDRows, Table pTable) throws CMException
CMException
public static void addFDs(RowCollection pFDRows, Table pTable, boolean pReplace) throws CMException
CMException
public static void addFDs(RowCollection pFDRows, boolean pReplace) throws CMException
CMException
public static void clearFieldDescriptors()
public static FieldDescriptorCollection clearFieldDescriptors(Table table)
public static void clearFieldDescriptorsForSystem(java.lang.String systemAlias)
public static FieldDescriptorRow createFDFromDBMetaData(java.sql.Connection pConnection, Field pField) throws CMException
pConnection
- connection to query for field descriptor infopField
- field to create field descriptor for
CMException
public static FieldDescriptorRow createFDFromDBMetaData(java.sql.Connection pConnection, Table pTable, java.lang.String pFieldName) throws CMException
pConnection
- connection to query for field descriptor infopTable
- table to create field descriptor forpFieldName
- name of field to create field descriptor for
CMException
public static FieldDescriptorRow createFDFromDBMetaData(Field pField) throws CMException
pField
- to create field descriptor for
CMException
public static FieldDescriptorRow createFDFromDBMetaData(Table pTable, java.lang.String pFieldName) throws CMException
pTable
- table to create field descriptor forpFieldName
- name of field to create field descriptor for
CMException
public static FieldDescriptorRow createFDFromRSMetaData(int pColumnIndex, java.sql.ResultSetMetaData pRSMetaData, Table pTable) throws CMException
pColumnIndex
- pRSMetaData
- pTable
-
CMException
public static java.util.List createFDsFromDBMetaData(java.sql.Connection pConnection, Library pLibrary) throws CMException
pLibrary
- to create field descriptors for
CMException
public static RowCollection createFDsFromDBMetaData(java.sql.Connection connection, Table table) throws CMException
CMException
public static java.util.List createFDsFromDBMetaData(Library pLibrary) throws CMException
pLibrary
- to create field descriptors for
CMException
public static RowCollection createFDsFromDBMetaData(Table pTable) throws CMException
pTable
- to create field descriptors for
CMException
public static RowCollection createFDsFromFile(Table pTable) throws CMException
pTable
- Table to use for looking for new FieldDescriptors in the
Field data file.
CMException
public static RowCollection getFDsFromFile(java.lang.String metadataAlias, java.lang.String connectionAlias, int ownerId) throws CMException
CMException
public static boolean createFieldDataFile(java.lang.String pFDSystemAlias) throws CMException
CMException
public static java.lang.String createFieldDataTableSQL()
public static java.lang.StringBuffer generateJavaCode(FieldDescriptorRow fd, RowClassProperties pProps, java.lang.StringBuffer pSB)
public static java.lang.Class getDefaultClassForLogicalType(int pFieldDescriptorType)
public static IFDModifier getFDModifier()
public static boolean isMetaDataQuery(java.lang.String library)
public static RowCollection getFDsFromFile(java.lang.String pFDSystemAlias, Library pLibrary, int pNumPerPage) throws CMException
CMException
public static RowCollection getFDsFromFile(Library pLibrary, int pNumPerPage) throws CMException
CMException
public static RowCollection getFDsFromFile(Table pTable, int pNumPerPage) throws CMException
CMException
public static RowCollection getFDsFromFile(Table pTable, int pNumPerPage, java.util.List orderByColumns) throws CMException
CMException
public static Table getFieldDataTable(java.lang.String pFDSystemAlias) throws DataEngineException
DataEngineException
public static Table getFieldDataUserTable(java.lang.String pFDSystemAlias) throws DataEngineException
DataEngineException
public static java.lang.String getFieldDataTableName()
public static FieldDescriptorRow getFieldDescriptor(java.lang.String pFieldName, Table pTable) throws CMException
pFieldName
- Name of the Field to see if a FieldDescriptor exists
for that Field.pTable
- Table the FieldDescriptor for the Field will be create for.
CMException
public static FieldDescriptorRow getFieldDescriptor(java.lang.String pFieldName, Table pTable, boolean pCheckFieldDataFile) throws CMException
pFieldName
- Name of the Field to see if a FieldDescriptor exists
for that Field.pTable
- Table the FieldDescriptor for the Field will be create for.pCheckFieldDataFile
- Flag to indicate whether or not to check the
the Field data file for a FieldDescriptor.
CMException
public static FieldDescriptorRow getFieldDescriptorById(int id) throws CMException
CMException
public static FieldDescriptorRow getFieldDescriptor(Field pField) throws CMException
pField
- Field
CMException
public static FieldDescriptorCollection getFieldDescriptors(Table pTable) throws CMException
pTable
- Table the FieldDescriptor for the Field will be create for.
CMException
public static FieldDescriptorCollection getFieldDescriptors(Table pTable, boolean pCheckFieldDataFile) throws CMException
pTable
- Table the FieldDescriptor for the Field will be create for.pCheckFieldDataFile
- Flag to indicate whether or not to check the
the Field data file for a FieldDescriptor.
CMException
public static boolean isFDFileUsed()
public static void registerDefaultFieldClass(int pFieldDescriptorType, java.lang.Class pFieldClass)
pFieldDescriptorType
- The type of field descriptor for which a
default Field class is being registeredpFieldClass
- The default Field class that is being registeredpublic static void removeFD(FieldDescriptorRow fd) throws CMException
CMException
protected static void removeFD(FieldDescriptorRow fd, Table table) throws CMException
CMException
public static void setFDFileUsed(boolean pFDFileUsed)
public static void setFDModifier(IFDModifier newFDModifier)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |