|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectch.agent.crnickl.impl.DatabaseBackendImpl
ch.agent.crnickl.jdbc.JDBCDatabase
public class JDBCDatabase
A JDBC implementation of DatabaseBackendImpl.
| Field Summary |
|---|
| Fields inherited from interface ch.agent.crnickl.impl.DatabaseBackend |
|---|
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, DB_PARAM_Int_MAX_GAP, MAGIC_NAME_NR, MAGIC_SPARSITY_NR, MAGIC_TIMEDOMAIN_NR, MAGIC_TYPE_NR, MAX_MAGIC_NR |
| Constructor Summary | |
|---|---|
JDBCDatabase(String name)
Construct a DatabaseBackend. |
|
| Method Summary | ||
|---|---|---|
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)
|
|
|
create(ch.agent.crnickl.api.UpdatableSeries<T> series)
|
|
|
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)
|
|
|
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)
|
|
|
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()
|
|
|
getSeries(ch.agent.crnickl.api.Chronicle chronicle,
String[] names,
int[] numbers)
|
|
|
getSeries(ch.agent.crnickl.api.Surrogate surrogate)
|
|
ch.agent.crnickl.api.UpdatableSchema |
getUpdatableSchema(ch.agent.crnickl.api.Surrogate surrogate)
|
|
|
getValueType(String name)
|
|
|
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. |
|
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)
|
|
| Methods inherited from class ch.agent.crnickl.impl.DatabaseBackendImpl |
|---|
check, check, check, check, checkSurrogate, createProperty, createSchema, createValueType, deleteValue, equals, getAccessMethods, getCache, getChronicle, getChronicle, getChronicleUpdatePolicy, getFirstObservation, getLastObservation, getMessageListener, getNamingPolicy, getPermissionChecker, getProperty, getRange, getSchema, getSchemas, getSeries, getSparsityBuiltInProperty, getSymbolBuiltInProperty, getTimeDomainBuiltInProperty, getTopChronicle, getTypeBuiltInProperty, getUpdatableSchema, getUpdatableSchemas, getUpdatableSeries, getUpdateEventPublisher, getValues, hashCode, isBuiltIn, isChronicleUpdatePolicyExtensionAllowed, isChronicleUpdatePolicyExtensionMandatory, isStrictNameSpaceMode, publish, setAccessMethods, setMessageListener, setStrictNameSpaceMode, update, update |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JDBCDatabase(String name)
DatabaseBackend.
name - the name of the database| Method Detail |
|---|
public 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.DatabaseBackendImpl
public Connection getConnection()
throws ch.agent.crnickl.T2DBException
ch.agent.crnickl.T2DBException
public void commit()
throws ch.agent.crnickl.T2DBException
ch.agent.crnickl.T2DBException
public 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.T2DBException
public void update(ch.agent.crnickl.api.UpdatableChronicle entity)
throws ch.agent.crnickl.T2DBException
ch.agent.crnickl.T2DBException
public void deleteAttributeValue(ch.agent.crnickl.api.UpdatableChronicle entity,
ch.agent.crnickl.api.AttributeDefinition<?> def)
throws ch.agent.crnickl.T2DBException
ch.agent.crnickl.T2DBException
public 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.T2DBException
public void deleteChronicle(ch.agent.crnickl.api.UpdatableChronicle entity)
throws ch.agent.crnickl.T2DBException
ch.agent.crnickl.T2DBException
public <T> void create(ch.agent.crnickl.api.UpdatableSeries<T> series)
throws ch.agent.crnickl.T2DBException
ch.agent.crnickl.T2DBException
public <T> void deleteSeries(ch.agent.crnickl.api.UpdatableSeries<T> series)
throws ch.agent.crnickl.T2DBException
ch.agent.crnickl.T2DBException
public ch.agent.crnickl.api.Chronicle getChronicle(ch.agent.crnickl.api.Chronicle chronicle)
throws ch.agent.crnickl.T2DBException
ch.agent.crnickl.T2DBException
public ch.agent.crnickl.api.Chronicle getChronicleOrNull(ch.agent.crnickl.api.Chronicle parent,
String simpleName)
throws ch.agent.crnickl.T2DBException
ch.agent.crnickl.T2DBException
public Collection<ch.agent.crnickl.api.Chronicle> getChroniclesByParent(ch.agent.crnickl.api.Chronicle parent)
throws ch.agent.crnickl.T2DBException
ch.agent.crnickl.T2DBException
public <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.T2DBException
public boolean getAttributeValue(List<ch.agent.crnickl.api.Chronicle> chronicles,
ch.agent.crnickl.api.Attribute<?> attribute)
throws ch.agent.crnickl.T2DBException
ch.agent.crnickl.T2DBException
public <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.T2DBException
public <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.T2DBException
public ch.agent.crnickl.api.Property<?> getProperty(ch.agent.crnickl.api.Surrogate surrogate)
throws ch.agent.crnickl.T2DBException
ch.agent.crnickl.T2DBException
public ch.agent.crnickl.api.Property<?> getProperty(String name)
throws ch.agent.crnickl.T2DBException
ch.agent.crnickl.T2DBException
public void create(ch.agent.crnickl.api.UpdatableProperty<?> property)
throws ch.agent.crnickl.T2DBException
ch.agent.crnickl.T2DBException
public void deleteProperty(ch.agent.crnickl.api.UpdatableProperty<?> property)
throws ch.agent.crnickl.T2DBException
ch.agent.crnickl.T2DBException
public 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.T2DBException
public <T> ch.agent.crnickl.api.ValueType<T> getValueType(String name)
throws ch.agent.crnickl.T2DBException
ch.agent.crnickl.T2DBException
public <T> ch.agent.crnickl.api.ValueType<T> getValueType(ch.agent.crnickl.api.Surrogate surrogate)
throws ch.agent.crnickl.T2DBException
ch.agent.crnickl.T2DBException
public <T> void create(ch.agent.crnickl.api.UpdatableValueType<T> valueType)
throws ch.agent.crnickl.T2DBException
ch.agent.crnickl.T2DBException
public void deleteValueType(ch.agent.crnickl.api.UpdatableValueType<?> valueType)
throws ch.agent.crnickl.T2DBException
ch.agent.crnickl.T2DBException
public 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.T2DBException
public ch.agent.crnickl.api.UpdatableSchema getUpdatableSchema(ch.agent.crnickl.api.Surrogate surrogate)
throws ch.agent.crnickl.T2DBException
ch.agent.crnickl.T2DBException
public void create(ch.agent.crnickl.api.UpdatableSchema schema)
throws ch.agent.crnickl.T2DBException
ch.agent.crnickl.T2DBException
public void update(ch.agent.crnickl.api.UpdatableSchema schema)
throws ch.agent.crnickl.T2DBException
ch.agent.crnickl.T2DBException
public void deleteSchema(ch.agent.crnickl.api.UpdatableSchema schema)
throws ch.agent.crnickl.T2DBException
ch.agent.crnickl.T2DBException
public ch.agent.crnickl.api.Surrogate findChronicle(ch.agent.crnickl.api.Schema schema)
throws ch.agent.crnickl.T2DBException
ch.agent.crnickl.T2DBException
public 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.T2DBException
public 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.DatabaseBackendImpl
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||