/** * Returns the {@link MappedAppSchema} derived from configuration / tables. * * @return mapped application schema, never <code>null</code> */ public MappedAppSchema getMappedSchema() { FeatureType[] fts = ftNameToFt.values().toArray( new FeatureType[ftNameToFt.size()] ); FeatureTypeMapping[] ftMappings = ftNameToMapping.values().toArray( new FeatureTypeMapping[ftNameToMapping.size()] ); Map<FeatureType, FeatureType> ftToSuperFt = null; Map<String, String> prefixToNs = null; GMLSchemaInfoSet xsModel = null; // TODO GeometryStorageParams geometryParams = new GeometryStorageParams( CRSManager.getCRSRef( "EPSG:4326" ), dialect.getUndefinedSrid(), CoordinateDimension.DIM_2 ); return new MappedAppSchema( fts, ftToSuperFt, prefixToNs, xsModel, ftMappings, null, null, geometryParams, deleteCascadingByDB, null, null, null ); }
/** * Returns the {@link MappedAppSchema} derived from configuration / tables. * * @return mapped application schema, never <code>null</code> */ @Override public MappedAppSchema getMappedSchema() { FeatureType[] fts = ftNameToFt.values().toArray( new FeatureType[ftNameToFt.size()] ); FeatureTypeMapping[] ftMappings = ftNameToMapping.values().toArray( new FeatureTypeMapping[ftNameToMapping.size()] ); Map<FeatureType, FeatureType> ftToSuperFt = null; Map<String, String> prefixToNs = null; GMLSchemaInfoSet xsModel = null; // TODO GeometryStorageParams geometryParams = new GeometryStorageParams( CRSManager.getCRSRef( "EPSG:4326" ), dialect.getUndefinedSrid(), CoordinateDimension.DIM_2 ); return new MappedAppSchema( fts, ftToSuperFt, prefixToNs, xsModel, ftMappings, null, null, geometryParams, deleteCascadingByDB, null, null, null ); }
/** * Returns the {@link MappedAppSchema} derived from GML application schemas / configuration. * * @return mapped application schema, never <code>null</code> */ @Override public MappedAppSchema getMappedSchema() { FeatureType[] fts = gmlSchema.getFeatureTypes(); org.deegree.feature.persistence.sql.FeatureTypeMapping[] ftMappings = ftNameToMapping.values().toArray( new org.deegree.feature.persistence.sql.FeatureTypeMapping[ftNameToMapping.size()] ); Map<FeatureType, FeatureType> ftToSuperFt = gmlSchema.getFtToSuperFt(); Map<String, String> prefixToNs = new HashMap<String, String>(); Iterator<String> prefixIter = nsBindings.getPrefixes(); while ( prefixIter.hasNext() ) { String prefix = prefixIter.next(); prefixToNs.put( prefix, nsBindings.getNamespaceURI( prefix ) ); } GMLSchemaInfoSet xsModel = gmlSchema.getGMLSchema(); return new MappedAppSchema( fts, ftToSuperFt, prefixToNs, xsModel, ftMappings, bboxMapping, blobMapping, geometryParams, deleteCascadingByDB, null, gmlSchema.getGmlObjectTypes(), gmlSchema.getGeometryToSuperType() ); }
BlobMapping blobMapping = createBlobMapping ? generateBlobMapping() : null; this.mappedSchema = new MappedAppSchema( fts, ftToSuperFt, prefixToNs, xsModel, ftMappings, bboxMapping, blobMapping, geometryParams, true, null, appSchema.getGeometryTypes(), appSchema.getGeometryToSuperType() );