|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpl.edu.agh.cast.data.converter.gdm2schema.GDM2SchemaConverterUtil
public final class GDM2SchemaConverterUtil
Utility methods for General Domain model to Schema model converters.
Nested Class Summary | |
---|---|
static class |
GDM2SchemaConverterUtil.AggregatedRelationProperties
Enumeration of relation aggregated properties. |
Constructor Summary | |
---|---|
GDM2SchemaConverterUtil()
|
Method Summary | |
---|---|
static void |
aggregateManyToManyRelations(ISchemaConnection connection,
Collection<? extends IManyToManyRelation> relations)
Aggregates the values from given collection of many-to-many relations and sets them as custom properties in given schema connection. |
static void |
aggregateOneToOneRelations(ISchemaConnection connection,
Collection<? extends IOneToOneRelation> relations)
Aggregates the values from given collection of one-to-one relations and sets them as custom properties in given schema connection. |
static void |
aggregateTimedManyToManyRelations(ISchemaConnection connection,
Collection<? extends ITimedManyToManyRelation> relations)
Aggregates the values from given collection of timed many-to-many relations and sets them as custom properties in given schema connection. |
static void |
aggregateTimedOneToOneRelations(ISchemaConnection connection,
Collection<? extends ITimedOneToOneRelation> relations)
Aggregates the values from given collection of timed one-to-one relations and sets them as custom properties in given schema connection. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GDM2SchemaConverterUtil()
Method Detail |
---|
public static void aggregateManyToManyRelations(ISchemaConnection connection, Collection<? extends IManyToManyRelation> relations)
The aggregated properties are:
connection
- connection to aggregate torelations
- collection of many-to-many relations to aggregatepublic static void aggregateOneToOneRelations(ISchemaConnection connection, Collection<? extends IOneToOneRelation> relations)
The relations are aggregated by aggregateManyToManyRelations(ISchemaConnection, Collection)
method.
connection
- connection to aggregate torelations
- collection of one-to-one relations to aggregatepublic static void aggregateTimedManyToManyRelations(ISchemaConnection connection, Collection<? extends ITimedManyToManyRelation> relations)
The relations are first aggregated by aggregateManyToManyRelations(ISchemaConnection, Collection)
method.
The aggregated properties are:
GDM2SchemaConverterUtil.AggregatedRelationProperties.TOTAL_DURATION
the sum of relation durationsGDM2SchemaConverterUtil.AggregatedRelationProperties.AVERAGE_DURATION
the average relation durationGDM2SchemaConverterUtil.AggregatedRelationProperties.FIRST_RELATION_START
the date of earliest relation startGDM2SchemaConverterUtil.AggregatedRelationProperties.LAST_RELATION_END
the date of latest relation end
connection
- connection to aggregate torelations
- collection of timed many-to-many relations to aggregatepublic static void aggregateTimedOneToOneRelations(ISchemaConnection connection, Collection<? extends ITimedOneToOneRelation> relations)
The relations are aggregated by aggregateTimedManyToManyRelations(ISchemaConnection, Collection)
method.
connection
- connection to aggregate torelations
- collection of timed one-to-one relations to aggregate
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |