Class MetaOperator
java.lang.Object
org.pgcodekeeper.core.schema.meta.MetaStatement
org.pgcodekeeper.core.schema.meta.MetaOperator
- All Implemented Interfaces:
Serializable,IOperator,ISearchPath,IStatement
Represents a database operator metadata object.
Stores information about operator signatures including left and right argument types
and return type.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMetaOperator(String schemaName, String name) Creates a new operator metadata object.MetaOperator(PgObjLocation object) Creates a new operator metadata object with location information. -
Method Summary
Modifier and TypeMethodDescriptionReturns the containing schema of this operator.Gets the left argument type of this operator.getName()Gets the name of this statement.Gets the return type of this operator.Gets the right argument type of this operator.Returns the schema name of this operator.Returns the operator signature including argument types.voidsetLeftArg(String left) voidsetReturns(String returns) Sets the return type of this operator.voidsetRightArg(String right) Methods inherited from class org.pgcodekeeper.core.schema.meta.MetaStatement
getBareName, getComment, getDatabase, getFilePath, getGenericColumn, getLineNumber, getObject, getObjLength, getOffset, getParent, getQualifiedName, getStatementType, setCommentMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.pgcodekeeper.core.schema.ISearchPath
getDatabaseMethods inherited from interface org.pgcodekeeper.core.schema.IStatement
getBareName, getComment, getParent, getQualifiedName, getStatementType
-
Constructor Details
-
MetaOperator
Creates a new operator metadata object with location information.- Parameters:
object- the object location information
-
MetaOperator
Creates a new operator metadata object.- Parameters:
schemaName- the schema namename- the operator name
-
-
Method Details
-
getName
Description copied from interface:IStatementGets the name of this statement.- Specified by:
getNamein interfaceIStatement- Overrides:
getNamein classMetaStatement- Returns:
- the statement name
-
getSignature
Returns the operator signature including argument types.- Returns:
- the operator signature in format: name(leftType, rightType)
-
getRightArg
Description copied from interface:IOperatorGets the right argument type of this operator.- Specified by:
getRightArgin interfaceIOperator- Returns:
- the right argument type
-
getLeftArg
Description copied from interface:IOperatorGets the left argument type of this operator.- Specified by:
getLeftArgin interfaceIOperator- Returns:
- the left argument type
-
getReturns
Description copied from interface:IOperatorGets the return type of this operator.- Specified by:
getReturnsin interfaceIOperator- Returns:
- the return type
-
setLeftArg
-
setRightArg
-
setReturns
Description copied from interface:IOperatorSets the return type of this operator.- Specified by:
setReturnsin interfaceIOperator- Parameters:
returns- the return type to set
-
getContainingSchema
Returns the containing schema of this operator. This operation is not supported for metadata operators.- Specified by:
getContainingSchemain interfaceISearchPath- Returns:
- never returns normally
- Throws:
IllegalStateException- always thrown as this operation is unsupported
-
getSchemaName
Returns the schema name of this operator.- Specified by:
getSchemaNamein interfaceISearchPath- Returns:
- the schema name
-