com.ing.data.cassandra.jdbc.metadata.VersionedMetadata Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cassandra-jdbc-wrapper Show documentation
Show all versions of cassandra-jdbc-wrapper Show documentation
JDBC wrapper of the Java Driver for Apache Cassandra®.
/*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.ing.data.cassandra.jdbc.metadata;
import org.semver4j.Semver;
/**
* A versioned database metadata (such as a CQL type, CQL keyword or a built-in function).
*/
public interface VersionedMetadata {
/**
* Gets the metadata name (for example a CQL keyword, or a built-in function name).
*
* @return The metadata name.
*/
String getName();
/**
* Gets the minimal Cassandra version from which the metadata exists. If {@code null}, we consider the metadata
* always existed.
*
* @return The minimal version of Cassandra from which the metadata exists or {@code null}.
*/
Semver isValidFrom();
/**
* Gets the first Cassandra version in which the metadata does not exist anymore. If {@code null}, it means the
* metadata still exists in the latest version of Cassandra.
*
* @return The first version of Cassandra in which the metadata does not exist anymore or {@code null}.
*/
Semver isInvalidFrom();
}