Package org.pgcodekeeper.core.schema
Interface IFunction
- All Superinterfaces:
ISearchPath,IStatement
- All Known Implementing Classes:
AbstractFunction,AbstractMsClrFunction,AbstractMsFunction,AbstractPgFunction,ChFunction,MetaFunction,MsClrFunction,MsClrProcedure,MsFunction,MsProcedure,PgAggregate,PgFunction,PgProcedure
Interface for database functions, procedures, and aggregates.
Provides access to function arguments, return types, and return columns.
-
Method Summary
Modifier and TypeMethodDescriptionGets the list of function arguments.Gets the return type of this function.Gets the return columns for table-valued functions.voidsetReturns(String returns) Sets the return type of this function.Methods inherited from interface org.pgcodekeeper.core.schema.ISearchPath
getContainingSchema, getDatabase, getSchemaNameMethods inherited from interface org.pgcodekeeper.core.schema.IStatement
getBareName, getComment, getName, getParent, getQualifiedName, getStatementType
-
Method Details
-
getReturns
String getReturns()Gets the return type of this function.- Returns:
- the return type, or null if not applicable
-
getReturnsColumns
Gets the return columns for table-valued functions.- Returns:
- a map of column names to their types
-
getArguments
Gets the list of function arguments.- Returns:
- the list of arguments
-
setReturns
Sets the return type of this function.- Parameters:
returns- the return type to set
-