|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.informatica.data.util.JdbcMap
public class JdbcMap
JDBC-based implementation of the Map interface.
This implementation does not provide all of the optional map operations, and permits null values and the null key.
Uses a MapMetaData object.
This class is experimental and needs some more work.
Map,
MapMetaData| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
Map.Entry<K,V> |
| Constructor Summary | |
|---|---|
JdbcMap()
Constructs a new, empty map with a temporary table. |
|
JdbcMap(MapMetaData md)
Constructs a new, empty map |
|
| Method Summary | |
|---|---|
void |
clear()
|
void |
close()
|
boolean |
containsKey(Object key)
|
boolean |
containsValue(Object value)
|
Set |
entrySet()
|
Object |
get(Object key)
|
void |
init(Connection con)
Initializes the map |
boolean |
isEmpty()
|
Set |
keySet()
|
static void |
main(String[] args)
Testdrive with MySQL |
Object |
put(Object key,
Object value)
|
void |
putAll(Map t)
|
Object |
remove(Object key)
|
int |
size()
|
Collection |
values()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Map |
|---|
equals, hashCode |
| Constructor Detail |
|---|
public JdbcMap(MapMetaData md)
md - MapMetaData object.
IllegalArgumentException - if the table is null or empty string.
public JdbcMap()
throws SQLException
SQLException - if there is any problem creating the temp table| Method Detail |
|---|
public static void main(String[] args)
throws SQLException
SQLException
public void init(Connection con)
throws SQLException
con - Connection
NullPointerException - if the connection is null
SQLException
public void close()
throws SQLException
SQLExceptionpublic int size()
size in interface Mappublic boolean isEmpty()
isEmpty in interface Mappublic boolean containsValue(Object value)
containsValue in interface Mappublic boolean containsKey(Object key)
containsKey in interface Mappublic Object get(Object key)
get in interface Map
public Object put(Object key,
Object value)
put in interface Mappublic Object remove(Object key)
remove in interface Mappublic void putAll(Map t)
putAll in interface Mappublic void clear()
clear in interface Mappublic Set keySet()
keySet in interface Mappublic Collection values()
values in interface Mappublic Set entrySet()
entrySet in interface Map
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||