public class ReadMethodsForChroniclesAndSeries extends MongoDatabaseMethods
MongoDatabaseMethods.Operator| Constructor and Description |
|---|
ReadMethodsForChroniclesAndSeries() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getAttributeValue(List<ch.agent.crnickl.api.Chronicle> chronicles,
ch.agent.crnickl.api.Attribute<?> attribute)
The method completes the attribute with the value found for one of the
entities in the list and returns true.
|
ch.agent.crnickl.api.Chronicle |
getChronicle(ch.agent.crnickl.api.Surrogate s)
Find a chronicle corresponding to a surrogate.
|
ch.agent.crnickl.api.Chronicle |
getChronicleOrNull(ch.agent.crnickl.api.Chronicle parent,
String name)
Find a chronicle with a given parent and name.
|
<T> List<ch.agent.crnickl.api.Chronicle> |
getChroniclesByAttributeValue(ch.agent.crnickl.api.Property<T> property,
T value,
int maxSize)
Return a list of chronicles with a given value for a given property.
|
Collection<ch.agent.crnickl.api.Chronicle> |
getChroniclesByParent(ch.agent.crnickl.api.Chronicle parent) |
<T> ch.agent.crnickl.api.Series<T>[] |
getSeries(ch.agent.crnickl.api.Chronicle chronicle,
String[] names,
int[] numbers)
Return array of series in the positions corresponding to the
requested numbers.
|
<T> ch.agent.crnickl.api.Series<T> |
getSeries(ch.agent.crnickl.api.Surrogate s)
Find a series corresponding to a surrogate.
|
addOperation, asQuery, compositeName, extractRegexp, getId, getId, getIdOrZero, getMongoDB, getMongoDB, getMongoDB, getObject, getObjectId, makeSurrogate, mongoObject, operationpublic ch.agent.crnickl.api.Chronicle getChronicle(ch.agent.crnickl.api.Surrogate s)
throws ch.agent.crnickl.T2DBException
s - a surrogatech.agent.crnickl.T2DBExceptionpublic ch.agent.crnickl.api.Chronicle getChronicleOrNull(ch.agent.crnickl.api.Chronicle parent,
String name)
throws ch.agent.crnickl.T2DBException
parent - a chroniclename - a stringch.agent.crnickl.T2DBExceptionpublic Collection<ch.agent.crnickl.api.Chronicle> getChroniclesByParent(ch.agent.crnickl.api.Chronicle parent) throws ch.agent.crnickl.T2DBException
ch.agent.crnickl.T2DBExceptionpublic boolean getAttributeValue(List<ch.agent.crnickl.api.Chronicle> chronicles, ch.agent.crnickl.api.Attribute<?> attribute) throws ch.agent.crnickl.T2DBException
chronicles - a list of chroniclesattribute - an attributech.agent.crnickl.T2DBExceptionpublic <T> List<ch.agent.crnickl.api.Chronicle> getChroniclesByAttributeValue(ch.agent.crnickl.api.Property<T> property, T value, int maxSize) throws ch.agent.crnickl.T2DBException
property - a propertyvalue - a valuemaxSize - the maximum size of the result or 0 for no limitch.agent.crnickl.T2DBExceptionpublic <T> ch.agent.crnickl.api.Series<T> getSeries(ch.agent.crnickl.api.Surrogate s)
throws ch.agent.crnickl.T2DBException
s - a surrogatech.agent.crnickl.T2DBExceptionpublic <T> ch.agent.crnickl.api.Series<T>[] getSeries(ch.agent.crnickl.api.Chronicle chronicle,
String[] names,
int[] numbers)
throws ch.agent.crnickl.T2DBException
Note. There is no exception if the chronicle does not exist. This behavior makes it easier to implement the wishful transaction protocol (i.e. testing again if it was okay to delete a chronicle after it was deleted).
chronicle - a chroniclenames - an array of simple names to plug into the seriesnumbers - an array of numbersch.agent.crnickl.T2DBExceptionCopyright © 2013. All Rights Reserved.