public class NameSpace extends UpdatableChronicleImpl
ChronicleImpl.RawData
Constructor and Description |
---|
NameSpace(String name,
String description,
Surrogate surrogate)
Construct a name space, also known as top level chronicle.
|
Modifier and Type | Method and Description |
---|---|
<T> UpdatableSeries<T> |
createSeries(String name)
Always throws an exception.
|
void |
destroy()
Always throws an exception.
|
UpdatableChronicle |
edit()
Return this object.
|
boolean |
equals(Object obj) |
Attribute<?> |
getAttribute(String name,
boolean mustExist)
Always throws an exception.
|
Chronicle |
getCollection()
Return null.
|
String |
getDescription(boolean full)
Return the description of the chronicle.
|
List<String> |
getDescriptions()
Return the list of all descriptions along the chronicle chain.
|
String |
getName(boolean full)
Return the name of the chronicle.
|
List<String> |
getNames()
Return the list of all names along the chronicle chain.
|
Schema |
getSchema(boolean effective)
Return null.
|
<T> Series<T> |
getSeries(String name)
Always throws an exception.
|
int |
hashCode() |
boolean |
isTopChronicle()
Return true.
|
void |
setAttribute(Attribute<?> value)
Always throws an exception.
|
void |
setDescription(String description)
Always throws an exception.
|
void |
setName(String name)
Always throws an exception.
|
String |
toString() |
<T> UpdatableSeries<T> |
updateSeries(String name)
Always throws an exception.
|
applyUpdates, createChronicle, setCollection, setSchema, update, updateAttributes
findChronicle, getAttributes, getChronicle, getMembers, getSeries, getSeries, isMemberOf
getDatabase, getId, getSurrogate, inConstruction, isValid
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findChronicle, getAttributes, getChronicle, getMembers, getSeries, getSeries, isMemberOf
getDatabase, getId, getSurrogate, inConstruction, isValid
public UpdatableChronicle edit()
edit
in interface Chronicle
edit
in class UpdatableChronicleImpl
public boolean isTopChronicle()
isTopChronicle
in interface Chronicle
isTopChronicle
in class ChronicleImpl
public Chronicle getCollection() throws T2DBException
getCollection
in interface Chronicle
getCollection
in class UpdatableChronicleImpl
T2DBException
public Schema getSchema(boolean effective) throws T2DBException
getSchema
in interface Chronicle
getSchema
in class UpdatableChronicleImpl
effective
- if true return the first non-null schema along the chronicle chainT2DBException
public String getName(boolean full) throws T2DBException
The simple name and the full name are identical. By convention the name space is named after the database.
getName
in interface Chronicle
getName
in class UpdatableChronicleImpl
full
- if true return the full name, else the simple nameT2DBException
public List<String> getNames() throws T2DBException
Chronicle
getNames
in interface Chronicle
getNames
in class ChronicleImpl
T2DBException
public String getDescription(boolean full) throws T2DBException
Chronicle
getDescription
in interface Chronicle
getDescription
in class UpdatableChronicleImpl
full
- if true return the full description, else the simple
descriptionT2DBException
public List<String> getDescriptions() throws T2DBException
Chronicle
getDescriptions
in interface Chronicle
getDescriptions
in class ChronicleImpl
T2DBException
public Attribute<?> getAttribute(String name, boolean mustExist) throws T2DBException
getAttribute
in interface Chronicle
getAttribute
in class UpdatableChronicleImpl
name
- a stringmustExist
- if true throw an exception instead of returning nullT2DBException
public <T> Series<T> getSeries(String name) throws T2DBException
getSeries
in interface Chronicle
getSeries
in class UpdatableChronicleImpl
T
- the data type of the underlying time seriesname
- the simple name if the seriesT2DBException
public <T> UpdatableSeries<T> createSeries(String name) throws T2DBException
createSeries
in interface UpdatableChronicle
createSeries
in class UpdatableChronicleImpl
name
- a series name defined in the schemaT2DBException
public <T> UpdatableSeries<T> updateSeries(String name) throws T2DBException
updateSeries
in interface UpdatableChronicle
updateSeries
in class UpdatableChronicleImpl
name
- a series name defined in the schemaT2DBException
public void setName(String name) throws T2DBException
setName
in interface UpdatableChronicle
setName
in class UpdatableChronicleImpl
name
- a stringT2DBException
public void setDescription(String description) throws T2DBException
setDescription
in interface UpdatableChronicle
setDescription
in class UpdatableChronicleImpl
description
- a stringT2DBException
public void setAttribute(Attribute<?> value) throws T2DBException
setAttribute
in interface UpdatableChronicle
setAttribute
in class UpdatableChronicleImpl
value
- an attributeT2DBException
public void destroy() throws T2DBException
destroy
in interface UpdatableChronicle
destroy
in class UpdatableChronicleImpl
T2DBException
public int hashCode()
hashCode
in class DBObjectImpl
public boolean equals(Object obj)
equals
in class DBObjectImpl
public String toString()
toString
in class ChronicleImpl
Copyright © 2017. All rights reserved.