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

cdc.rdb.RdbIndexType Maven / Gradle / Ivy

package cdc.rdb;

import java.sql.DatabaseMetaData;
import java.util.HashMap;
import java.util.Map;

public enum RdbIndexType {
    INDEX_STATISTIC(DatabaseMetaData.tableIndexStatistic),
    INDEX_CLUSTERED(DatabaseMetaData.tableIndexClustered),
    INDEX_HASHED(DatabaseMetaData.tableIndexHashed),
    INDEX_OTHER(DatabaseMetaData.tableIndexOther);

    private static final Map MAP = new HashMap<>();
    static {
        for (final RdbIndexType value : RdbIndexType.values()) {
            MAP.put(value.getCode(), value);
        }
    }

    private final short code;

    private RdbIndexType(short code) {
        this.code = code;
    }

    public short getCode() {
        return code;
    }

    public static RdbIndexType decode(short code) {
        return MAP.get(code);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy