Class SingleUseObjectHotRodCrudOperations
java.lang.Object
org.keycloak.models.map.storage.hotRod.HotRodCrudOperations<String,HotRodSingleUseObjectEntity,HotRodSingleUseObjectEntityDelegate,SingleUseObjectValueModel>
org.keycloak.models.map.storage.hotRod.SingleUseObjectHotRodCrudOperations
- All Implemented Interfaces:
CrudOperations<HotRodSingleUseObjectEntityDelegate,
SingleUseObjectValueModel>
public class SingleUseObjectHotRodCrudOperations
extends HotRodCrudOperations<String,HotRodSingleUseObjectEntity,HotRodSingleUseObjectEntityDelegate,SingleUseObjectValueModel>
- Author:
- Martin Kanis
-
Field Summary
Fields inherited from class org.keycloak.models.map.storage.hotRod.HotRodCrudOperations
cloner, isExpirableEntity, keyConverter, storedEntityDescriptor
-
Constructor Summary
ConstructorDescriptionSingleUseObjectHotRodCrudOperations
(KeycloakSession session, org.infinispan.client.hotrod.RemoteCache<String, HotRodSingleUseObjectEntity> remoteCache, StringKeyConverter<String> keyConverter, HotRodEntityDescriptor<HotRodSingleUseObjectEntity, HotRodSingleUseObjectEntityDelegate> storedEntityDescriptor, DeepCloner cloner, Long lockTimeout) -
Method Summary
Modifier and TypeMethodDescriptionCreates an object in the storage.read
(QueryParameters<SingleUseObjectValueModel> queryParameters) Returns stream of objects satisfying givencriteria
from the storage.Methods inherited from class org.keycloak.models.map.storage.hotRod.HotRodCrudOperations
createCriteriaBuilder, delete, delete, exists, getCount, read, update
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.keycloak.models.map.storage.CrudOperations
determineKeyFromValue, exists
-
Constructor Details
-
SingleUseObjectHotRodCrudOperations
public SingleUseObjectHotRodCrudOperations(KeycloakSession session, org.infinispan.client.hotrod.RemoteCache<String, HotRodSingleUseObjectEntity> remoteCache, StringKeyConverter<String> keyConverter, HotRodEntityDescriptor<HotRodSingleUseObjectEntity, HotRodSingleUseObjectEntityDelegate> storedEntityDescriptor, DeepCloner cloner, Long lockTimeout)
-
-
Method Details
-
create
Description copied from interface:CrudOperations
Creates an object in the storage.
ID of thevalue
may be prescribed in id of thevalue
. If the id isnull
or its format is not matching the store internal format for ID, then thevalue
's ID will be generated and returned in the id of the return value.- Specified by:
create
in interfaceCrudOperations<HotRodSingleUseObjectEntityDelegate,
SingleUseObjectValueModel> - Overrides:
create
in classHotRodCrudOperations<String,
HotRodSingleUseObjectEntity, HotRodSingleUseObjectEntityDelegate, SingleUseObjectValueModel> - Parameters:
value
- Entity to create in the store- Returns:
- Entity representing the
value
in the store. It may or may not be the same instance asvalue
- See Also:
-
read
public Stream<HotRodSingleUseObjectEntityDelegate> read(QueryParameters<SingleUseObjectValueModel> queryParameters) Description copied from interface:CrudOperations
Returns stream of objects satisfying givencriteria
from the storage. The criteria are specified in the given criteria builder based on model properties.
IfV
implementsExpirableEntity
this method should not return entities that are expired. SeeExpirableEntity
JavaDoc for more details.- Specified by:
read
in interfaceCrudOperations<HotRodSingleUseObjectEntityDelegate,
SingleUseObjectValueModel> - Overrides:
read
in classHotRodCrudOperations<String,
HotRodSingleUseObjectEntity, HotRodSingleUseObjectEntityDelegate, SingleUseObjectValueModel> - Parameters:
queryParameters
- parameters for the query like firstResult, maxResult, requested ordering, etc.- Returns:
- Stream of objects. Never returns
null
.
-