All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.querydsl.sql.spatial.RelationalPathSpatial Maven / Gradle / Ivy

There is a newer version: 6.10.1
Show newest version
/*
 * Copyright 2015, The Querydsl Team (http://www.querydsl.com/team)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * http://www.apache.org/licenses/LICENSE-2.0
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.querydsl.sql.spatial;

import com.querydsl.core.types.PathMetadata;
import com.querydsl.core.types.PathMetadataFactory;
import com.querydsl.spatial.*;
import com.querydsl.sql.RelationalPathBase;
import org.geolatte.geom.*;

/**
 * {@code RelationalPathSpatial} extends {@link RelationalPathBase} to provide factory methods for
 * spatial path creation
 *
 * @author tiwe
 * @param 
 */
public class RelationalPathSpatial extends RelationalPathBase implements GeometryPaths {

  private static final long serialVersionUID = -7176236689794620277L;

  public RelationalPathSpatial(
      Class type, String variable, String schema, String table) {
    this(type, PathMetadataFactory.forVariable(variable), schema, table);
  }

  public RelationalPathSpatial(
      Class type, PathMetadata metadata, String schema, String table) {
    super(type, metadata, schema, table);
  }

  @Override
  public  GeometryCollectionPath createGeometryCollection(
      String property, Class type) {
    return add(new GeometryCollectionPath(type, forProperty(property)));
  }

  @Override
  public  GeometryPath createGeometry(
      String property, Class type) {
    return add(new GeometryPath(type, forProperty(property)));
  }

  @Override
  public  LinearRingPath createLinearRing(
      String property, Class type) {
    return add(new LinearRingPath(type, forProperty(property)));
  }

  @Override
  public  LineStringPath createLineString(
      String property, Class type) {
    return add(new LineStringPath(type, forProperty(property)));
  }

  @Override
  public  MultiLineStringPath createMultiLineString(
      String property, Class type) {
    return add(new MultiLineStringPath(type, forProperty(property)));
  }

  @Override
  public  MultiPointPath createMultiPoint(
      String property, Class type) {
    return add(new MultiPointPath(type, forProperty(property)));
  }

  @Override
  public  MultiPolygonPath createMultiPolygon(
      String property, Class type) {
    return add(new MultiPolygonPath(type, forProperty(property)));
  }

  @Override
  public  PointPath createPoint(String property, Class type) {
    return add(new PointPath(type, forProperty(property)));
  }

  @Override
  public  PolygonPath createPolygon(
      String property, Class type) {
    return add(new PolygonPath(type, forProperty(property)));
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy