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

de.fraunhofer.iosb.ilt.frostserver.persistence.pgjooq.tables.StaLinkTableDynamic Maven / Gradle / Ivy

There is a newer version: 2.5.0
Show newest version
/*
 * Copyright (C) 2021 Fraunhofer Institut IOSB, Fraunhoferstr. 1, D 76131
 * Karlsruhe, Germany.
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program.  If not, see http://www.gnu.org/licenses/.
 */
package de.fraunhofer.iosb.ilt.frostserver.persistence.pgjooq.tables;

import org.jooq.Name;

/**
 *
 * @author hylke
 */
public class StaLinkTableDynamic extends StaLinkTable {

    private final Name tableName;
    private int idFieldIdx;

    public StaLinkTableDynamic(Name tableName) {
        super(tableName, null);
        this.tableName = tableName;
    }

    private StaLinkTableDynamic(Name alias, StaLinkTableDynamic aliased, int idFieldIdx) {
        super(alias, aliased);
        this.tableName = aliased.getTableName();
        this.idFieldIdx = idFieldIdx;
    }

    public Name getTableName() {
        return tableName;
    }

    @Override
    public StaLinkTableDynamic as(Name as) {
        return new StaLinkTableDynamic(as, this, idFieldIdx).initCustomFields();
    }

    @Override
    public StaLinkTableDynamic getThis() {
        return this;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy