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

com.mysema.query.sql.spatial.QSpatialRefSys Maven / Gradle / Ivy

There is a newer version: 3.7.4
Show newest version
/*
 * Copyright 2014, Mysema Ltd
 *
 * 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.mysema.query.sql.spatial;

import static com.mysema.query.types.PathMetadataFactory.forVariable;

import javax.annotation.Generated;

import com.mysema.query.sql.ColumnMetadata;
import com.mysema.query.types.Path;
import com.mysema.query.types.PathMetadata;
import com.mysema.query.types.path.NumberPath;
import com.mysema.query.types.path.StringPath;



/**
 * QSpatialRefSys is a Querydsl query type for SpatialRefSys
 */
@Generated("com.mysema.query.sql.codegen.MetaDataSerializer")
public class QSpatialRefSys extends RelationalPathSpatial {

    private static final long serialVersionUID = 1681874658;

    public static final QSpatialRefSys spatialRefSys = new QSpatialRefSys("spatial_ref_sys");

    public final StringPath authName = createString("authName");

    public final NumberPath authSrid = createNumber("authSrid", Integer.class);

    public final NumberPath srid = createNumber("srid", Integer.class);

    public final StringPath srtext = createString("srtext");

    public final com.mysema.query.sql.PrimaryKey spatialRefSysPkey = createPrimaryKey(srid);

    public QSpatialRefSys(String variable) {
        super(SpatialRefSys.class, forVariable(variable), "public", "spatial_ref_sys");
        addMetadata();
    }

    public QSpatialRefSys(String variable, String schema, String table) {
        super(SpatialRefSys.class, forVariable(variable), schema, table);
        addMetadata();
    }

    public QSpatialRefSys(Path path) {
        super(path.getType(), path.getMetadata(), "public", "spatial_ref_sys");
        addMetadata();
    }

    public QSpatialRefSys(PathMetadata metadata) {
        super(SpatialRefSys.class, metadata, "public", "spatial_ref_sys");
        addMetadata();
    }

    public void addMetadata() {
        addMetadata(authName, ColumnMetadata.named("auth_name").ofType(12).withSize(256));
        addMetadata(authSrid, ColumnMetadata.named("auth_srid").ofType(4).withSize(10));
        addMetadata(srid, ColumnMetadata.named("srid").ofType(4).withSize(10).notNull());
        addMetadata(srtext, ColumnMetadata.named("srtext").ofType(12).withSize(2048));
    }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy