Class StoredFunction
java.lang.Object
io.github.mfvanek.pg.model.function.StoredFunction
- All Implemented Interfaces:
DbObject,Comparable<StoredFunction>
A representation of any stored procedure/function.
- Since:
- 0.7.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringConstant representing the field name for a stored procedure or function name within theStoredFunctionclass.static final StringConstant representing the field name for a function's signature. -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(StoredFunction other) booleanRetrieves procedure/function name.Retrieves procedure/function arguments.getName()Retrieves database object name.Retrieves database object type.inthashCode()static StoredFunctionConstructs aStoredFunctionobject with given context.static StoredFunctionConstructs aStoredFunctionobject.static StoredFunctionConstructs aStoredFunctionobject without arguments/signature with given context.static StoredFunctionConstructs aStoredFunctionobject without arguments/signature.toString()
-
Field Details
-
FUNCTION_NAME_FIELD
Constant representing the field name for a stored procedure or function name within theStoredFunctionclass.- See Also:
-
FUNCTION_SIGNATURE_FIELD
Constant representing the field name for a function's signature.- See Also:
-
-
Method Details
-
getName
Retrieves database object name. -
getObjectType
Retrieves database object type.- Specified by:
getObjectTypein interfaceDbObject- Returns:
- database object type
-
getFunctionName
Retrieves procedure/function name.- Returns:
- returns procedure/function name
-
getFunctionSignature
Retrieves procedure/function arguments.- Returns:
- returns procedure/function arguments or empty string
-
toString
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable<StoredFunction>
-
ofNoArgs
Constructs aStoredFunctionobject without arguments/signature.- Parameters:
functionName- procedure/function name.- Returns:
StoredFunction
-
ofNoArgs
Constructs aStoredFunctionobject without arguments/signature with given context.- Parameters:
pgContext- the schema context to enrich procedure/function name; must be non-null.functionName- procedure/function name.- Returns:
StoredFunction- Since:
- 0.14.3
-
of
Constructs aStoredFunctionobject.- Parameters:
functionName- procedure/function name.functionSignature- procedure/function signature (arguments).- Returns:
StoredFunction
-
of
Constructs aStoredFunctionobject with given context.- Parameters:
pgContext- the schema context to enrich procedure/function name; must be non-null.functionName- procedure/function name.functionSignature- procedure/function signature (arguments).- Returns:
StoredFunction- Since:
- 0.14.3
-