public abstract class FileMetadata extends BaseMetadata
TYPES_SUPPORT_REFRESH
ALL_REFS, ALL_TYPES, BASE_CLASS_PATH, DB_DELIMITER, DEFAULT_METHOD, DEFAULT_TYPE, ID_FIELD, METADATA_DELIMITER, SYNONYMS_DATASET_TYPE, TABLE_PRIV, TABLE_PRIVS, TABLES_DATASET_TYPE, TYPE_ALIAS, TYPE_ALIASES, TYPE_ASSEMBLIES, TYPE_ASSEMBLY, TYPE_CATALOG, TYPE_CLASS, TYPE_COLUMN, TYPE_COLUMNS, TYPE_CONSTRAINTS, TYPE_DATA_SET, TYPE_DB_LINK, TYPE_DB_LINKS, TYPE_DBFUNCT, TYPE_DBFUNCTIONS, TYPE_DBINFO, TYPE_DBPROP, TYPE_DBPROPS, TYPE_DIRECTORIES, TYPE_DIRECTORY, TYPE_EK, TYPE_EK_COLUMN, TYPE_EK_COLUMNS, TYPE_EKS, TYPE_EXEC_METHOD, TYPE_EXEC_METHODS, TYPE_FILE, TYPE_FK, TYPE_FK_COLUMN, TYPE_FK_COLUMNS, TYPE_FKS, TYPE_FUNCT, TYPE_FUNCT_PARAMETERS, TYPE_FUNCTS, TYPE_GLOBAL_TEMPORARIES, TYPE_INDEX, TYPE_INDEX_COLUMN, TYPE_INDEX_COLUMNS, TYPE_INDEXES, TYPE_JAVA_CLASSES, TYPE_LOCAL_TEMPORARIES, TYPE_NICKNAME, TYPE_PACKAGE, TYPE_PACKAGE_BODY, TYPE_PACKAGES, TYPE_PARAMETER, TYPE_PARAMETERS, TYPE_PK, TYPE_PK_COLUMN, TYPE_PK_COLUMNS, TYPE_PKS, TYPE_PROC, TYPE_PROC_PARAMETERS, TYPE_PROCS, TYPE_PROCS_FUNCS, TYPE_QUEUE, TYPE_QUEUE_TABLE, TYPE_QUEUE_TABLES, TYPE_QUEUES, TYPE_RECYCLE_BIN, TYPE_RECYCLE_BIN_ITEM, TYPE_SCHEMA, TYPE_SEQUENCE, TYPE_SEQUENCES, TYPE_SYNONYM, TYPE_SYNONYMS, TYPE_SYSTEM_TABLES, TYPE_SYSTEM_VIEWS, TYPE_TABLE, TYPE_TABLES, TYPE_TEMPORARY_TABLES, TYPE_TEMPORARY_VIEWS, TYPE_TRIGGER, TYPE_TRIGGERS, TYPE_TYPE, TYPE_TYPES, TYPE_USER_TYPE, TYPE_USER_TYPES, TYPE_VIEW, TYPE_VIEWS, TYPE_WORKSHEET, TYPE_WORKSHEETS, TYPE_XML_SCHEMA, TYPE_XML_SCHEMAS, VIEWS_DATASET_TYPE
APP, COMMAND, ETL_DRIVER, FORMATTER, IDE_NODE, NO_RANK, WIDGET
Constructor and Description |
---|
FileMetadata() |
Modifier and Type | Method and Description |
---|---|
boolean |
allowNotDefault()
Checks if not default objects are allowed in the restricted mode.
|
String |
createAsText(String sql,
String catalog,
String schema,
String pattern,
String type)
Shows object create DDL.
|
Map<Integer,List<FieldDef>> |
discoverDatabaseTypes()
Discovers database types.
|
String |
executeAsText(String catalog,
String schema,
String pattern,
String type,
String metadataId)
Shows object execute SQL.
|
void |
free()
Free the resources.
|
String |
getAllowedSchema()
Gets the allowed schema when in restricted mode.
|
Set<String> |
getCatalogSchemaMetadataAllowed()
Gets the set of allowed database objects for catalogs and schemas when in restricted mode.
|
DataSet |
getColumns(DataSet dataSet)
Gets the columns.
|
String |
getDataSetName(String catalog)
Gets the data set name.
|
Map<String,String> |
getMetadataMethods()
Gets the metadata methods.
|
Set<String> |
getTableMetadataAllowed()
Gets the set of allowed database objects for tables when in restricted mode.
|
abstract DataSet |
getTablesByType(InputStream inputSteam,
String name,
String pattern,
String type)
Gets the tables by type.
|
abstract DataSet |
getTablesByType(String catalog,
String schema,
String pattern,
String type)
Gets the tables by type.
|
List<String> |
getTableTypes()
Gets the table types.
|
Set<String> |
getTopLevelAllowed()
Gets the set of allowed top level database objects when in restricted mode.
|
List<Object> |
getTopLevelDbObjects()
Gets the top level database objects.
|
String |
getTypeByTypeFieldValue(String value)
Gets the type by type field value.
|
String |
getTypeField()
Gets the type field.
|
Map<String,String> |
getTypeMethods()
Gets the type methods.
|
Map<String,String> |
getTypesByParent()
Gets the types by parent.
|
boolean |
needToPopulate(String type)
Checks if metadata node needs to be populatet.
|
boolean |
supportsExecute(String type)
Checks if metadata driver supports executeAsText method for the type.
|
asText, compareTo, dropAsText, getColumns, getConfigFileName, getConnectionFactory, getConnectionParamsProvider, getCurrentDatabase, getDefaultColumns, getDisplayName, getDriver, getExtensionRank, getFullObjectName, getIconPath, getLocalUnitClassPath, getMetadataByType, getMetadataByTypePreserveException, getMetadataTypeByParentType, getMetadataTypes, getObjectName, getObjectOwnerName, getObjectTypes, getType, getXmlConfigFileName, hasCatalogs, hasMetadataTypes, hasSchemas, init, isDatabaseCurrent, searchDatabase, setCurrentDatabase, setHasCatalogs, setHasSchemas, supportsAsText, supportsDrop, supportsRefresh, supportsSearchDatabase
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLicensePropertyName, getVendor, getVersion
public boolean allowNotDefault()
Metadata
public String createAsText(String sql, String catalog, String schema, String pattern, String type)
Metadata
sql
- the sqlcatalog
- the catalogschema
- the schemapattern
- the patterntype
- the typepublic Map<Integer,List<FieldDef>> discoverDatabaseTypes() throws Exception
Metadata
Exception
- in case of any errorpublic String executeAsText(String catalog, String schema, String pattern, String type, String metadataId) throws Exception
Metadata
catalog
- the catalogschema
- the schemapattern
- the patterntype
- the typemetadataId
- the metadata idException
- in case of any errorpublic void free()
Metadata
public String getAllowedSchema()
Metadata
public Set<String> getCatalogSchemaMetadataAllowed()
Metadata
public DataSet getColumns(DataSet dataSet)
dataSet
- the data setpublic String getDataSetName(String catalog)
catalog
- the catalogpublic Map<String,String> getMetadataMethods()
BaseMetadata
getMetadataMethods
in class BaseMetadata
public Set<String> getTableMetadataAllowed()
Metadata
public abstract DataSet getTablesByType(InputStream inputSteam, String name, String pattern, String type) throws Exception
inputSteam
- the input steamname
- the namepattern
- the patterntype
- the typeException
- in case of any errorpublic abstract DataSet getTablesByType(String catalog, String schema, String pattern, String type) throws Exception
catalog
- the catalogschema
- the schemapattern
- the patterntype
- the typeException
- in case of any errorpublic List<String> getTableTypes() throws Exception
Exception
- in case of any errorpublic Set<String> getTopLevelAllowed()
Metadata
public List<Object> getTopLevelDbObjects() throws Exception
Metadata
Exception
- in case of any errorpublic String getTypeByTypeFieldValue(String value)
Metadata
value
- the valuepublic String getTypeField()
Metadata
public Map<String,String> getTypeMethods()
Metadata
public Map<String,String> getTypesByParent()
BaseMetadata
getTypesByParent
in class BaseMetadata
public boolean needToPopulate(String type)
Metadata
type
- the typepublic boolean supportsExecute(String type)
Metadata
type
- the typeCopyright © 2010-2020 Toolsverse. All Rights Reserved.