public class SQLMap extends SQLProxy implements Map<String,Object>
| Constructor and Description |
|---|
SQLMap(SQLRootElement rootElement,
int tableId)
Constructor
|
SQLMap(SQLRootElement rootElement,
Map<String,Object> other)
Constructor for creating a new SQLMap from another Map
|
SQLMap(SQLRootElement rootElement,
String tableIdWithprefix)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Delete all map elements
|
boolean |
containsKey(Object key)
Check if map contains the given key (name)
|
boolean |
containsValue(Object value)
Check if map contains the given value
|
Set<Map.Entry<String,Object>> |
entrySet()
Return map elements as entry sets
|
Object |
get(Object key)
Get value of map element that is identified by given key
|
boolean |
isEmpty()
Check if map is empty
|
Set<String> |
keySet()
Get the set of keys from SQL database
|
Object |
put(String key,
Object value)
Put a key into a map
|
void |
putAll(Map<? extends String,? extends Object> map)
Put all elements into map
|
Object |
remove(Object key)
Remove element with key from map
|
int |
size()
Get number of map elements
|
Collection<Object> |
values()
Get map values that are contained in the SQL database
|
getDriver, getSqlTableIDequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAllpublic SQLMap(SQLRootElement rootElement, int tableId)
rootElement - SQLRootElement for this elementtableId - Table ID of this element in SQL databasepublic SQLMap(SQLRootElement rootElement, String tableIdWithprefix)
rootElement - SQLRootElement for this elementtableIdWithprefix - Table ID of this element in SQL database with prefixpublic SQLMap(SQLRootElement rootElement, Map<String,Object> other)
public int size()
public boolean isEmpty()
public boolean containsKey(Object key)
containsKey in interface Map<String,Object>public boolean containsValue(Object value)
containsValue in interface Map<String,Object>public void clear()
public Collection<Object> values()
Copyright © 2021. All rights reserved.