Top Description Fields Methods
org.eclipse.persistence.jpa.jpql

public Interface EclipseLinkSemanticValidatorExtension


This extension provides additional support to semantic validation by adding support for non-JPA specific artifacts, such as database objects.
Author
Pascal Filion
Since
2.5
Version
2.5

Field Summary

Modifier and TypeField and Description
public static final EclipseLinkSemanticValidatorExtension
NULL_EXTENSION

A null-instance of this extension.

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if the column exists; false otherwise
columnExists
(String
The name of the table to look for the column
tableName
,
String
The name of the column to determine its existence
columnName
)

Determines whether the column with the given name exists or not in the table with the given name.

public String

Returns:

The name of the entity's primary table
getEntityTable
(String
The name of the entity
entityName
)

Returns the name of the primary table defined for the entity with the given name.

public boolean

Returns:

true if the table exists; false otherwise
tableExists
(String
The name of the table to determine its existence
tableName
)

Determines whether the table with the given exists or not.

Field Detail

NULL_EXTENSIONback to summary
public static final EclipseLinkSemanticValidatorExtension NULL_EXTENSION

A null-instance of this extension.

Method Detail

columnExistsback to summary
public 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:String

The name of the table to look for the column

columnName:String

The name of the column to determine its existence

Returns:boolean

true if the column exists; false otherwise

getEntityTableback to summary
public String getEntityTable(String entityName)

Returns the name of the primary table defined for the entity with the given name.

Parameters
entityName:String

The name of the entity

Returns:String

The name of the entity's primary table

tableExistsback to summary
public boolean tableExists(String tableName)

Determines whether the table with the given exists or not.

Parameters
tableName:String

The name of the table to determine its existence

Returns:boolean

true if the table exists; false otherwise