Example usage for javax.persistence.spi LoadState LOADED

List of usage examples for javax.persistence.spi LoadState LOADED

Introduction

In this page you can find the example usage for javax.persistence.spi LoadState LOADED.

Prototype

LoadState LOADED

To view the source code for javax.persistence.spi LoadState LOADED.

Click Source Link

Document

The state of the element is known to have been loaded.

Usage

From source file:org.apache.openjpa.persistence.EntityManagerFactoryImpl.java

public boolean isLoaded(Object entity, String attribute) {
    if (entity == null) {
        return false;
    }/*from   w  w w  .  ja  va  2  s. c o  m*/
    return (OpenJPAPersistenceUtil.isManagedBy(this, entity)
            && (OpenJPAPersistenceUtil.isLoaded(entity, attribute) == LoadState.LOADED));
}