Interface IMetaContainer
- All Known Implementing Classes:
MetaContainer
public interface IMetaContainer
Interface for a container of database metadata objects
-
Method Summary
Modifier and TypeMethodDescriptionavailableFunctions(String schemaName) Returns available functions in the specified schema.availableOperators(String schemaName) Returns available operators in the specified schema.booleancontainsCastImplicit(String source, String target) Checks if there is an implicit cast from source to target type.findFunction(String schemaName, String functionName) Finds a function by schema and name.findOperator(String schemaName, String operatorName) Finds an operator by schema and name.findRelation(String schemaName, String relationName) Finds a relation by schema and name.Finds composite type by schema and name.getPrimaryKeys(String schemaName, String tableName) Returns primary keys for the specified table.Returns all relations grouped by schema name.
-
Method Details
-
findRelation
Finds a relation by schema and name.- Parameters:
schemaName- the schema namerelationName- the relation name- Returns:
- the relation, or null if not found
-
availableFunctions
Returns available functions in the specified schema.- Parameters:
schemaName- the schema name- Returns:
- unmodifiable collection of functions
-
availableOperators
Returns available operators in the specified schema.- Parameters:
schemaName- the schema name- Returns:
- unmodifiable collection of operators
-
findType
Finds composite type by schema and name.- Parameters:
schemaName- the schema nametypeName- the type name- Returns:
- the composite type, or null if not found
-
findFunction
Finds a function by schema and name.- Parameters:
schemaName- the schema namefunctionName- the function name- Returns:
- the function, or null if not found
-
findOperator
Finds an operator by schema and name.- Parameters:
schemaName- the schema nameoperatorName- the operator name- Returns:
- the operator, or null if not found
-
getPrimaryKeys
Returns primary keys for the specified table.- Parameters:
schemaName- the schema nametableName- the table name- Returns:
- collection of primary keys for the table
-
containsCastImplicit
Checks if there is an implicit cast from source to target type.- Parameters:
source- the source data typetarget- the target data type- Returns:
- true if an implicit cast exists, false otherwise
-
getRelations
Returns all relations grouped by schema name.- Returns:
- unmodifiable map of relations
-