Search in sources :

Example 1 with ValueObjectTypeFactory

use of org.apache.cayenne.access.types.ValueObjectTypeFactory in project cayenne by apache.

the class JdbcAdapter method initExtendedTypes.

/**
 * @since 3.1
 */
protected void initExtendedTypes(List<ExtendedType> defaultExtendedTypes, List<ExtendedType> userExtendedTypes, List<ExtendedTypeFactory> extendedTypeFactories, ValueObjectTypeRegistry valueObjectTypeRegistry) {
    for (ExtendedType type : defaultExtendedTypes) {
        extendedTypes.registerType(type);
    }
    // loading adapter specific extended types
    configureExtendedTypes(extendedTypes);
    for (ExtendedType type : userExtendedTypes) {
        extendedTypes.registerType(type);
    }
    for (ExtendedTypeFactory typeFactory : extendedTypeFactories) {
        extendedTypes.addFactory(typeFactory);
    }
    extendedTypes.addFactory(new ValueObjectTypeFactory(extendedTypes, valueObjectTypeRegistry));
}
Also used : ExtendedTypeFactory(org.apache.cayenne.access.types.ExtendedTypeFactory) ValueObjectTypeFactory(org.apache.cayenne.access.types.ValueObjectTypeFactory) ExtendedType(org.apache.cayenne.access.types.ExtendedType)

Aggregations

ExtendedType (org.apache.cayenne.access.types.ExtendedType)1 ExtendedTypeFactory (org.apache.cayenne.access.types.ExtendedTypeFactory)1 ValueObjectTypeFactory (org.apache.cayenne.access.types.ValueObjectTypeFactory)1