PersistenceScope.getPersistenceScope
Code IndexAdd Codota to your IDE (free)

Best code snippets using org.netbeans.modules.j2ee.persistence.api.PersistenceScope.getPersistenceScope(Showing top 3 results out of 315)

origin: org.netbeans.modules/org-netbeans-modules-j2ee-persistence

  private PersistenceUnit getPersistenceUnit(FileObject target) {
    PersistenceScope persistenceScope = PersistenceScope.getPersistenceScope(target);
    if (persistenceScope == null) {
      return null;
    }
    try {
      // TODO: fix ASAP! 1st PU is taken, needs to find the one which realy owns given file
      Persistence persistence = PersistenceMetadata.getDefault().getRoot(persistenceScope.getPersistenceXml());
      if (persistence != null) {
        return persistence.getPersistenceUnit(0);
      }
    } catch (IOException ex) {
      Exceptions.printStackTrace(ex);
    }
    return null;
  }
}
origin: org.netbeans.modules/org-netbeans-modules-j2ee-persistence

if(PersistenceScope.getPersistenceScope(target) == null){
  return false;
origin: org.netbeans.modules/org-netbeans-modules-j2ee-persistence

private  PersistenceUnit getPersistenceUnit() {
  PersistenceScope persistenceScope = PersistenceScope.getPersistenceScope(targetFo);
org.netbeans.modules.j2ee.persistence.apiPersistenceScopegetPersistenceScope

Javadoc

Returns the persistence scope for the given file.

Popular methods of PersistenceScope

  • getPersistenceXml
    Returns the persistence.xml file of this persistence scope.
  • <init>
  • getClassPath
    Provides the classpath of this persistence scope, which covers the sources of the entity classes ref

Popular classes and methods

  • getOriginalFilename (MultipartFile)
  • getSupportFragmentManager (FragmentActivity)
  • requestLocationUpdates (LocationManager)
  • Container (java.awt)
  • GridBagLayout (java.awt)
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,

For IntelliJ IDEA,
Android Studio or Eclipse

  • Codota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutContact Us
  • Terms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)