org.openanzo.common.rdb.layout
Interface IValueLayout

All Known Implementing Classes:
ValueLayout, ValueLayoutCacheProxy

public interface IValueLayout

Provides read/write access to persisted string values of limited length. This class's original purpose was for storing RDF datatype and language strings. The length limit is database dependent. For example, a DB2 instance may limit length to 250 chars.

Author:
Joe Betz, Stephen Evanchik

Method Summary
 void batchAdd(java.util.Iterator<java.lang.String> iter)
          Add a set of strings, ignoring resulting IDs
 ClosableIterator<NodeSQL.FetchAllCommonValuesResult> fetchAll()
          FetchAll the values for this type
 java.lang.Long fetchId(java.lang.String value)
          Fetch the ID for this value
 java.lang.String fetchValue(java.lang.Long id)
          Fetch the value for this ID
 java.lang.Long store(java.lang.String value)
          Store String value
 

Method Detail

store

java.lang.Long store(java.lang.String value)
Store String value

Parameters:
value - value to store
Returns:
ID of stored value

fetchId

java.lang.Long fetchId(java.lang.String value)
Fetch the ID for this value

Parameters:
value - value to lookup
Returns:
ID of stored value

fetchValue

java.lang.String fetchValue(java.lang.Long id)
Fetch the value for this ID

Parameters:
id - id to lookup
Returns:
the value for this ID

batchAdd

void batchAdd(java.util.Iterator<java.lang.String> iter)
Add a set of strings, ignoring resulting IDs

Parameters:
iter - Set of strings to store

fetchAll

ClosableIterator<NodeSQL.FetchAllCommonValuesResult> fetchAll()
FetchAll the values for this type

Returns:
all values for this type


Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.