Package org.pgcodekeeper.core.schema
Class Argument
java.lang.Object
org.pgcodekeeper.core.schema.Argument
- All Implemented Interfaces:
Serializable,IHashable
- Direct Known Subclasses:
AbstractPgFunction.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) Appends the argument declaration to a StringBuilder.voidcomputeHash(Hasher hasher) Computes the hash of the implementing object using the provided hasher.booleangetMode()getName()inthashCode()booleanvoidsetDefaultExpression(String defaultExpression) voidsetReadOnly(boolean isReadOnly)
-
Constructor Details
-
Argument
-
Argument
-
-
Method Details
-
getDataType
-
getDefaultExpression
-
setDefaultExpression
-
isReadOnly
public boolean isReadOnly() -
setReadOnly
public void setReadOnly(boolean isReadOnly) -
getMode
-
getName
-
appendDeclaration
public void appendDeclaration(StringBuilder sbString, boolean includeDefaultValue, boolean includeArgName) Appends the argument declaration to a StringBuilder.- Parameters:
sbString- the StringBuilder to append toincludeDefaultValue- whether to include the default valueincludeArgName- whether to include the argument name
-
equals
-
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
-