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

org.hibernate.boot.model.relational.QualifiedName Maven / Gradle / Ivy

The 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.boot.model.relational;

import org.hibernate.boot.model.naming.Identifier;

/**
 * Models the qualified name of a database object.  Some things to keep in
 * mind wrt catalog/schema:
    *
  1. {@link java.sql.DatabaseMetaData#isCatalogAtStart}
  2. *
  3. {@link java.sql.DatabaseMetaData#getCatalogSeparator()}
  4. *
*

* Also, be careful about the usage of {@link #render}. If the intention is get get the name * as used in the database, the {@link org.hibernate.engine.jdbc.env.spi.JdbcEnvironment} -> * {@link org.hibernate.engine.jdbc.env.spi.QualifiedObjectNameFormatter#format} should be * used instead. * * @author Steve Ebersole */ public interface QualifiedName { Identifier getCatalogName(); Identifier getSchemaName(); Identifier getObjectName(); /** * Returns a String-form of the qualified name. *

* Depending on intention, may not be appropriate. May want * {@link org.hibernate.engine.jdbc.env.spi.QualifiedObjectNameFormatter#format} * instead. See {@link org.hibernate.engine.jdbc.env.spi.JdbcEnvironment#getQualifiedObjectNameFormatter} * * @return The string form */ String render(); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy