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

org.infinispan.persistence.jdbc.table.management.DbMetaData Maven / Gradle / Ivy

There is a newer version: 9.1.7.Final
Show newest version
package org.infinispan.persistence.jdbc.table.management;

import org.infinispan.persistence.jdbc.DatabaseType;

import java.util.Objects;

/**
 * @author Ryan Emerson
 */
class DbMetaData {
   private final DatabaseType type;
   private final int majorVersion;
   private final int minorVersion;

   DbMetaData(DatabaseType type, Integer majorVersion, Integer minorVersion) {
      Objects.requireNonNull(type);
      this.type = type;
      this.majorVersion = majorVersion == null ? -1 : majorVersion;
      this.minorVersion = minorVersion == null ? -1 : minorVersion;
   }

   DatabaseType getType() {
      return type;
   }

   int getMajorVersion() {
      return majorVersion;
   }

   int getMinorVersion() {
      return minorVersion;
   }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy