|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--planetj.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(List pFDs)
Removes all FieldDescriptors for all systems. |
static void |
addFDs(List pFDs,
boolean pReplace)
Removes all FieldDescriptors for all systems. |
static void |
addFDs(List pFDs,
Table pTable)
Removes all FieldDescriptors for all systems. |
static void |
addFDs(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(String systemAlias)
Removes all field descriptors for the specified system from the FD cache |
static FieldDescriptorRow |
createFDFromDBMetaData(Connection pConnection,
Field pField)
Create a field descriptor for the specified field name in the table from the given connection. |
static FieldDescriptorRow |
createFDFromDBMetaData(Connection pConnection,
Table pTable,
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,
String pFieldName)
Create a field descriptor for the specified field name in the table. |
static FieldDescriptorRow |
createFDFromRSMetaData(int pColumnIndex,
ResultSetMetaData pRSMetaData,
String metaDataAlias)
Deprecated. replaced with createFDFromRSMetaData(int, ResultSetMetaData, Table) |
static FieldDescriptorRow |
createFDFromRSMetaData(int pColumnIndex,
ResultSetMetaData pRSMetaData,
Table pTable)
Creates and returns a FieldDescriptor using the given ResultSetMetaData and column index. |
static List |
createFDsFromDBMetaData(Connection pConnection,
Library pLibrary)
Create field descriptors for the specified Library. |
static RowCollection |
createFDsFromDBMetaData(Connection pConnection,
Table pTable)
Create field descriptors for the specified Table. |
static 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(String pFDSystemAlias)
Creates the Field data file if it doesn't already exist. |
static String |
createFieldDataTableSQL()
|
static StringBuffer |
generateJavaCode(FieldDescriptorRow fd,
RowClassProperties pProps,
StringBuffer pSB)
|
static RowCollection |
getAssociationsForTable(Table pTable)
|
static Class |
getDefaultClassForLogicalType(int pFieldDescriptorType)
Gets the Class that is registered as the default class for the specifed type of logical] field descriptor. |
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(String pFDSystemAlias,
Library pLibrary,
int pNumPerPage)
|
static RowCollection |
getFDsFromFile(Table pTable,
int pNumPerPage)
|
static RowCollection |
getFDsFromFile(Table pTable,
int pNumPerPage,
List orderByColumns)
|
static Table |
getFieldDataTable(String pFDSystemAlias)
Returns the Field data file Table object. |
static String |
getFieldDataTableName()
|
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(String pFieldName,
Table pTable)
Returns the FieldDescriptor for the given Field name. |
static FieldDescriptorRow |
getFieldDescriptor(String pFieldName,
Table pTable,
boolean pCheckFieldDataFile)
Returns the FieldDescriptor for the given Field name. |
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 void |
registerDefaultFieldClass(int pFieldDescriptorType,
Class pFieldClass)
Registers a Field class as the default Field class for a specific type of logical field descriptor. |
static void |
removeFD(FieldDescriptorRow fd)
|
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 |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FieldDescriptorManager()
Method Detail |
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(List pFDs) throws CMException
CMException
public static void addFDs(List pFDs, Table pTable) throws CMException
CMException
public static void addFDs(List pFDs, Table pTable, boolean pReplace) throws CMException
CMException
public static void addFDs(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(String systemAlias)
public static FieldDescriptorRow createFDFromDBMetaData(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(Connection pConnection, Table pTable, 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, 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, ResultSetMetaData pRSMetaData, String metaDataAlias) throws CMException
pColumnIndex
- pRSMetaData
-
CMException
public static FieldDescriptorRow createFDFromRSMetaData(int pColumnIndex, ResultSetMetaData pRSMetaData, Table pTable) throws CMException
pColumnIndex
- pRSMetaData
- pTable
-
CMException
public static List createFDsFromDBMetaData(Connection pConnection, Library pLibrary) throws CMException
pLibrary
- to create field descriptors for
CMException
public static RowCollection createFDsFromDBMetaData(Connection pConnection, Table pTable) throws CMException
pTable
- to create field descriptors for
CMException
public static 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 boolean createFieldDataFile(String pFDSystemAlias) throws CMException
CMException
public static String createFieldDataTableSQL()
public static StringBuffer generateJavaCode(FieldDescriptorRow fd, RowClassProperties pProps, StringBuffer pSB)
public static RowCollection getAssociationsForTable(Table pTable) throws CMException
CMException
public static Class getDefaultClassForLogicalType(int pFieldDescriptorType)
public static IFDModifier getFDModifier()
public static RowCollection getFDsFromFile(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, List orderByColumns) throws CMException
CMException
public static Table getFieldDataTable(String pFDSystemAlias) throws DataEngineException
DataEngineException
public static String getFieldDataTableName()
public static FieldDescriptorRow getFieldDescriptor(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(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 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, 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
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 |