private void map( PrimitiveMapping mapping, List<MappableStep> remaining ) throws UnmappableException { final PrimitiveMapping primMapping = mapping; final MappingExpression me = primMapping.getMapping(); ParticleConverter<?> converter = null; if ( fs != null ) { converter = fs.getConverter( primMapping ); } if ( !( me instanceof DBField ) ) { final String qualifiedExpr = me.toString().replace( "$0", currentTableAlias ); propMapping = new PropertyNameMapping( converter, joins, qualifiedExpr, null ); return; } propMapping = new PropertyNameMapping( converter, joins, ( (DBField) me ).getColumn(), currentTableAlias ); }
private void map( GeometryMapping mapping, List<MappableStep> remaining ) throws UnmappableException { GeometryMapping geomMapping = mapping; MappingExpression me = geomMapping.getMapping(); if ( !( me instanceof DBField ) ) { throw new UnmappableException( "Mappings to non-DBField geometries is currently not supported." ); } ParticleConverter<?> converter = null; if ( fs != null ) { converter = fs.getConverter( geomMapping ); } propMapping = new PropertyNameMapping( converter, joins, ( (DBField) me ).getColumn(), currentTableAlias ); }
ParticleConverter<TypedObjectNode> converter = (ParticleConverter<TypedObjectNode>) fs.getConverter( mapping ); if ( mapping instanceof PrimitiveMapping ) { MappingExpression me = ( (PrimitiveMapping) mapping ).getMapping();
if ( jc != null && initial ) { if ( mapping instanceof FeatureMapping ) { ParticleConverter<?> particleConverter = fs.getConverter( mapping ); if ( particleConverter != null ) { addColumn( colToRsIdx, particleConverter.getSelectSnippet( tableAlias ) ); ParticleConverter<?> particleConverter = fs.getConverter( mapping ); if ( mapping instanceof PrimitiveMapping ) { if ( particleConverter != null ) {
} else { @SuppressWarnings("unchecked") ParticleConverter<PrimitiveValue> converter = (ParticleConverter<PrimitiveValue>) fs.getConverter( mapping ); PrimitiveValue primitiveValue = getPrimitiveValue( value ); if ( primitiveValue != null ) { Geometry geom = (Geometry) getPropValue( value ); @SuppressWarnings("unchecked") ParticleConverter<Geometry> converter = (ParticleConverter<Geometry>) fs.getConverter( mapping ); String column = ( (DBField) me ).getColumn(); currentRow.addPreparedArgument( column, geom, converter );
ParticleConverter<?> converter = fs.getConverter( mapping );
ParticleConverter<TypedObjectNode> converter = (ParticleConverter<TypedObjectNode>) fs.getConverter( mapping ); if ( mapping instanceof PrimitiveMapping ) { MappingExpression me = ( (PrimitiveMapping) mapping ).getMapping();