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

org.hibernate.engine.jdbc.env.spi.NameQualifierSupport Maven / Gradle / Ivy

There is a newer version: 7.0.0.Alpha1
Show newest version
/*
 * Hibernate, Relational Persistence for Idiomatic Java
 *
 * License: GNU Lesser General Public License (LGPL), version 2.1 or later.
 * See the lgpl.txt file in the root directory or .
 */
package org.hibernate.engine.jdbc.env.spi;

/**
 * Enumerated values representing the level of support for catalog and schema.
 *
 * @author Steve Ebersole
 */
public enum NameQualifierSupport {
	/**
	 * Only catalog is supported
	 */
	CATALOG,
	/**
	 * Only schema is supported
	 */
	SCHEMA,
	/**
	 * Both catalog and schema are supported.
	 */
	BOTH,
	/**
	 * Neither catalog nor schema are supported.
	 */
	NONE;

	public boolean supportsCatalogs() {
		return this == CATALOG || this == BOTH;
	}

	public boolean supportsSchemas() {
		return this == SCHEMA || this == BOTH;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy