Class Argument
java.lang.Object
org.pgcodekeeper.core.database.base.schema.Argument
- All Implemented Interfaces:
Serializable,IArgument,IHashable
- Direct Known Subclasses:
PgAbstractFunction.PgArgument
Represents a function argument with its mode, name, data type, and default
value. Used for storing parameter information for functions, procedures, and
aggregates across different database types.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappendDeclaration(StringBuilder sbString, boolean includeDefaultValue, boolean includeArgName, UnaryOperator<String> quoter) Appends the argument declaration to a StringBuilder.voidcomputeHash(Hasher hasher) Computes the hash of the implementing object using the provided hasher.booleangetCopy()getMode()getName()inthashCode()booleanvoidsetDefaultExpression(String defaultExpression) voidsetReadOnly(boolean isReadOnly)
-
Constructor Details
-
Argument
-
Argument
-
-
Method Details
-
getDataType
- Specified by:
getDataTypein interfaceIArgument
-
getDefaultExpression
- Specified by:
getDefaultExpressionin interfaceIArgument
-
setDefaultExpression
- Specified by:
setDefaultExpressionin interfaceIArgument
-
isReadOnly
public boolean isReadOnly()- Specified by:
isReadOnlyin interfaceIArgument
-
setReadOnly
public void setReadOnly(boolean isReadOnly) - Specified by:
setReadOnlyin interfaceIArgument
-
getMode
-
getName
-
appendDeclaration
public void appendDeclaration(StringBuilder sbString, boolean includeDefaultValue, boolean includeArgName, UnaryOperator<String> quoter) Description copied from interface:IArgumentAppends the argument declaration to a StringBuilder.- Specified by:
appendDeclarationin interfaceIArgument- Parameters:
sbString- the StringBuilder to append toincludeDefaultValue- whether to include the default valueincludeArgName- whether to include the argument namequoter- quoter for arguments
-
equals
-
getCopy
-
hashCode
public int hashCode() -
computeHash
Description copied from interface:IHashableComputes the hash of the implementing object using the provided hasher. The implementation should call appropriateputmethods on the hasher for all fields that should contribute to the hash value.- Specified by:
computeHashin interfaceIHashable- Parameters:
hasher- the hasher instance to use for hash computation
-