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

ru.curs.celesta.score.Table Maven / Gradle / Ivy

The newest version!
package ru.curs.celesta.score;

/**
 * Table object in metadata.
 */
public final class Table extends BasicTable implements VersionedElement {

    private boolean versioned = true;

    private final IntegerColumn recVersion = new IntegerColumn(this);

    public Table(GrainPart grainPart, String name) throws ParseException {
        super(grainPart, name, false);
    }

    @Override
    public boolean hasPrimeKey() {
        return true;
    }

    @Override
    public boolean isVersioned() {
        return versioned;
    }

    /**
     * Sets to the table option "versioned".
     *
     * @param versioned "versioned" option value
     */
    public void setVersioned(boolean versioned) {
        this.versioned = versioned;
    }

    @Override
    public IntegerColumn getRecVersionField() {
        return recVersion;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy