Class Argument

java.lang.Object
org.pgcodekeeper.core.schema.Argument
All Implemented Interfaces:
Serializable, IHashable
Direct Known Subclasses:
AbstractPgFunction.PgArgument

public class Argument extends Object implements Serializable, IHashable
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 Details

  • Method Details

    • getDataType

      public String getDataType()
    • getDefaultExpression

      public String getDefaultExpression()
    • setDefaultExpression

      public void setDefaultExpression(String defaultExpression)
    • isReadOnly

      public boolean isReadOnly()
    • setReadOnly

      public void setReadOnly(boolean isReadOnly)
    • getMode

      public ArgMode getMode()
    • getName

      public String getName()
    • appendDeclaration

      public void appendDeclaration(StringBuilder sbString, boolean includeDefaultValue, boolean includeArgName)
      Appends the argument declaration to a StringBuilder.
      Parameters:
      sbString - the StringBuilder to append to
      includeDefaultValue - whether to include the default value
      includeArgName - whether to include the argument name
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • computeHash

      public void computeHash(Hasher hasher)
      Description copied from interface: IHashable
      Computes the hash of the implementing object using the provided hasher. The implementation should call appropriate put methods on the hasher for all fields that should contribute to the hash value.
      Specified by:
      computeHash in interface IHashable
      Parameters:
      hasher - the hasher instance to use for hash computation