public enum IdentifierResolutionStrategy extends Enum<IdentifierResolutionStrategy>
PropertyBox
/PropertySet
identifier resolution strategies.
The identifier resolution strategy is used by the JDBC Datastore to perform operations which involve a
PropertyBox
and for which the PropertyBox
identifier properties are required to match the
PropertyBox
data with the database table primary key.
The JDBC Datastore operations which require a consistent idenfier resolution are:
DatastoreOperations.refresh(com.holonplatform.core.datastore.DataTarget, PropertyBox)
,
DatastoreOperations.save(com.holonplatform.core.datastore.DataTarget, PropertyBox, com.holonplatform.core.datastore.DatastoreOperations.WriteOption...)
,
DatastoreOperations.update(com.holonplatform.core.datastore.DataTarget, PropertyBox, com.holonplatform.core.datastore.DatastoreOperations.WriteOption...)
,
DatastoreOperations.delete(com.holonplatform.core.datastore.DataTarget, PropertyBox, com.holonplatform.core.datastore.DatastoreOperations.WriteOption...)
.
Enum Constant and Description |
---|
AUTO
If the
PropertySet bound to the PropertyBox provides provides a not empty identifier property
set, use it as PropertyBox identifier. |
IDENTIFIER_PROPERTIES
Use the
PropertySet identifier properties as PropertyBox identifier. |
TABLE_PRIMARY_KEY
Use the database table primary key to obtain the
PropertyBox identifier. |
Modifier and Type | Method and Description |
---|---|
static IdentifierResolutionStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static IdentifierResolutionStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IdentifierResolutionStrategy AUTO
PropertySet
bound to the PropertyBox
provides provides a not empty identifier property
set, use it as PropertyBox
identifier. Otherwise, try to obtain the PropertyBox
identifier
properties from the database table primary key.public static final IdentifierResolutionStrategy IDENTIFIER_PROPERTIES
PropertySet
identifier properties as PropertyBox
identifier.PropertySet.getIdentifiers()
public static final IdentifierResolutionStrategy TABLE_PRIMARY_KEY
PropertyBox
identifier.public static IdentifierResolutionStrategy[] values()
for (IdentifierResolutionStrategy c : IdentifierResolutionStrategy.values()) System.out.println(c);
public static IdentifierResolutionStrategy valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2019 The Holon Platform. All rights reserved.