pl.edu.agh.cast.data.converter.gdm2schema
Class GDM2SchemaConverterUtil

java.lang.Object
  extended by pl.edu.agh.cast.data.converter.gdm2schema.GDM2SchemaConverterUtil

public final class GDM2SchemaConverterUtil
extends Object

Utility methods for General Domain model to Schema model converters.

Author:
AGH CAST Team

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

GDM2SchemaConverterUtil

public GDM2SchemaConverterUtil()
Method Detail

aggregateManyToManyRelations

public 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.

The aggregated properties are:

Parameters:
connection - connection to aggregate to
relations - collection of many-to-many relations to aggregate

aggregateOneToOneRelations

public 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.

The relations are aggregated by aggregateManyToManyRelations(ISchemaConnection, Collection) method.

Parameters:
connection - connection to aggregate to
relations - collection of one-to-one relations to aggregate

aggregateTimedManyToManyRelations

public 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.

The relations are first aggregated by aggregateManyToManyRelations(ISchemaConnection, Collection) method.

The aggregated properties are:

Parameters:
connection - connection to aggregate to
relations - collection of timed many-to-many relations to aggregate

aggregateTimedOneToOneRelations

public 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.

The relations are aggregated by aggregateTimedManyToManyRelations(ISchemaConnection, Collection) method.

Parameters:
connection - connection to aggregate to
relations - collection of timed one-to-one relations to aggregate


Copyright © 2007-2009 IISG AGH-UST Krakow, Poland. All Rights Reserved.