Package 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.
- Since:
- 2.5
- Version:
- 2.5
-
Field Summary
Modifier and TypeFieldDescriptionstatic final EclipseLinkSemanticValidatorExtension
Anull
-instance of this extension. -
Method Summary
Modifier and TypeMethodDescriptionboolean
columnExists
(String tableName, String columnName) Determines whether the column with the given name exists or not in the table with the given name.getEntityTable
(String entityName) Returns the name of the primary table defined for the entity with the given name.boolean
tableExists
(String tableName) Determines whether the table with the given exists or not.
-
Field Details
-
NULL_EXTENSION
Anull
-instance of this extension.
-
-
Method Details
-
columnExists
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 columncolumnName
- The name of the column to determine its existence- Returns:
true
if the column exists;false
otherwise
-
getEntityTable
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
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
-