/*
 * 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 <http://www.gnu.org/licenses/lgpl-2.1.html>.
 */
package org.hibernate.engine.jdbc.env.spi;

Enumerated values representing the level of support for catalog and schema.
Author:Steve Ebersole
/** * Enumerated values representing the level of support for catalog and schema. * * @author Steve Ebersole */
public enum NameQualifierSupport {
Only catalog is supported
/** * Only catalog is supported */
CATALOG,
Only schema is supported
/** * Only schema is supported */
SCHEMA,
Both catalog and schema are supported.
/** * Both catalog and schema are supported. */
BOTH,
Neither catalog nor schema are supported.
/** * Neither catalog nor schema are supported. */
NONE; public boolean supportsCatalogs() { return this == CATALOG || this == BOTH; } public boolean supportsSchemas() { return this == SCHEMA || this == BOTH; } }