Package org.openstreetmap.osmosis.hstore
Class PGHStore
java.lang.Object
org.postgresql.util.PGobject
org.openstreetmap.osmosis.hstore.PGHStore
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,String>
This implements a class that handles the PostgreSQL contrib/hstore type
- See Also:
-
Nested Class Summary
-
Field Summary
Fields inherited from class org.postgresql.util.PGobject
type, value -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()booleancontainsKey(Object key) booleancontainsValue(Object value) entrySet()booleanReturns whether an object is equal to this one or notgetValue()Returns the stored information as a stringinthashCode()booleanisEmpty()keySet()voidvoidvoidintsize()values()Methods inherited from class org.postgresql.util.PGobject
clone, equals, getType, isNull, setType, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
PGHStore
public PGHStore()required by the driver -
PGHStore
Initialize a hstore with a given string representation- Parameters:
value- String representated hstore- Throws:
SQLException- Is thrown if the string representation has an unknown format- See Also:
-
PGHStore
-
-
Method Details
-
setValue
-
setValue
- Overrides:
setValuein classorg.postgresql.util.PGobject- Throws:
SQLException
-
getValue
Returns the stored information as a string- Overrides:
getValuein classorg.postgresql.util.PGobject- Returns:
- String represented hstore
-
equals
Returns whether an object is equal to this one or not -
clear
public void clear() -
containsKey
- Specified by:
containsKeyin interfaceMap<String,String>
-
containsValue
- Specified by:
containsValuein interfaceMap<String,String>
-
entrySet
-
get
-
hashCode
public int hashCode() -
isEmpty
public boolean isEmpty() -
keySet
-
put
-
putAll
-
remove
-
size
public int size() -
values
-