Package org.synchronoss.cpo.core
Record Class BindAttribute
java.lang.Object
java.lang.Record
org.synchronoss.cpo.core.BindAttribute
- Record Components:
cpoAttribute- the resolved bean attribute this value should be bound to, ornullif this instance was created with a raw name insteadbindObject- the value to bindname- the raw attribute or column name this value should be bound to, ornullif this instance was created with a resolvedCpoAttributeinstead
public record BindAttribute(CpoAttribute cpoAttribute, Object bindObject, String name)
extends Record
BindAttribute pairs a single bind value produced while walking a CpoWhere tree
(see BindableWhereBuilder) with either the resolved CpoAttribute it belongs to,
or, when no matching bean attribute exists, the raw attribute name it was addressed by.- Author:
- david.berry
-
Constructor Summary
ConstructorsConstructorDescriptionBindAttribute(String name, Object bindObject) Creates an instance for a value that has no matching bean attribute, identified instead by name (for example, a raw column name used directly in a where clause).BindAttribute(CpoAttribute cpoAttribute, Object bindObject) Creates an instance bound to a resolved bean attribute.BindAttribute(CpoAttribute cpoAttribute, Object bindObject, String name) Creates an instance of aBindAttributerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebindObjectrecord component.Returns the value of thecpoAttributerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BindAttribute
Creates an instance bound to a resolved bean attribute.- Parameters:
cpoAttribute- the attribute this value should be bound tobindObject- the value to bind
-
BindAttribute
Creates an instance for a value that has no matching bean attribute, identified instead by name (for example, a raw column name used directly in a where clause).- Parameters:
name- the attribute or column name this value should be bound tobindObject- the value to bind
-
BindAttribute
Creates an instance of aBindAttributerecord class.- Parameters:
cpoAttribute- the value for thecpoAttributerecord componentbindObject- the value for thebindObjectrecord componentname- the value for thenamerecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
cpoAttribute
Returns the value of thecpoAttributerecord component.- Returns:
- the value of the
cpoAttributerecord component
-
bindObject
Returns the value of thebindObjectrecord component.- Returns:
- the value of the
bindObjectrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-