java.lang.Object
java.util.AbstractMap
java.util.HashMap
org.postgresql.pljava.internal.TransactionalMap
- All Implemented Interfaces:
Serializable
,Cloneable
,Map
Deprecated, for removal: This API element is subject to removal in a future version.
A TransactionalMap acts as a modifiable front for a backing map. All
modifications can be reverted by a call to abort or propagated to
the backing map by a call to commit.
The map is not synchronized so care should be taken if multiple threads
will access the map.
- Author:
- Thomas Hallgren
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected class
Deprecated, for removal: This API element is subject to removal in a future version.protected class
Deprecated, for removal: This API element is subject to removal in a future version.protected class
Deprecated, for removal: This API element is subject to removal in a future version.protected class
Deprecated, for removal: This API element is subject to removal in a future version.Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,
V>, AbstractMap.SimpleImmutableEntry<K, V> -
Constructor Summary
ModifierConstructorDescriptionprotected
TransactionalMap
(Map base) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionvoid
abort()
Deprecated, for removal: This API element is subject to removal in a future version.Undo all changes made since the map was created or since last commit or abort.void
clear()
Deprecated, for removal: This API element is subject to removal in a future version.Clear this map (an anti-object is inserted for each entry present in the backed map).void
commit()
Deprecated, for removal: This API element is subject to removal in a future version.Commit all changes made since the map was created or since last commit or abort.boolean
containsKey
(Object key) Deprecated, for removal: This API element is subject to removal in a future version.boolean
containsValue
(Object val) Deprecated, for removal: This API element is subject to removal in a future version.entrySet()
Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.protected Iterator
Deprecated, for removal: This API element is subject to removal in a future version.protected Iterator
Deprecated, for removal: This API element is subject to removal in a future version.protected Iterator
Deprecated, for removal: This API element is subject to removal in a future version.boolean
isEmpty()
Deprecated, for removal: This API element is subject to removal in a future version.keySet()
Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.void
Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.int
size()
Deprecated, for removal: This API element is subject to removal in a future version.values()
Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, newHashMap, putIfAbsent, remove, replace, replace, replaceAll
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Constructor Details
-
TransactionalMap
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
abort
public void abort()Deprecated, for removal: This API element is subject to removal in a future version.Undo all changes made since the map was created or since last commit or abort. -
clear
public void clear()Deprecated, for removal: This API element is subject to removal in a future version.Clear this map (an anti-object is inserted for each entry present in the backed map). -
commit
public void commit()Deprecated, for removal: This API element is subject to removal in a future version.Commit all changes made since the map was created or since last commit or abort. All changes are propagated to the backing map. -
containsKey
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
containsKey
in interfaceMap
- Overrides:
containsKey
in classHashMap
-
get
Deprecated, for removal: This API element is subject to removal in a future version. -
remove
Deprecated, for removal: This API element is subject to removal in a future version. -
size
public int size()Deprecated, for removal: This API element is subject to removal in a future version. -
containsValue
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
containsValue
in interfaceMap
- Overrides:
containsValue
in classHashMap
-
entrySet
Deprecated, for removal: This API element is subject to removal in a future version. -
isEmpty
public boolean isEmpty()Deprecated, for removal: This API element is subject to removal in a future version. -
keySet
Deprecated, for removal: This API element is subject to removal in a future version. -
put
Deprecated, for removal: This API element is subject to removal in a future version. -
putAll
Deprecated, for removal: This API element is subject to removal in a future version. -
values
Deprecated, for removal: This API element is subject to removal in a future version. -
getEntryIterator
Deprecated, for removal: This API element is subject to removal in a future version. -
getKeyIterator
Deprecated, for removal: This API element is subject to removal in a future version. -
getValueIterator
Deprecated, for removal: This API element is subject to removal in a future version.
-
pljava-api
, (b) is only used to implement the once-transactional attribute map inSession
, and (c) hasn't had transactional behavior even there, since 3ab90e5 (November 2005). Future code needing any kind of store sync'd to PostgreSQL transactions should implement that behavior with Java's ordinary tools, using aTransactionListener
to be kept in sync with transactions.