public interface GridDialect extends Service
| Modifier and Type | Method and Description |
|---|---|
Association |
createAssociation(AssociationKey key)
Create an empty container for the list of tuples corresponding to a given association
Only used if the association data is not present
|
Tuple |
createTuple(EntityKey key)
Return a new tuple for a given key
Only used if the tuple is not present
|
Tuple |
createTupleAssociation(AssociationKey associationKey,
RowKey rowKey) |
Iterator<Tuple> |
executeBackendQuery(CustomQuery customQuery,
EntityKeyMetadata[] metadatas)
Returns the result of a native query executed on the backend.
|
void |
forEachTuple(Consumer consumer,
EntityKeyMetadata... entityKeyMetadatas)
A consumer is called for each tuple matching the selected
EntityKeyMetadata. |
Association |
getAssociation(AssociationKey key,
AssociationContext associationContext)
Return the list of tuples corresponding to a given association and the given context
|
LockingStrategy |
getLockingStrategy(Lockable lockable,
LockMode lockMode) |
Tuple |
getTuple(EntityKey key,
TupleContext tupleContext)
Return the tuple with the given column for a given key
|
void |
nextValue(RowKey key,
IntegralDataTypeHolder value,
int increment,
int initialValue)
Update value with the guaranteed next value with the defined increment
Especially experimental
|
GridType |
overrideType(Type type)
Let the dialect override types if required to customize them to the datastore.
|
void |
removeAssociation(AssociationKey key)
Remove the list of tuples corresponding to a given association
|
void |
removeTuple(EntityKey key)
Remove the tuple for a given key
|
void |
updateAssociation(Association association,
AssociationKey key)
Update a given list of tuples corresponding to a given association
|
void |
updateTuple(Tuple tuple,
EntityKey key)
Update the tuple for a given key or null if not present
|
LockingStrategy getLockingStrategy(Lockable lockable, LockMode lockMode)
Tuple getTuple(EntityKey key, TupleContext tupleContext)
Tuple createTuple(EntityKey key)
void updateTuple(Tuple tuple, EntityKey key)
void removeTuple(EntityKey key)
Association getAssociation(AssociationKey key, AssociationContext associationContext)
Association createAssociation(AssociationKey key)
void updateAssociation(Association association, AssociationKey key)
void removeAssociation(AssociationKey key)
Tuple createTupleAssociation(AssociationKey associationKey, RowKey rowKey)
void nextValue(RowKey key, IntegralDataTypeHolder value, int increment, int initialValue)
GridType overrideType(Type type)
type or null if not overridden.
Most types should not be overridden and thus return null
Experimental: this API might change in the futurevoid forEachTuple(Consumer consumer, EntityKeyMetadata... entityKeyMetadatas)
EntityKeyMetadata.consumer - the instance that is going to be called for every TupleentityKeyMetadatas - the key metadata of the tables for which we want to apply the costumerIterator<Tuple> executeBackendQuery(CustomQuery customQuery, EntityKeyMetadata[] metadatas)
customQuery - the CustomQuery to execute on the backendmetadatas - the metadata information of the results of the queryIterator throught the result of the queryCopyright © 2010-2013 Red Hat, Inc., Emmanuel Bernard and various contributors. All Rights Reserved.