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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      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.
    • 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