EclipseLink 2.5.0, build 'v20130425-368d603' API Reference

org.eclipse.persistence.jpa.jpql
Interface EclipseLinkSemanticValidatorExtension


public interface EclipseLinkSemanticValidatorExtension

This extension provides additional support to semantic validation by adding support for non-JPA specific artifacts, such as database objects.

Version:
2.5
Author:
Pascal Filion
Since:
2.5

Field Summary
static EclipseLinkSemanticValidatorExtension NULL_EXTENSION
          A null-instance of this extension.
 
Method Summary
 boolean columnExists(java.lang.String tableName, java.lang.String columnName)
          Determines whether the column with the given name exists or not in the table with the given name.
 java.lang.String getEntityTable(java.lang.String entityName)
          Returns the name of the primary table defined for the entity with the given name.
 boolean tableExists(java.lang.String tableName)
          Determines whether the table with the given exists or not.
 

Field Detail

NULL_EXTENSION

static final EclipseLinkSemanticValidatorExtension NULL_EXTENSION
A null-instance of this extension.

Method Detail

columnExists

boolean columnExists(java.lang.String tableName,
                     java.lang.String columnName)
Determines whether the column with the given name exists or not in the table with the given name.

Parameters:
tableName - The name of the table to look for the column
columnName - The name of the column to determine its existence
Returns:
true if the column exists; false otherwise

getEntityTable

java.lang.String getEntityTable(java.lang.String entityName)
Returns the name of the primary table defined for the entity with the given name.

Parameters:
entityName - The name of the entity
Returns:
The name of the entity's primary table

tableExists

boolean tableExists(java.lang.String tableName)
Determines whether the table with the given exists or not.

Parameters:
tableName - The name of the table to determine its existence
Returns:
true if the table exists; false otherwise

EclipseLink 2.5.0, build 'v20130425-368d603' API Reference