public class ERXKeyValueBinding extends Object implements ERXSQLBinding
The keypath refers to the base entity of the SQL expression. As an example, if the
base entity is Person, then a binding for person's first name would have a keypath
of "firstName". The name of the person's department would be "department.name". The
keypath is used to inspect the model and obtain the correct EOAttribute
used
to handle SQL generation (value type, conversion, etc).
Constructor and Description |
---|
ERXKeyValueBinding(String keyPath,
Object value)
Obtains new binding wrapper for passed in EOF key and value
|
Modifier and Type | Method and Description |
---|---|
String |
keyPath()
The EOF key of the wrapped binding
|
String |
sqlStringForBindingOnExpression(EOSQLExpression expression)
Registers the binding on a given SQL expression, and obtains the
binding placeholder string for the binding value.
|
Object |
value()
The value of the binded variable
|
public String keyPath()
public Object value()
public String sqlStringForBindingOnExpression(EOSQLExpression expression)
ERXSQLBinding
sqlStringForBindingOnExpression
in interface ERXSQLBinding
expression
- EOSQLExpression being builtCopyright © 2002 – 2024 Project Wonder.