public interface IdentityColumnAwareGridDialect extends GridDialect
GridDialect facet to be implemented by those stores which support the generation of ids during the
insertion of records (similar to identity columns in RDMBS such as MySQL's auto-increment column type).| Modifier and Type | Method and Description |
|---|---|
Tuple |
createTuple(EntityKeyMetadata entityKeyMetadata,
OperationContext operationContext)
Creates an empty tuple of the specified entity type.
|
void |
insertTuple(EntityKeyMetadata entityKeyMetadata,
Tuple tuple,
TupleContext tupleContext)
Inserts the given tuple into the datastore, generating an id while doing so.
|
createAssociation, createTuple, forEachTuple, getAssociation, getDuplicateInsertPreventionStrategy, getLockingStrategy, getTuple, insertOrUpdateAssociation, insertOrUpdateTuple, isStoredInEntityStructure, nextValue, overrideType, removeAssociation, removeTuple, supportsSequences, usesNavigationalInformationForInverseSideOfAssociationsTuple createTuple(EntityKeyMetadata entityKeyMetadata, OperationContext operationContext)
entityKeyMetadata - Represents the entity type for which the tuple should be createdoperationContext - Provides additional meta-data useful for tuple creationvoid insertTuple(EntityKeyMetadata entityKeyMetadata, Tuple tuple, TupleContext tupleContext)
entityKeyMetadata - The type of the entity to savetuple - The entity column values to savetupleContext - Provides additional meta-data useful for tuple insertionCopyright © 2010-2024 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.