Interface IMetaContainer

All Known Implementing Classes:
MetaContainer

public interface IMetaContainer
Interface for a container of database metadata objects
  • Method Details

    • findRelation

      IRelation findRelation(String schemaName, String relationName)
      Finds a relation by schema and name.
      Parameters:
      schemaName - the schema name
      relationName - the relation name
      Returns:
      the relation, or null if not found
    • availableFunctions

      Collection<IFunction> availableFunctions(String schemaName)
      Returns available functions in the specified schema.
      Parameters:
      schemaName - the schema name
      Returns:
      unmodifiable collection of functions
    • availableOperators

      Collection<IOperator> availableOperators(String schemaName)
      Returns available operators in the specified schema.
      Parameters:
      schemaName - the schema name
      Returns:
      unmodifiable collection of operators
    • findType

      ICompositeType findType(String schemaName, String typeName)
      Finds composite type by schema and name.
      Parameters:
      schemaName - the schema name
      typeName - the type name
      Returns:
      the composite type, or null if not found
    • findFunction

      IFunction findFunction(String schemaName, String functionName)
      Finds a function by schema and name.
      Parameters:
      schemaName - the schema name
      functionName - the function name
      Returns:
      the function, or null if not found
    • findOperator

      IOperator findOperator(String schemaName, String operatorName)
      Finds an operator by schema and name.
      Parameters:
      schemaName - the schema name
      operatorName - the operator name
      Returns:
      the operator, or null if not found
    • getPrimaryKeys

      Collection<IConstraintPk> getPrimaryKeys(String schemaName, String tableName)
      Returns primary keys for the specified table.
      Parameters:
      schemaName - the schema name
      tableName - the table name
      Returns:
      collection of primary keys for the table
    • containsCastImplicit

      boolean containsCastImplicit(String source, String target)
      Checks if there is an implicit cast from source to target type.
      Parameters:
      source - the source data type
      target - the target data type
      Returns:
      true if an implicit cast exists, false otherwise
    • getRelations

      Map<String,Map<String,IRelation>> getRelations()
      Returns all relations grouped by schema name.
      Returns:
      unmodifiable map of relations