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);
}
}