public class ReadMethodsForChroniclesAndSeries extends JDBCDatabaseMethods
| 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 surrogate)
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)
Return the collection of chronicles with a given direct 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 surrogate)
Find a series corresponding to a surrogate.
|
close, executeAndGetNewId, getId, getId, getIdOrZero, makeSurrogate, open, open, openpublic ch.agent.crnickl.api.Chronicle getChronicle(ch.agent.crnickl.api.Surrogate surrogate)
throws ch.agent.crnickl.T2DBException
surrogate - 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
parent - a chroniclech.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 surrogate)
throws ch.agent.crnickl.T2DBException
surrogate - 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
chronicle - a chroniclenames - an array of simple names to plug into the seriesnumbers - an array of numbersch.agent.crnickl.T2DBExceptionCopyright © 2017. All rights reserved.