public class UniqueIndexLookup
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private java.util.List<java.lang.String> |
properties
The properties of the unique index, not necessarily in order
|
private java.util.List<java.lang.Object> |
values
The values used for look-up; the order matched the order of the properties
A null value means a value that is provided latter (by substitution parameters).
|
| Constructor and Description |
|---|
UniqueIndexLookup()
Basic constructor
|
UniqueIndexLookup(UniqueIndexLookup prototype)
Copy constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addMapping(java.lang.String property,
java.lang.Object value)
Add a new property-value mapping to this look-up.
|
boolean |
fill(java.lang.Object[] fillValues)
Fill the
null values from the values array with the provided fill values. |
java.lang.String[] |
getProperties()
Retrieve the properties as an array.
|
java.lang.Object[] |
getValues()
Retrieve the values as an array.
|
private java.util.List<java.lang.String> properties
private java.util.List<java.lang.Object> values
public UniqueIndexLookup()
public UniqueIndexLookup(UniqueIndexLookup prototype)
prototype - The prototype to be used when building this object.public boolean fill(java.lang.Object[] fillValues)
null values from the values array with the provided fill values.
This is used to lazily add the substitution parameters when needed.fillValues - The values to be used when filling the parameters array.true if the filling succeeded. If this returns false, the
object reaches a stale state, so avoid using it.public void addMapping(java.lang.String property,
java.lang.Object value)
property - The property from an unique index.value - The value to be used when doing look-up.public java.lang.String[] getProperties()
public java.lang.Object[] getValues()