org.openbandy.io.storage
Class StorageValueContainer
java.lang.Object
org.openbandy.io.ValueContainer
org.openbandy.io.storage.StorageValueContainer
- Direct Known Subclasses:
- DatabaseValueContainer, RmsValueContainer
public abstract class StorageValueContainer
- extends ValueContainer
An implementation of the ValueContainer interface for storage
purposes. It uses ObjectEntry objects to set and get attribute values.
(c) Copyright P. Bolliger 2007, ALL RIGHTS RESERVED.
- Version:
- 1.0
- Author:
- Philipp Bolliger (philipp@bolliger.name)
Methods inherited from class org.openbandy.io.ValueContainer |
addByte, addChar, addDouble, addFloat, addInt, addLong, addShort, addTimestamp, getByte, getChar, getDouble, getFloat, getInt, getLong, getShort, getString, getTimestamp |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
objectEntry
public ObjectEntry objectEntry
StorageValueContainer
public StorageValueContainer()
setObjectIdString
public void setObjectIdString(ObjectIdString objectIdString)
addString
public void addString(java.lang.String name,
java.lang.String value)
- Specified by:
addString
in class ValueContainer
- Parameters:
name
- -
the name of the attributevalue
- -
the String value of the attribute
addBoolean
public void addBoolean(java.lang.String name,
boolean value)
- Overrides:
addBoolean
in class ValueContainer
- Parameters:
name
- -
the name of the attributevalue
- -
the boolean value of the attribute
getBoolean
public boolean getBoolean(java.lang.String name)
- Overrides:
getBoolean
in class ValueContainer
- Parameters:
name
- -
the name of the attribute
- Returns:
- Returns the corresponding boolean value if available,
false
else
getIdForObject
public int getIdForObject(Serializable serializable)