dbXML API

org.dbxml.core.data
Class Record

java.lang.Object
  |
  +--org.dbxml.core.data.Record

public final class Record
extends java.lang.Object

Record is a container for Key/Value pairs. Record also provides metadata for a Value stored in the database.


Field Summary
static java.lang.String CREATED
           
static java.lang.String GROUP
           
static java.lang.String MODIFIED
           
static java.lang.String OWNER
           
 
Constructor Summary
Record()
           
Record(Key key, Value value)
           
Record(Key key, Value value, java.util.Map meta)
           
 
Method Summary
 Key getKey()
          getKey returns the Record's Key.
 java.lang.Object getMetaData(java.lang.Object name)
          getMetaData returns metadata about the Value.
 Value getValue()
          getValue returns the Record's Value.
 void setValue(java.lang.String value)
          setValue sets the Record's Value.
 void setValue(Value value)
          setValue sets the Record's Value.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CREATED

public static final java.lang.String CREATED

MODIFIED

public static final java.lang.String MODIFIED

OWNER

public static final java.lang.String OWNER

GROUP

public static final java.lang.String GROUP
Constructor Detail

Record

public Record()

Record

public Record(Key key,
              Value value,
              java.util.Map meta)

Record

public Record(Key key,
              Value value)
Method Detail

getKey

public Key getKey()
getKey returns the Record's Key.
Returns:
The Record's Key

setValue

public void setValue(Value value)
setValue sets the Record's Value.
Parameters:
value - The new Value

setValue

public void setValue(java.lang.String value)
setValue sets the Record's Value.
Parameters:
value - The new Value

getValue

public Value getValue()
getValue returns the Record's Value.
Returns:
The Record's Value

getMetaData

public java.lang.Object getMetaData(java.lang.Object name)
getMetaData returns metadata about the Value.
Parameters:
name - The property name
Returns:
The metadata value

dbXML API

Copyright (c) 1999-2001 The dbXML Group, All rights reserved