Class MetaOperator

java.lang.Object
org.pgcodekeeper.core.schema.meta.MetaStatement
org.pgcodekeeper.core.schema.meta.MetaOperator
All Implemented Interfaces:
Serializable, IOperator, ISearchPath, IStatement

public final class MetaOperator extends MetaStatement implements IOperator
Represents a database operator metadata object. Stores information about operator signatures including left and right argument types and return type.
See Also:
  • Constructor Details

    • MetaOperator

      public MetaOperator(PgObjLocation object)
      Creates a new operator metadata object with location information.
      Parameters:
      object - the object location information
    • MetaOperator

      public MetaOperator(String schemaName, String name)
      Creates a new operator metadata object.
      Parameters:
      schemaName - the schema name
      name - the operator name
  • Method Details

    • getName

      public String getName()
      Description copied from interface: IStatement
      Gets the name of this statement.
      Specified by:
      getName in interface IStatement
      Overrides:
      getName in class MetaStatement
      Returns:
      the statement name
    • getSignature

      public String getSignature()
      Returns the operator signature including argument types.
      Returns:
      the operator signature in format: name(leftType, rightType)
    • getRightArg

      public String getRightArg()
      Description copied from interface: IOperator
      Gets the right argument type of this operator.
      Specified by:
      getRightArg in interface IOperator
      Returns:
      the right argument type
    • getLeftArg

      public String getLeftArg()
      Description copied from interface: IOperator
      Gets the left argument type of this operator.
      Specified by:
      getLeftArg in interface IOperator
      Returns:
      the left argument type
    • getReturns

      public String getReturns()
      Description copied from interface: IOperator
      Gets the return type of this operator.
      Specified by:
      getReturns in interface IOperator
      Returns:
      the return type
    • setLeftArg

      public void setLeftArg(String left)
    • setRightArg

      public void setRightArg(String right)
    • setReturns

      public void setReturns(String returns)
      Description copied from interface: IOperator
      Sets the return type of this operator.
      Specified by:
      setReturns in interface IOperator
      Parameters:
      returns - the return type to set
    • getContainingSchema

      public ISchema getContainingSchema()
      Returns the containing schema of this operator. This operation is not supported for metadata operators.
      Specified by:
      getContainingSchema in interface ISearchPath
      Returns:
      never returns normally
      Throws:
      IllegalStateException - always thrown as this operation is unsupported
    • getSchemaName

      public String getSchemaName()
      Returns the schema name of this operator.
      Specified by:
      getSchemaName in interface ISearchPath
      Returns:
      the schema name