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

org.zodiac.fastorm.rdb.events.ContextKeys Maven / Gradle / Ivy

The newest version!
package org.zodiac.fastorm.rdb.events;

import org.zodiac.fastorm.rdb.metadata.TableOrViewMetadata;
import org.zodiac.fastorm.rdb.operator.DatabaseOperator;

public interface ContextKeys {

    ContextKey table = ContextKey.of("table");

    ContextKey source = ContextKey.of("source");

    ContextKey database = ContextKey.of("database");

    static  ContextKeyValue source(T source) {
        return ContextKeys.source().value(source);
    }

    static  ContextKey source() {
        return (ContextKey) source;
    }

    static  ContextKeyValue tableMetadata(TableOrViewMetadata metadata) {
        return ContextKeyValue.of(table, metadata);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy