Class StoredFunction
java.lang.Object
io.github.mfvanek.pg.model.function.StoredFunction
- All Implemented Interfaces:
DbObject,Comparable<StoredFunction>
@Immutable
public class StoredFunction
extends Object
implements DbObject, Comparable<StoredFunction>
A representation of any stored procedure/function.
- Since:
- 0.7.0
-
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(StoredFunction other) final booleanGets procedure/function name.Gets procedure/function arguments.final StringgetName()Gets database object name.final inthashCode()static StoredFunctionConstructs aStoredFunctionobject.static StoredFunctionConstructs aStoredFunctionobject without arguments/signature.toString()
-
Method Details
-
getName
Gets database object name. -
getFunctionName
Gets procedure/function name.- Returns:
- returns procedure/function name
-
getFunctionSignature
Gets procedure/function arguments.- Returns:
- returns procedure/function arguments or empty string
-
toString
-
equals
-
hashCode
public final int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable<StoredFunction>
-
ofNoArgs
Constructs aStoredFunctionobject without arguments/signature.- Parameters:
functionName- procedure/function name.- Returns:
StoredFunction
-
of
Constructs aStoredFunctionobject.- Parameters:
functionName- procedure/function name.functionSignature- procedure/function signature (arguments).- Returns:
StoredFunction
-