public class JDBCDatabase
extends ch.agent.crnickl.impl.DatabaseBackendImpl
DatabaseBackendImpl.BUILTIN_PROP_SPARSITY, BUILTIN_PROP_SYMBOL, BUILTIN_PROP_TIME_DOMAIN, BUILTIN_PROP_TYPE, DB_PARAM_Boolean_STRICT_NAME_SPACE, DB_PARAM_Boolean_STRICT_NAME_SPACE_DEFAULT, DB_PARAM_Class_ChronicleUpdatePolicyExtension, DB_PARAM_Class_PermissionChecker, DB_PARAM_Float_CACHE_LOAD_FACTOR, DB_PARAM_Float_CACHE_LOAD_FACTOR_DEFAULT, DB_PARAM_Int_CACHE_SIZE, DB_PARAM_Int_CACHE_SIZE_DEFAULT, MAGIC_NAME_NR, MAGIC_SPARSITY_NR, MAGIC_TIMEDOMAIN_NR, MAGIC_TYPE_NR, MAX_MAGIC_NR| Constructor and Description |
|---|
JDBCDatabase(String name,
ch.agent.t2.time.TimeDomainCatalog timeDomainCatalog)
Construct a
DatabaseBackend. |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
commit() |
void |
configure(ch.agent.crnickl.api.DatabaseConfiguration configuration) |
void |
create(ch.agent.crnickl.api.UpdatableChronicle entity) |
void |
create(ch.agent.crnickl.api.UpdatableProperty<?> property) |
void |
create(ch.agent.crnickl.api.UpdatableSchema schema) |
<T> void |
create(ch.agent.crnickl.api.UpdatableSeries<T> series) |
<T> void |
create(ch.agent.crnickl.api.UpdatableValueType<T> valueType) |
void |
deleteAttributeValue(ch.agent.crnickl.api.UpdatableChronicle entity,
ch.agent.crnickl.api.AttributeDefinition<?> def) |
void |
deleteChronicle(ch.agent.crnickl.api.UpdatableChronicle entity) |
void |
deleteProperty(ch.agent.crnickl.api.UpdatableProperty<?> property) |
void |
deleteSchema(ch.agent.crnickl.api.UpdatableSchema schema) |
<T> void |
deleteSeries(ch.agent.crnickl.api.UpdatableSeries<T> series) |
void |
deleteValueType(ch.agent.crnickl.api.UpdatableValueType<?> valueType) |
ch.agent.crnickl.api.Surrogate |
findChronicle(ch.agent.crnickl.api.Property<?> property,
ch.agent.crnickl.api.Schema schemas) |
ch.agent.crnickl.api.Surrogate |
findChronicle(ch.agent.crnickl.api.Schema schema) |
ch.agent.crnickl.api.Surrogate |
findChronicle(ch.agent.crnickl.api.SeriesDefinition ss,
ch.agent.crnickl.api.Schema schema) |
boolean |
getAttributeValue(List<ch.agent.crnickl.api.Chronicle> chronicles,
ch.agent.crnickl.api.Attribute<?> attribute) |
ch.agent.crnickl.api.Chronicle |
getChronicle(ch.agent.crnickl.api.Chronicle chronicle) |
ch.agent.crnickl.api.Chronicle |
getChronicleOrNull(ch.agent.crnickl.api.Chronicle parent,
String simpleName) |
<T> List<ch.agent.crnickl.api.Chronicle> |
getChroniclesByAttributeValue(ch.agent.crnickl.api.Property<T> property,
T value,
int maxSize) |
Collection<ch.agent.crnickl.api.Chronicle> |
getChroniclesByParent(ch.agent.crnickl.api.Chronicle parent) |
Connection |
getConnection() |
Collection<ch.agent.crnickl.api.Property<?>> |
getProperties(String pattern) |
ch.agent.crnickl.api.Property<?> |
getProperty(String name) |
ch.agent.crnickl.api.Property<?> |
getProperty(ch.agent.crnickl.api.Surrogate surrogate) |
protected ReadMethodsForChroniclesAndSeries |
getReadMethodsForChronicleAndSeries()
Return the object providing read methods for chronicles and series.
|
protected ReadMethodsForProperty |
getReadMethodsForProperty()
Return the object providing read methods for properties.
|
protected ReadMethodsForSchema |
getReadMethodsForSchema()
Return the object providing read methods for schemas.
|
protected ReadMethodsForValueType |
getReadMethodsForValueType()
Return the object providing read methods for value types.
|
Collection<ch.agent.crnickl.api.Surrogate> |
getSchemaSurrogates(String pattern) |
ch.agent.crnickl.impl.SchemaUpdatePolicy |
getSchemaUpdatePolicy() |
<T> ch.agent.crnickl.api.Series<T>[] |
getSeries(ch.agent.crnickl.api.Chronicle chronicle,
String[] names,
int[] numbers) |
<T> ch.agent.crnickl.api.Series<T> |
getSeries(ch.agent.crnickl.api.Surrogate surrogate) |
ch.agent.crnickl.api.UpdatableSchema |
getUpdatableSchema(ch.agent.crnickl.api.Surrogate surrogate) |
<T> ch.agent.crnickl.api.ValueType<T> |
getValueType(String name) |
<T> ch.agent.crnickl.api.ValueType<T> |
getValueType(ch.agent.crnickl.api.Surrogate surrogate) |
Collection<ch.agent.crnickl.api.ValueType<?>> |
getValueTypes(String pattern) |
protected WriteMethodsForChroniclesAndSeries |
getWriteMethodsForChroniclesAndSeries()
Return the object providing write methods for chronicles and series.
|
protected WriteMethodsForProperty |
getWriteMethodsForProperty()
Return the object providing write methods for properties.
|
protected WriteMethodsForSchema |
getWriteMethodsForSchema()
Return the object providing write methods for schemas.
|
protected WriteMethodsForValueType |
getWriteMethodsForValueType()
Return the object providing write methods for value types.
|
ch.agent.crnickl.api.DBObjectId |
makeDBObjectId(Object object) |
void |
open() |
void |
rollback() |
String |
toString() |
void |
update(ch.agent.crnickl.api.UpdatableChronicle entity) |
void |
update(ch.agent.crnickl.api.UpdatableChronicle entity,
ch.agent.crnickl.api.AttributeDefinition<?> def,
String value,
String description) |
void |
update(ch.agent.crnickl.api.UpdatableProperty<?> property) |
void |
update(ch.agent.crnickl.api.UpdatableSchema schema) |
void |
update(ch.agent.crnickl.api.UpdatableValueType<?> valueType) |
check, check, check, check, checkSurrogate, clear, createProperty, createSchema, createValueType, deleteValue, equals, getAccessMethods, getCache, getChronicle, getChronicle, getChronicleUpdatePolicy, getFirstObservation, getLastObservation, getMessageListener, getNamingPolicy, getPermissionChecker, getProperty, getRange, getSchema, getSchemas, getSeries, getSparsityBuiltInProperty, getSymbolBuiltInProperty, getTimeDomainBuiltInProperty, getTimeDomainCatalog, getTopChronicle, getTypeBuiltInProperty, getUpdatableSchema, getUpdatableSchemas, getUpdatableSeries, getUpdateEventPublisher, getValues, hashCode, isBuiltIn, isChronicleUpdatePolicyExtensionAllowed, isChronicleUpdatePolicyExtensionMandatory, isStrictNameSpaceMode, makeSurrogate, publish, setAccessMethods, setMessageListener, setStrictNameSpaceMode, update, updatepublic JDBCDatabase(String name, ch.agent.t2.time.TimeDomainCatalog timeDomainCatalog)
DatabaseBackend.name - the name of the databasetimeDomainCatalog - the catalog for scanning time domainspublic void open()
throws ch.agent.crnickl.T2DBException
open in interface ch.agent.crnickl.api.Databaseopen in class ch.agent.crnickl.impl.DatabaseBackendImplch.agent.crnickl.T2DBExceptionpublic void close()
throws ch.agent.crnickl.T2DBException
close in interface ch.agent.crnickl.api.Databaseclose in class ch.agent.crnickl.impl.DatabaseBackendImplch.agent.crnickl.T2DBExceptionpublic void configure(ch.agent.crnickl.api.DatabaseConfiguration configuration)
throws ch.agent.crnickl.T2DBException
configure in interface ch.agent.crnickl.api.Databaseconfigure in class ch.agent.crnickl.impl.DatabaseBackendImplch.agent.crnickl.T2DBExceptionpublic ch.agent.crnickl.impl.SchemaUpdatePolicy getSchemaUpdatePolicy()
getSchemaUpdatePolicy in interface ch.agent.crnickl.impl.DatabaseBackendgetSchemaUpdatePolicy in class ch.agent.crnickl.impl.DatabaseBackendImplpublic Connection getConnection() throws ch.agent.crnickl.T2DBException
ch.agent.crnickl.T2DBExceptionpublic ch.agent.crnickl.api.DBObjectId makeDBObjectId(Object object) throws ch.agent.crnickl.T2DBException
ch.agent.crnickl.T2DBExceptionpublic void commit()
throws ch.agent.crnickl.T2DBException
ch.agent.crnickl.T2DBExceptionpublic void rollback()
throws ch.agent.crnickl.T2DBException
ch.agent.crnickl.T2DBExceptionprotected ReadMethodsForChroniclesAndSeries getReadMethodsForChronicleAndSeries()
protected WriteMethodsForChroniclesAndSeries getWriteMethodsForChroniclesAndSeries()
public void create(ch.agent.crnickl.api.UpdatableChronicle entity)
throws ch.agent.crnickl.T2DBException
ch.agent.crnickl.T2DBExceptionpublic void update(ch.agent.crnickl.api.UpdatableChronicle entity)
throws ch.agent.crnickl.T2DBException
ch.agent.crnickl.T2DBExceptionpublic void deleteAttributeValue(ch.agent.crnickl.api.UpdatableChronicle entity,
ch.agent.crnickl.api.AttributeDefinition<?> def)
throws ch.agent.crnickl.T2DBException
ch.agent.crnickl.T2DBExceptionpublic void update(ch.agent.crnickl.api.UpdatableChronicle entity,
ch.agent.crnickl.api.AttributeDefinition<?> def,
String value,
String description)
throws ch.agent.crnickl.T2DBException
ch.agent.crnickl.T2DBExceptionpublic void deleteChronicle(ch.agent.crnickl.api.UpdatableChronicle entity)
throws ch.agent.crnickl.T2DBException
ch.agent.crnickl.T2DBExceptionpublic <T> void create(ch.agent.crnickl.api.UpdatableSeries<T> series)
throws ch.agent.crnickl.T2DBException
ch.agent.crnickl.T2DBExceptionpublic <T> void deleteSeries(ch.agent.crnickl.api.UpdatableSeries<T> series)
throws ch.agent.crnickl.T2DBException
ch.agent.crnickl.T2DBExceptionpublic ch.agent.crnickl.api.Chronicle getChronicle(ch.agent.crnickl.api.Chronicle chronicle)
throws ch.agent.crnickl.T2DBException
ch.agent.crnickl.T2DBExceptionpublic ch.agent.crnickl.api.Chronicle getChronicleOrNull(ch.agent.crnickl.api.Chronicle parent,
String simpleName)
throws ch.agent.crnickl.T2DBException
ch.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 <T> List<ch.agent.crnickl.api.Chronicle> getChroniclesByAttributeValue(ch.agent.crnickl.api.Property<T> property, T value, int maxSize) 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
ch.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
ch.agent.crnickl.T2DBExceptionpublic <T> ch.agent.crnickl.api.Series<T> getSeries(ch.agent.crnickl.api.Surrogate surrogate)
throws ch.agent.crnickl.T2DBException
ch.agent.crnickl.T2DBExceptionprotected ReadMethodsForProperty getReadMethodsForProperty()
protected WriteMethodsForProperty getWriteMethodsForProperty()
public Collection<ch.agent.crnickl.api.Property<?>> getProperties(String pattern) throws ch.agent.crnickl.T2DBException
ch.agent.crnickl.T2DBExceptionpublic ch.agent.crnickl.api.Property<?> getProperty(ch.agent.crnickl.api.Surrogate surrogate)
throws ch.agent.crnickl.T2DBException
ch.agent.crnickl.T2DBExceptionpublic ch.agent.crnickl.api.Property<?> getProperty(String name) throws ch.agent.crnickl.T2DBException
ch.agent.crnickl.T2DBExceptionpublic void create(ch.agent.crnickl.api.UpdatableProperty<?> property)
throws ch.agent.crnickl.T2DBException
ch.agent.crnickl.T2DBExceptionpublic void deleteProperty(ch.agent.crnickl.api.UpdatableProperty<?> property)
throws ch.agent.crnickl.T2DBException
ch.agent.crnickl.T2DBExceptionpublic void update(ch.agent.crnickl.api.UpdatableProperty<?> property)
throws ch.agent.crnickl.T2DBException
ch.agent.crnickl.T2DBExceptionprotected ReadMethodsForValueType getReadMethodsForValueType()
protected WriteMethodsForValueType getWriteMethodsForValueType()
public Collection<ch.agent.crnickl.api.ValueType<?>> getValueTypes(String pattern) throws ch.agent.crnickl.T2DBException
ch.agent.crnickl.T2DBExceptionpublic <T> ch.agent.crnickl.api.ValueType<T> getValueType(String name) throws ch.agent.crnickl.T2DBException
ch.agent.crnickl.T2DBExceptionpublic <T> ch.agent.crnickl.api.ValueType<T> getValueType(ch.agent.crnickl.api.Surrogate surrogate)
throws ch.agent.crnickl.T2DBException
ch.agent.crnickl.T2DBExceptionpublic <T> void create(ch.agent.crnickl.api.UpdatableValueType<T> valueType)
throws ch.agent.crnickl.T2DBException
ch.agent.crnickl.T2DBExceptionpublic void deleteValueType(ch.agent.crnickl.api.UpdatableValueType<?> valueType)
throws ch.agent.crnickl.T2DBException
ch.agent.crnickl.T2DBExceptionpublic void update(ch.agent.crnickl.api.UpdatableValueType<?> valueType)
throws ch.agent.crnickl.T2DBException
ch.agent.crnickl.T2DBExceptionprotected ReadMethodsForSchema getReadMethodsForSchema()
protected WriteMethodsForSchema getWriteMethodsForSchema()
public Collection<ch.agent.crnickl.api.Surrogate> getSchemaSurrogates(String pattern) throws ch.agent.crnickl.T2DBException
ch.agent.crnickl.T2DBExceptionpublic ch.agent.crnickl.api.UpdatableSchema getUpdatableSchema(ch.agent.crnickl.api.Surrogate surrogate)
throws ch.agent.crnickl.T2DBException
ch.agent.crnickl.T2DBExceptionpublic void create(ch.agent.crnickl.api.UpdatableSchema schema)
throws ch.agent.crnickl.T2DBException
ch.agent.crnickl.T2DBExceptionpublic void update(ch.agent.crnickl.api.UpdatableSchema schema)
throws ch.agent.crnickl.T2DBException
ch.agent.crnickl.T2DBExceptionpublic void deleteSchema(ch.agent.crnickl.api.UpdatableSchema schema)
throws ch.agent.crnickl.T2DBException
ch.agent.crnickl.T2DBExceptionpublic ch.agent.crnickl.api.Surrogate findChronicle(ch.agent.crnickl.api.Schema schema)
throws ch.agent.crnickl.T2DBException
ch.agent.crnickl.T2DBExceptionpublic ch.agent.crnickl.api.Surrogate findChronicle(ch.agent.crnickl.api.Property<?> property,
ch.agent.crnickl.api.Schema schemas)
throws ch.agent.crnickl.T2DBException
ch.agent.crnickl.T2DBExceptionpublic ch.agent.crnickl.api.Surrogate findChronicle(ch.agent.crnickl.api.SeriesDefinition ss,
ch.agent.crnickl.api.Schema schema)
throws ch.agent.crnickl.T2DBException
ch.agent.crnickl.T2DBExceptionpublic String toString()
toString in class ch.agent.crnickl.impl.DatabaseBackendImplCopyright © 2017. All rights reserved.