|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openanzo.common.rdb.layout.ValueLayout
public class ValueLayout
Provides read/write access to persisted string values of limited length in a single table. This class's original purpose was for storing RDF datatype and language strings. The length limit is database dependant. For example, a DB2 instance may limit length to 250 chars.
| Constructor Summary | |
|---|---|
ValueLayout(SQLCache sqlCache,
NodeType type,
Sequence sequence,
java.lang.String sequenceName,
java.lang.String tableName,
java.lang.String optimizationString)
Construct a layout to store String values in a database |
|
| 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 |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ValueLayout(SQLCache sqlCache,
NodeType type,
Sequence sequence,
java.lang.String sequenceName,
java.lang.String tableName,
java.lang.String optimizationString)
type - Type of nodes this is storingsqlCache - The interface to the SQL prepared statement cachesequence - The sequence Object that is used to get IDssequenceName - The name of the sequence that is used to get IDstableName - The name of the table where the nodes are storedoptimizationString - Extra parameters added to queries for database specific optimizations| Method Detail |
|---|
public java.lang.Long store(java.lang.String value)
IValueLayout
store in interface IValueLayoutvalue - value to store
public java.lang.Long fetchId(java.lang.String value)
IValueLayout
fetchId in interface IValueLayoutvalue - value to lookup
public java.lang.String fetchValue(java.lang.Long id)
IValueLayout
fetchValue in interface IValueLayoutid - id to lookup
public void batchAdd(java.util.Iterator<java.lang.String> iter)
IValueLayout
batchAdd in interface IValueLayoutiter - Set of strings to storepublic ClosableIterator<NodeSQL.FetchAllCommonValuesResult> fetchAll()
IValueLayout
fetchAll in interface IValueLayout
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||