Class CpoArgument

java.lang.Object
org.synchronoss.cpo.core.meta.bean.CpoClassBean
org.synchronoss.cpo.core.meta.domain.CpoArgument
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
JdbcCpoArgument

public class CpoArgument extends CpoClassBean
Represents a single bound argument of a CpoFunction: a reference to the CpoAttribute whose value is supplied for one of the function's bind markers. Setting the attribute also takes this argument's name from the attribute's Java name.
Author:
dberry
See Also:
  • Constructor Details

    • CpoArgument

      public CpoArgument()
      Creates an empty instance.
  • Method Details

    • getAttribute

      public CpoAttribute getAttribute()
      Gets the attribute bound to this argument.
      Returns:
      the bound attribute
    • setAttribute

      public void setAttribute(CpoAttribute attribute)
      Sets the attribute bound to this argument, and updates this argument's name to match the attribute's Java name.
      Parameters:
      attribute - the attribute to bind
    • toString

      public String toString()

      Returns this argument's description.

      Overrides:
      toString in class CpoClassBean
    • toStringFull

      public String toStringFull()
      Gets the full field-by-field string representation of this argument, as produced by CpoClassBean.toString().
      Returns:
      the full string representation