Java Code Examples for org.hibernate.engine.jdbc.env.spi.NameQualifierSupport#SCHEMA

The following examples show how to use org.hibernate.engine.jdbc.env.spi.NameQualifierSupport#SCHEMA . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: JdbcEnvironmentImpl.java    From lams with GNU General Public License v2.0 6 votes vote down vote up
private NameQualifierSupport determineNameQualifierSupport(DatabaseMetaData databaseMetaData) throws SQLException {
	final boolean supportsCatalogs = databaseMetaData.supportsCatalogsInTableDefinitions();
	final boolean supportsSchemas = databaseMetaData.supportsSchemasInTableDefinitions();

	if ( supportsCatalogs && supportsSchemas ) {
		return NameQualifierSupport.BOTH;
	}
	else if ( supportsCatalogs ) {
		return NameQualifierSupport.CATALOG;
	}
	else if ( supportsSchemas ) {
		return NameQualifierSupport.SCHEMA;
	}
	else {
		return NameQualifierSupport.NONE;
	}
}
 
Example 2
Source File: HSQLDialect.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
@Override
public NameQualifierSupport getNameQualifierSupport() {
	return NameQualifierSupport.SCHEMA;
}
 
Example 3
Source File: AbstractHANADialect.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
@Override
public NameQualifierSupport getNameQualifierSupport() {
	return NameQualifierSupport.SCHEMA;
}