|
Oracle Fusion Middleware Java API Reference for Oracle TopLink (Deprecated) 11g Release 1 (11.1.1) B32476-04 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectoracle.toplink.internal.sessions.AbstractRecord
oracle.toplink.sessions.DatabaseRecord
public class DatabaseRecord
Purpose: Define a representation of a database row as field=>value pairs. This is the database row implementation class, the Record or java.util.Map interfaces should be used to access this class instead of the implemention class.
Responsibilities:
Record,
Map,
Serialized Form| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
java.util.Map.Entry<K,V> |
| Method Summary | |
|---|---|
void |
clear()
Clears the contents of the database row, both fields and values. |
boolean |
contains(java.lang.Object value)
Checks if the given Object value is contained in the values held in the database row. |
boolean |
containsKey(java.lang.Object key)
Checks if a key (ie. the field) is contained in the database row. |
boolean |
containsKey(java.lang.String fieldName)
Checks if a given field is contained in the database row. |
boolean |
containsValue(java.lang.Object value)
Checks if the given Object value is contained in the values held in the database row. |
java.util.Enumeration |
elements()
Returns an Enumeration of the values in the database row. |
java.util.Set |
entrySet()
Returns a set of map entries (ie. field-value pairs)in the database row with the DatabaseFields as keys and the value Objects as values. |
java.lang.Object |
get(java.lang.Object key)
Retrieves the value for the given key. |
java.lang.Object |
get(java.lang.String fieldName)
Retrieves the value with the given name of the DatabaseField. |
java.lang.Object |
getIndicatingNoEntry(java.lang.String fieldName)
Retrieves the value with the given field name. |
java.lang.Object |
getValues(DatabaseField key)
Returns the Object associated with the given key (null if the key does not map to an Object.) |
java.lang.Object |
getValues(java.lang.String key)
Returns the Object associated with the given key (null if the key does not map to an Object.) |
boolean |
isEmpty()
Checks if the database row is empty (ie. there are no field-value pairs.) |
java.util.Enumeration |
keys()
Returns an Enumeration of the DatabaseField Objects. |
java.util.Set |
keySet()
Returns a set of the keys, the DatabaseField Objects, for the database row. |
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
Adds a field-value pair to the row. |
java.lang.Object |
put(java.lang.String key,
java.lang.Object value)
Adds a field-value pair to the row. |
void |
putAll(java.util.Map map)
Adds all of the elements in the given map to the database row. |
int |
size()
Returns the number of field-value pairs in the database row. |
java.util.Collection |
values()
Returns a collection of the values held in the database row. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Map |
|---|
equals, hashCode |
| Method Detail |
|---|
public void clear()
clear in interface java.util.Mapclear in class oracle.toplink.internal.sessions.AbstractRecordpublic boolean contains(java.lang.Object value)
contains in class oracle.toplink.internal.sessions.AbstractRecordvalue - the Object to be considered
public boolean containsKey(java.lang.Object key)
containsKey in interface java.util.MapcontainsKey in class oracle.toplink.internal.sessions.AbstractRecordkey - an Object, either String or DatabaseField
public boolean containsKey(java.lang.String fieldName)
containsKey in class oracle.toplink.internal.sessions.AbstractRecordkey - String, the DatabaseField name
public boolean containsValue(java.lang.Object value)
containsValue in interface java.util.MapcontainsValue in class oracle.toplink.internal.sessions.AbstractRecordvalue - the Object under consideration
public java.util.Enumeration elements()
elements in class oracle.toplink.internal.sessions.AbstractRecordpublic java.util.Set entrySet()
entrySet in interface java.util.MapentrySet in class oracle.toplink.internal.sessions.AbstractRecordMap.entrySet()public java.lang.Object get(java.lang.Object key)
get in interface java.util.Mapget in class oracle.toplink.internal.sessions.AbstractRecordkey - Object, either String or DatabaseField
public java.lang.Object get(java.lang.String fieldName)
get in class oracle.toplink.internal.sessions.AbstractRecordfieldName - String, the DatabaseField name
public java.lang.Object getIndicatingNoEntry(java.lang.String fieldName)
getIndicatingNoEntry in class oracle.toplink.internal.sessions.AbstractRecordfieldName - String, the DatabaseField name
public java.lang.Object getValues(DatabaseField key)
getValues in class oracle.toplink.internal.sessions.AbstractRecordkey - DatabaseField
public java.lang.Object getValues(java.lang.String key)
getValues in class oracle.toplink.internal.sessions.AbstractRecordkey - String
public boolean isEmpty()
isEmpty in interface java.util.MapisEmpty in class oracle.toplink.internal.sessions.AbstractRecordpublic java.util.Enumeration keys()
keys in class oracle.toplink.internal.sessions.AbstractRecordpublic java.util.Set keySet()
keySet in interface java.util.MapkeySet in class oracle.toplink.internal.sessions.AbstractRecord
public java.lang.Object put(java.lang.Object key,
java.lang.Object value)
throws ValidationException
put in interface java.util.Mapput in class oracle.toplink.internal.sessions.AbstractRecordkey - Object, either String or DatabaseFieldvalue - Object
ValidationException - if inappropriate key is used
public java.lang.Object put(java.lang.String key,
java.lang.Object value)
put in class oracle.toplink.internal.sessions.AbstractRecordkey - Stringvalue - Object
public void putAll(java.util.Map map)
putAll in interface java.util.MapputAll in class oracle.toplink.internal.sessions.AbstractRecordmap - Map of all the field-value elements to be addedpublic int size()
size in interface java.util.Mapsize in class oracle.toplink.internal.sessions.AbstractRecordpublic java.util.Collection values()
values in interface java.util.Mapvalues in class oracle.toplink.internal.sessions.AbstractRecord
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||