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
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    A null-instance of this extension.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    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

  • Method Details

    • columnExists

      boolean columnExists(String tableName, 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

      String getEntityTable(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(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