Class EntityPersisterConcurrentMap
- java.lang.Object
-
- org.hibernate.metamodel.model.domain.internal.EntityPersisterConcurrentMap
-
public final class EntityPersisterConcurrentMap extends Object
Concurrent Map implementation of mappings entity name -> EntityPersister. Concurrency is optimised for read operations; write operations will acquire a lock and are relatively costly: only use for long living, read-mostly use cases. This implementation attempts to avoid type pollution problems.
-
-
Constructor Summary
Constructors Constructor Description EntityPersisterConcurrentMap()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
containsKey(String name)
Map<String,EntityPersister>
convertToMap()
Deprecated, for removal: This API element is subject to removal in a future version.Higly inefficient - do not use; this exists to support other deprecated methods and will be removed.EntityPersister
get(String name)
String[]
keys()
void
put(String name, EntityPersister entityPersister)
void
putIfAbsent(String name, EntityPersister entityPersister)
EntityPersister[]
values()
-
-
-
Method Detail
-
get
public EntityPersister get(String name)
-
values
public EntityPersister[] values()
-
put
public void put(String name, EntityPersister entityPersister)
-
putIfAbsent
public void putIfAbsent(String name, EntityPersister entityPersister)
-
containsKey
public boolean containsKey(String name)
-
keys
public String[] keys()
-
convertToMap
@Deprecated(forRemoval=true) public Map<String,EntityPersister> convertToMap()
Deprecated, for removal: This API element is subject to removal in a future version.Higly inefficient - do not use; this exists to support other deprecated methods and will be removed.
-
-