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

cdc.util.rdb.RdbIndexColumn Maven / Gradle / Ivy

There is a newer version: 0.9.0
Show newest version
package cdc.util.rdb;

/**
 * Index column description.
 * 

* Its parent is an Index.
* Its name must be unique.
* Its is a leaf. * * @author Damien Carbonne * */ public final class RdbIndexColumn extends RdbElement { private short ordinal = -1; private String columnName; protected RdbIndexColumn(String name, RdbIndex parent) { super(name, parent, false); } @Override public RdbElementKind getKind() { return RdbElementKind.INDEX_COLUMN; } @Override public RdbIndex getParent() { return (RdbIndex) super.getParent(); } public RdbIndex getIndex() { return getParent(); } public short getOrdinal() { return ordinal; } public void setOrdinal(short ordinal) { this.ordinal = ordinal; } public String getColumnName() { return columnName; } public void setColumnName(String columnName) { this.columnName = columnName; } public RdbTableColumn getColumn() { final RdbTable table = getParent().getParent(); return table == null ? null : table.getOptionalColumn(columnName); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy