Class CpoFunctionGroup
java.lang.Object
org.synchronoss.cpo.core.meta.bean.CpoClassBean
org.synchronoss.cpo.core.meta.bean.CpoFunctionGroupBean
org.synchronoss.cpo.core.meta.domain.CpoFunctionGroup
- All Implemented Interfaces:
Serializable,Comparable<CpoFunctionGroup>
Runtime metadata for a named group of
CpoFunctions that together implement one CRUD
operation (e.g. all the INSERT functions named "cpo_default") for a CpoClass.- Author:
- dberry
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFunction(CpoFunction function) Appends a function to this group.voidRemoves all functions from this group.intGets the functions in this group.booleanremoveFunction(CpoFunction function) Removes a function from this group.toString()Gets the full field-by-field string representation of this function group, as produced byCpoFunctionGroupBean.toString().Methods inherited from class org.synchronoss.cpo.core.meta.bean.CpoFunctionGroupBean
equals, getType, hashCode, setTypeMethods inherited from class org.synchronoss.cpo.core.meta.bean.CpoClassBean
getDescription, getName, setDescription, setName
-
Constructor Details
-
CpoFunctionGroup
public CpoFunctionGroup()Creates an empty instance.
-
-
Method Details
-
getFunctions
Gets the functions in this group.- Returns:
- the functions in this group
-
addFunction
Appends a function to this group. A no-op iffunctionisnull.- Parameters:
function- the function to add
-
removeFunction
Removes a function from this group.- Parameters:
function- the function to remove- Returns:
trueif the function was found and removed,falseotherwise
-
clearFunctions
public void clearFunctions()Removes all functions from this group. -
toString
- Overrides:
toStringin classCpoFunctionGroupBean
-
toStringFull
Gets the full field-by-field string representation of this function group, as produced byCpoFunctionGroupBean.toString().- Returns:
- the full string representation
-
compareTo
Orders function groups by their
toString()representation (type, then name).- Specified by:
compareToin interfaceComparable<CpoFunctionGroup>
-