| Modifier and Type | Method and Description |
|---|---|
void |
clearCache()
Clear the metadata.
|
com.corticon.rulesemf.canonicalvocabularymodel.metadata.database.ColumnMetadata |
findColumnMetadata(ITableInfo table,
java.lang.String astrColumnName)
Return the specified ColumnMetadata object instance.
|
com.corticon.rulesemf.canonicalvocabularymodel.metadata.database.ColumnMetadata |
findColumnMetadataFromString(java.lang.String tableName,
java.lang.String astrColumnName)
Return the specified ColumnMetadata object instance using a fully qualified table name.
|
com.corticon.rulesemf.canonicalvocabularymodel.DatabaseAccess |
findDatabaseAccess()
Finder for DatabaseAccess instance.
|
com.corticon.rulesemf.canonicalvocabularymodel.metadata.database.DatabaseMetadata |
findDatabaseMetadata()
Finder for DatabaseMetadata anchor.
|
com.corticon.rulesemf.canonicalvocabularymodel.metadata.database.ForeignKeyMetadata |
findForeignKeyMetadata(ITableInfo table,
java.lang.String astrForeignKeyName)
Return the specified foreign key metadata object instance.
|
com.corticon.rulesemf.canonicalvocabularymodel.metadata.database.PrimaryKeyMetadata |
findPrimaryKeyMetadata(ITableInfo table,
java.lang.String astrPrimaryKeyName)
Return the specified primary key metadata object instance.
|
ITableInfo |
findTableInfoFromFullyQualifiedTableName(java.lang.String tableName)
Returns a description of the table given a fully qualified table name.
|
com.corticon.rulesemf.canonicalvocabularymodel.metadata.database.TableMetadata |
findTableMetadata(ITableInfo table)
Return the specified TableMetadata object instance.
|
com.corticon.rulesemf.canonicalvocabularymodel.metadata.database.TableMetadata |
findTableMetadataFromString(java.lang.String tableName)
Return the specified TableMetadata object instance, given a table name string.
|
java.util.ArrayList |
getAllColumnNames(ITableInfo table)
Return a list of all column names of the specified table.
|
java.util.ArrayList |
getAllColumnNamesFromString(java.lang.String tableName)
Return a list of all column names of the specified table table
|
java.util.ArrayList |
getAllForeignKeyNames(ITableInfo table)
Return a list of all foreign key names (foreign keys that *point* to this table,
not foreign keys defined for this table).
|
java.util.ArrayList |
getAllTableInfo()
Return a list of all the table info objects
|
java.util.ArrayList |
getAllTableNames()
Return a list of fully-qualified table names.
|
java.util.ArrayList |
getAllTables()
Return a list of all fully-qualified table names from the database.
|
java.util.ArrayList |
getColumnNamesForTypes(ITableInfo table,
java.util.List aListJdbcDataTypes)
Return a list of column names belonging to the specified table that have the
specified JDBC data type(s).
|
int |
getColumnSize(ITableInfo table,
java.lang.String astrColumnName)
Given a table name and column name, return the column size as
specified in the database metadata or -1 if no information is available.
|
int |
getDecimalDigits(ITableInfo table,
java.lang.String astrColumnName)
Given a table name and column name, return the number of decimal digits
specified in the database metadata or -1 if no information is available.
|
java.lang.String |
getJdbcDataType(ITableInfo table,
java.lang.String astrColumnName)
Get the JDBC data type for a given database table name and column name.
|
java.util.List |
getJoinExpressionsInverse(ITableInfo tableSource,
ITableInfo tableTarget)
Given a source and target table, return a list of inverse join expressions.
|
java.util.List |
getJoinExpressionsManyToMany(ITableInfo tableSource,
ITableInfo tableTarget)
Return join expressions appropriate for many-to-many associations.
|
java.util.List |
getJoinExpressionsStandard(ITableInfo tableSource,
ITableInfo tableTarget)
Return join expressions appropriate for one-to-one or one-to-many associations.
|
java.util.ArrayList |
getPrimaryKeyColumnNames(ITableInfo table)
Return a sorted list of the primary key column names for a given table name.
|
java.lang.String |
getSqlDataType(ITableInfo table,
java.lang.String astrColumnName)
Get the SQL data type for a given database table name and column name.
|
java.util.List<java.lang.String> |
getSQLKeywords()
Get a list of SQL keywords from the current database connection.
|
boolean |
isEmpty()
Determine whether the metadata cache is empty (i.e., database contains zero tables).
|
boolean |
isForeignKeyColumn(ITableInfo table,
java.lang.String astrColumnName)
Determine whether the specified table and column name are part of a foreign key.
|
boolean |
isMetadataLoaded()
Determine whether any metadata has been loaded.
|
boolean |
isSequence(IEntity aEntity,
ITableInfo info)
Determine whether the specified name is a database sequence.
|
boolean |
isTable(ITableInfo info)
Determine whether the specified table info specifies a table in the database.
|
boolean |
isValidColumn(ITableInfo info,
java.lang.String astrColumnName)
Determine whether the specified column name is valid (i.e., whether there is any
metadata present that describes the column).
|
boolean |
isValidTable(ITableInfo info)
Determine whether the specified table name is valid (i.e., whether there is any
metadata present that describes the table).
|
boolean |
isView(ITableInfo info)
Determine whether the specified name is a database view.
|
boolean |
load()
Load all metadata from a database connection using connection properties defined in the
DatabaseAccess EMF object.
|
boolean |
load(java.util.List<java.lang.String> alstFullyQualifiedTableName)
Load all metadata from a database connection using connection properties defined in the
DatabaseAccess EMF object.
|
boolean |
load(java.util.List<java.lang.String> alstTableNames,
boolean abNamesAreFullyQualified)
Load all metadata from a database connection using connection properties defined in the
DatabaseAccess EMF object.
|
JoinExpression |
parseJoinExpression(java.lang.String astrJoinExpression,
ITableInfo sourceTable,
ITableInfo targetTable,
boolean abManyToMany,
boolean abPerformSemanticAnalysis)
Parse a given join expression to construct an object representation
then optionally perform semantic analysis if the database metadata is available.
|
void |
setVocabularyModelAPI(IVocabularyModelAPI aIVocabularyModelAPI)
Setter for reference to Vocabulary model API (required).
|
boolean |
testConnection(boolean abSilent)
Test the current database connection and may optionally display a message box
to indicate whether the test was successful.
|
activate, addAnnotation, addBatchedModelListener, addLowLevelModelListener, addModelListener, addResourceListener, addView, beginTransaction, cancelTransaction, canSetSupportedLocales, closeResource, createResource, deleteAnnotation, deleteAnnotation, deleteAnnotation, deleteResource, displayMessageBox, dispose, doPostLoadValidation, doSmartValidation, endTransaction, endTransaction, flushCommandStack, formatValidationMessageLocation, formatValidationMessageText, getAllLocalesProvidingCompleteLocalization, getAnnotation, getAnnotations, getAnnotations, getAnnotations, getAPIContextObject, getAsset, getBaseAttribute, getBaseAttributeString, getBatchedModelListeners, getBuildNumber, getBuildNumberOfLastValidationRulesChange, getEditingDomain, getErrors, getErrors, getIndexByLocale, getLocale, getLocalizedAttribute, getLocalizedAttributeString, getLowLevelModelListeners, getMajorServiceNumber, getMajorVersionNumber, getMessage, getMessage, getMessageBase, getMessageBoxDelegate, getMinorServiceNumber, getMinorVersionNumber, getModelAPIState, getModelListeners, getNewResourceName, getPersistenceServicesDelegate, getPreferences, getPrimaryResource, getPrimaryResourceURI, getScrollableMessageDelegate, getSupportedLocales, getSuppressBrokenLinkValidation, getSuppressValidation, getToolTip, getUpdateStamp, getUserInterfaceInfoDelegate, getValidationMessageCount, getValidationMessageCount, getValidationMessageCount, getValidationMessageCount, getValidationMessages, getValidationMessages, getWarnings, getWarnings, handleException, hasErrors, hasErrors, hasErrors, hasErrors, hasErrors, hasErrors, hasErrorsOrWarnings, hasErrorsOrWarnings, hasErrorsOrWarnings, hasErrorsOrWarnings, hasErrorsOrWarnings, hasErrorsOrWarnings, hasWarnings, hasWarnings, hasWarnings, hasWarnings, hasWarnings, hasWarnings, isAPIStateEstablished, isEnabledRedo, isEnabledUndo, isInhibitNotification, isLoaded, isOperationModeNormal, isOperationModeRedo, isOperationModeUndo, isPassive, isPostLoadInProgress, isPrimaryResourceSet, isReadOnly, isResourceActivated, isResourceConflict, isResourceDemandLoaded, isResourceLoaded, isScrollableMessageDelegateAvailable, isShowCanonicalValidationMessages, isSuppressModifiedFlagUpdates, isSuppressPostLoad, isTransactionInProgress, isValid, isValid, loadResource, loadResource, loadResource, newInstance, noOperation, postLoad, postMethod, postMethod, postsave, preMethod, presave, redo, reloadResource, remapResource, remapResource, removeBatchedModelListener, removeLowLevelModelListener, removeModelListener, removeResource, removeResourceListener, removeView, renameResource, rollbackTransaction, saveAll, saveResource, setAnnotation, setAPIContextObject, setAPIState, setBuildNumber, setEditingDomain, setInhibitNotification, setLocale, setMajorServiceNumber, setMajorVersionNumber, setMessageBoxDelegate, setMinorServiceNumber, setMinorVersionNumber, setModelAPIState, setModelListeners, setPassive, setPersistenceServicesDelegate, setPostLoadInProgress, setPreferencesDelegate, setPrimaryResource, setReadOnly, setScrollableMessageDelegate, setSupportedLocales, setSuppressBrokenLinkValidation, setSuppressModifiedFlagUpdates, setSuppressPostLoad, setSuppressValidation, setUserInterfaceInfoDelegate, undo, unloadResource, validate, validateLicensevoid clearCache()
java.util.ArrayList getAllColumnNames(ITableInfo table)
table - Definition of a table to match to database info.java.util.ArrayList getAllColumnNamesFromString(java.lang.String tableName)
tableName - A fully qualified table name that the system will use best match to compare with.java.util.ArrayList getAllTableInfo()
java.util.ArrayList getAllForeignKeyNames(ITableInfo table)
table - Table info object.java.util.ArrayList getColumnNamesForTypes(ITableInfo table, java.util.List aListJdbcDataTypes)
table - Definition of a table to match to database info.aListJdbcDataTypes - List of JDBC data types.java.lang.String getJdbcDataType(ITableInfo table, java.lang.String astrColumnName)
table - Definition of a table to match to database info.astrColumn - Name of database column.null.java.lang.String getSqlDataType(ITableInfo table, java.lang.String astrColumnName)
table - Definition of a table to match to database info.astrColumn - Name of database column.null.int getColumnSize(ITableInfo table, java.lang.String astrColumnName)
table - Definition of a table to match to database info.astrColumnName - Column name.int getDecimalDigits(ITableInfo table, java.lang.String astrColumnName)
table - Definition of a table to match to database info.astrColumnName - Column name.com.corticon.rulesemf.canonicalvocabularymodel.metadata.database.ColumnMetadata findColumnMetadata(ITableInfo table, java.lang.String astrColumnName)
table - Definition of a table to match to database info.astrColumnName - Column name.com.corticon.rulesemf.canonicalvocabularymodel.metadata.database.ColumnMetadata findColumnMetadataFromString(java.lang.String tableName,
java.lang.String astrColumnName)
tableName - Fully Qualified table name to match to database metadata.astrColumnName - Database column name.com.corticon.rulesemf.canonicalvocabularymodel.DatabaseAccess findDatabaseAccess()
com.corticon.rulesemf.canonicalvocabularymodel.metadata.database.DatabaseMetadata findDatabaseMetadata()
com.corticon.rulesemf.canonicalvocabularymodel.metadata.database.ForeignKeyMetadata findForeignKeyMetadata(ITableInfo table, java.lang.String astrForeignKeyName)
table - Definition of a table to match to database info.astrForeignKeyName - Foreign key name.com.corticon.rulesemf.canonicalvocabularymodel.metadata.database.PrimaryKeyMetadata findPrimaryKeyMetadata(ITableInfo table, java.lang.String astrPrimaryKeyName)
table - Definition of a table to match to database info.astrPrimaryKeyName - Primary key name.com.corticon.rulesemf.canonicalvocabularymodel.metadata.database.TableMetadata findTableMetadataFromString(java.lang.String tableName)
tableName - a string representing a fully qualified table name.ITableInfo findTableInfoFromFullyQualifiedTableName(java.lang.String tableName)
tableName - a fully qualified table name.com.corticon.rulesemf.canonicalvocabularymodel.metadata.database.TableMetadata findTableMetadata(ITableInfo table)
table - Definition of a table to match to database info.java.util.List getJoinExpressionsStandard(ITableInfo tableSource, ITableInfo tableTarget)
In a one-to-many association, the source table is assumed to contain the primary key and the target table is assumed to contain the foreign key (for one-to-one associations, this distinction is not important).
The join expressions will be returned as shown in this example:tableSource - Definition of a table to match to database info.tableTarget - Definition of a table to match to database info.java.util.List getJoinExpressionsInverse(ITableInfo tableSource, ITableInfo tableTarget)
tableSource - Definition of a table to match to database info.tableTarget - Definition of a table to match to database info.java.util.List getJoinExpressionsManyToMany(ITableInfo tableSource, ITableInfo tableTarget)
tableSource - Definition of a table to match to database info.tableTarget - Definition of a table to match to database info.java.util.ArrayList getPrimaryKeyColumnNames(ITableInfo table)
table - Definition of a table to match to database info.boolean isEmpty()
true if loaded but table count is empty.boolean isForeignKeyColumn(ITableInfo table, java.lang.String astrColumnName)
table - Definition of a table to match to database info.astrColumnName - Column Name.true if the column is part of a foreign key.boolean isMetadataLoaded()
true if metadata is present.boolean isTable(ITableInfo info)
info - Definition of a table or view to match to database info.true if name is a table.boolean isView(ITableInfo info)
info - Definition of a table or view to match to database info.true if name is a view.boolean isSequence(IEntity aEntity, ITableInfo info)
aEntity - Name of an entity the sequence belongs toinfo - Definition of sequence to match to database info.true if name is a sequence.boolean isValidColumn(ITableInfo info, java.lang.String astrColumnName)
info - Definition of a table to match to database info.astrColumnName - Name of the database column.true if metadata is available.boolean isValidTable(ITableInfo info)
info - Definition of a table to match to database info.true if metadata is available.boolean load()
true if metadata was successfully loaded.boolean load(java.util.List<java.lang.String> alstFullyQualifiedTableName)
alstFullyQualifiedTableName - Fully-qualified name of the database table.true if metadata was successfully loaded.boolean load(java.util.List<java.lang.String> alstTableNames,
boolean abNamesAreFullyQualified)
alstTableNames - Could be fully-qualified name of the database table or just the table name.abNamesAreFullyQualified - Tells the system that the values in the List are fully-qualified or not.true if metadata was successfully loaded.JoinExpression parseJoinExpression(java.lang.String astrJoinExpression, ITableInfo sourceTable, ITableInfo targetTable, boolean abManyToMany, boolean abPerformSemanticAnalysis)
astrJoinExpression - Join expression (string).sourceTable - Description of source table.targetTable - Description of target table.abManyToMany - true if join expression describes many-to-many association.abPerformSemanticAnalysis - true to check join expression against metadata.void setVocabularyModelAPI(IVocabularyModelAPI aIVocabularyModelAPI)
aIVocabularyModelAPI - Vocabulary model API instance.boolean testConnection(boolean abSilent)
abSilent - true to suppress message "connection successful" message box.true if connection was successful.java.util.List<java.lang.String> getSQLKeywords()
null otherwisejava.util.ArrayList getAllTableNames()
java.util.ArrayList getAllTables()
Copyright © 2005-2016 Progress Software Corporation and/or its subsidiaries and affiliates. All rights reserved.