|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectch.agent.crnickl.impl.DatabaseMethodsImpl
ch.agent.crnickl.jdbc.JDBCDatabaseMethods
ch.agent.crnickl.jdbc.ReadMethodsForSchema
ch.agent.crnickl.jdbc.WriteMethodsForSchema
public class WriteMethodsForSchema
A stateless object with methods providing write access to schemas.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class ch.agent.crnickl.jdbc.ReadMethodsForSchema |
|---|
ReadMethodsForSchema.RawSchema |
| Constructor Summary | |
|---|---|
WriteMethodsForSchema()
|
|
| Method Summary | |
|---|---|
void |
createSchema(ch.agent.crnickl.impl.UpdatableSchemaImpl schema,
ch.agent.crnickl.api.Schema base)
Create an empty schema in the database. |
void |
createSchemaComponent(ch.agent.crnickl.api.UpdatableSchema schema,
int seriesNr,
String description,
ch.agent.crnickl.api.AttributeDefinition<?> def)
Create an attribute definition in the database. |
void |
deleteSchema(ch.agent.crnickl.impl.UpdatableSchemaImpl schema,
ch.agent.crnickl.impl.SchemaUpdatePolicy policy)
Delete a schema from the database. |
void |
deleteSchemaComponent(ch.agent.crnickl.api.UpdatableSchema schema,
int seriesNr,
int attribNr)
Delete an attribute definition from the database. |
void |
deleteSchemaComponents(ch.agent.crnickl.api.UpdatableSchema schema,
int seriesNr)
Delete a series definition from the database. |
Collection<ch.agent.crnickl.api.Surrogate> |
findChronicles(Collection<ch.agent.crnickl.api.UpdatableSchema> schemas)
Find all chronicles referencing one of the schemas. |
Collection<ch.agent.crnickl.api.Surrogate> |
findChronicles(ch.agent.crnickl.api.Property<?> property,
Collection<ch.agent.crnickl.api.UpdatableSchema> schemas)
Find all chronicles with an explicit attribute value for a given property and schemas. |
Collection<ch.agent.crnickl.api.Surrogate> |
findChronicles(ch.agent.crnickl.api.SeriesDefinition ss,
Collection<ch.agent.crnickl.api.UpdatableSchema> schemas)
Find all chronicles with actual series in a collection of schemas. |
boolean |
updateSchema(ch.agent.crnickl.api.UpdatableSchema schema,
ch.agent.crnickl.api.UpdatableSchema base,
String name)
Update the basic schema setup in the database. |
void |
updateSchemaComponent(ch.agent.crnickl.api.UpdatableSchema schema,
int seriesNr,
String description,
ch.agent.crnickl.api.AttributeDefinition<?> def)
Update an attribute definition in the database. |
| Methods inherited from class ch.agent.crnickl.jdbc.ReadMethodsForSchema |
|---|
getRawSchema, getSchema, getSchemaSurrogateList |
| Methods inherited from class ch.agent.crnickl.jdbc.JDBCDatabaseMethods |
|---|
close, executeAndGetNewId, open, open, open |
| Methods inherited from class ch.agent.crnickl.impl.DatabaseMethodsImpl |
|---|
check, check, check, check, getId, getId, getIdOrZero, makeSurrogate, makeSurrogate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WriteMethodsForSchema()
| Method Detail |
|---|
public void createSchema(ch.agent.crnickl.impl.UpdatableSchemaImpl schema,
ch.agent.crnickl.api.Schema base)
throws ch.agent.crnickl.T2DBException
schema - a schemabase - a base schema or null
ch.agent.crnickl.T2DBException
public void deleteSchema(ch.agent.crnickl.impl.UpdatableSchemaImpl schema,
ch.agent.crnickl.impl.SchemaUpdatePolicy policy)
throws ch.agent.crnickl.T2DBException
schema - a schemapolicy - a schema udpdating policy
ch.agent.crnickl.T2DBException
public void createSchemaComponent(ch.agent.crnickl.api.UpdatableSchema schema,
int seriesNr,
String description,
ch.agent.crnickl.api.AttributeDefinition<?> def)
throws ch.agent.crnickl.T2DBException
schema - a schemaseriesNr - a series numberdescription - a stringdef - an attribute definition
ch.agent.crnickl.T2DBException
public boolean updateSchema(ch.agent.crnickl.api.UpdatableSchema schema,
ch.agent.crnickl.api.UpdatableSchema base,
String name)
throws ch.agent.crnickl.T2DBException
schema - a schemabase - a base schemaname - a string
ch.agent.crnickl.T2DBException
public void deleteSchemaComponent(ch.agent.crnickl.api.UpdatableSchema schema,
int seriesNr,
int attribNr)
throws ch.agent.crnickl.T2DBException
schema - a schemaseriesNr - a series numberattribNr - an attribute number
ch.agent.crnickl.T2DBException
public void deleteSchemaComponents(ch.agent.crnickl.api.UpdatableSchema schema,
int seriesNr)
throws ch.agent.crnickl.T2DBException
schema - a schemaseriesNr - a series number
ch.agent.crnickl.T2DBException
public void updateSchemaComponent(ch.agent.crnickl.api.UpdatableSchema schema,
int seriesNr,
String description,
ch.agent.crnickl.api.AttributeDefinition<?> def)
throws ch.agent.crnickl.T2DBException
schema - a schemaseriesNr - a series numberdescription - a stringdef - an attribute definition
ch.agent.crnickl.T2DBException
public Collection<ch.agent.crnickl.api.Surrogate> findChronicles(Collection<ch.agent.crnickl.api.UpdatableSchema> schemas)
throws ch.agent.crnickl.T2DBException
schemas - a collection of schemas
ch.agent.crnickl.T2DBException
public Collection<ch.agent.crnickl.api.Surrogate> findChronicles(ch.agent.crnickl.api.Property<?> property,
Collection<ch.agent.crnickl.api.UpdatableSchema> schemas)
throws ch.agent.crnickl.T2DBException
property - a propertyschemas - a collection of schemas
ch.agent.crnickl.T2DBException
public Collection<ch.agent.crnickl.api.Surrogate> findChronicles(ch.agent.crnickl.api.SeriesDefinition ss,
Collection<ch.agent.crnickl.api.UpdatableSchema> schemas)
throws ch.agent.crnickl.T2DBException
ss - a series definitionschemas - a collection of schemas
ch.agent.crnickl.T2DBException
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||