Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle WebCenter Content Remote Intradoc Client (RIDC)
11g Release 1 (11.1)

E17274-04


oracle.stellent.ridc.model.impl
Class DataResultSetRow

java.lang.Object
  extended by oracle.stellent.ridc.model.impl.DataResultSetRow

All Implemented Interfaces:
Map<String,String>, DataObject

public class DataResultSetRow
extends Object
implements DataObject

Nested Class Summary

 

Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>

 

Constructor Summary
DataResultSetRow(DataResultSetImpl resultSet, List<String> values)
           

 

Method Summary
 void clear()
           
 boolean containsKey(Object key)
           
 boolean containsValue(Object value)
           
 Set<Map.Entry<String,String>> entrySet()
           
 String get(Object key)
           
 boolean getBoolean(String name, boolean defaultValue)
          Retrieve the result as a boolean
 Calendar getCalendar(String name)
          Retrieve the date.
 Date getDate(String name)
          Retrieve the date.
 int getInteger(String name)
          Retrieve a value as an integer
 boolean isEmpty()
           
 Set<String> keySet()
           
 String put(String key, String value)
           
 void putAll(Map<? extends String,? extends String> t)
           
 String remove(Object key)
           
 void setBoolean(String name, boolean value)
          Set a value as a boolean
 void setDate(String name, Date date)
          Set a date value.
 int size()
           
 Collection<String> values()
           

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Methods inherited from interface java.util.Map
equals, hashCode

 

Constructor Detail

DataResultSetRow

public DataResultSetRow(DataResultSetImpl resultSet,
                        List<String> values)

Method Detail

getBoolean

public boolean getBoolean(String name,
                          boolean defaultValue)
Retrieve the result as a boolean
Specified by:
getBoolean in interface DataObject
Parameters:
name - the property name
defaultValue - the default value if not found
Returns:
the boolean value

setBoolean

public void setBoolean(String name,
                       boolean value)
Set a value as a boolean
Specified by:
setBoolean in interface DataObject
Parameters:
name - the property name
value - the property value

setDate

public void setDate(String name,
                    Date date)
Set a date value. Note the date should be in GMT time.
Specified by:
setDate in interface DataObject
Parameters:
name - the property name
date - the date in GMT time

getDate

public Date getDate(String name)
Retrieve the date. Note the date is in GMT time.
Specified by:
getDate in interface DataObject
Parameters:
name - the property name
Returns:
the date value in GMT or null if not found

getCalendar

public Calendar getCalendar(String name)
Description copied from interface: DataObject
Retrieve the date.
Specified by:
getCalendar in interface DataObject
Parameters:
name - the property name
Returns:
the date value in GMT or null if not found

getInteger

public int getInteger(String name)
Retrieve a value as an integer
Specified by:
getInteger in interface DataObject
Parameters:
name - the property name
Returns:
the integer value or -1 if not found

size

public int size()
Specified by:
size in interface Map<String,String>
Returns:
the number of key-value mappings in this map.

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Map<String,String>
Returns:
true if this map contains no key-value mappings.

containsKey

public boolean containsKey(Object key)
Specified by:
containsKey in interface Map<String,String>
Parameters:
key - key whose presence in this map is to be tested.
Returns:
true if this map contains a mapping for the specified key.
Throws:
ClassCastException - if the key is of an inappropriate type for this map (optional).
NullPointerException - if the key is null and this map does not permit null keys (optional).

containsValue

public boolean containsValue(Object value)
Specified by:
containsValue in interface Map<String,String>
Parameters:
value - value whose presence in this map is to be tested.
Returns:
true if this map maps one or more keys to the specified value.
Throws:
ClassCastException - if the value is of an inappropriate type for this map (optional).
NullPointerException - if the value is null and this map does not permit null values (optional).

get

public String get(Object key)
Specified by:
get in interface Map<String,String>
Parameters:
key - key whose associated value is to be returned.
Returns:
the value to which this map maps the specified key, or null if the map contains no mapping for this key.
Throws:
ClassCastException - if the key is of an inappropriate type for this map (optional).
NullPointerException - if the key is null and this map does not permit null keys (optional).
See Also:
containsKey(Object)

put

public String put(String key,
                  String value)
Specified by:
put in interface Map<String,String>
Parameters:
key - key with which the specified value is to be associated.
value - value to be associated with the specified key.
Returns:
previous value associated with specified key, or null if there was no mapping for key. A null return can also indicate that the map previously associated null with the specified key, if the implementation supports null values.
Throws:
UnsupportedOperationException - if the put operation is not supported by this map.
ClassCastException - if the class of the specified key or value prevents it from being stored in this map.
IllegalArgumentException - if some aspect of this key or value prevents it from being stored in this map.
NullPointerException - if this map does not permit null keys or values, and the specified key or value is null.

remove

public String remove(Object key)
Specified by:
remove in interface Map<String,String>
Parameters:
key - key whose mapping is to be removed from the map.
Returns:
previous value associated with specified key, or null if there was no mapping for key.
Throws:
ClassCastException - if the key is of an inappropriate type for this map (optional).
NullPointerException - if the key is null and this map does not permit null keys (optional).
UnsupportedOperationException - if the remove method is not supported by this map.

putAll

public void putAll(Map<? extends String,? extends String> t)
Specified by:
putAll in interface Map<String,String>
Parameters:
t - Mappings to be stored in this map.
Throws:
UnsupportedOperationException - if the putAll method is not supported by this map.
ClassCastException - if the class of a key or value in the specified map prevents it from being stored in this map.
IllegalArgumentException - some aspect of a key or value in the specified map prevents it from being stored in this map.
NullPointerException - if the specified map is null, or if this map does not permit null keys or values, and the specified map contains null keys or values.

clear

public void clear()
Specified by:
clear in interface Map<String,String>
Throws:
UnsupportedOperationException - clear is not supported by this map.

keySet

public Set<String> keySet()
Specified by:
keySet in interface Map<String,String>
Returns:
a set view of the keys contained in this map.

values

public Collection<String> values()
Specified by:
values in interface Map<String,String>
Returns:
a collection view of the values contained in this map.

entrySet

public Set<Map.Entry<String,String>> entrySet()
Specified by:
entrySet in interface Map<String,String>
Returns:
a set view of the mappings contained in this map.

Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle WebCenter Content Remote Intradoc Client (RIDC)
11g Release 1 (11.1)

E17274-04


Copyright © 2008, 2013, Oracle and/or its affiliates. All rights reserved.