Class PersistenceUnitsDescriptor

    • Constructor Detail

      • PersistenceUnitsDescriptor

        public PersistenceUnitsDescriptor()
    • Method Detail

      • getPuRoot

        public String getPuRoot()
      • setPuRoot

        public void setPuRoot​(String puRoot)
      • addPersistenceUnitDescriptor

        public void addPersistenceUnitDescriptor​(PersistenceUnitDescriptor pud)
        This method does not do any validation like checking for unique names of PersistenceUnits.
        Parameters:
        pud - the PersistenceUnitDescriptor to be added.
      • getAbsolutePuRoot

        public String getAbsolutePuRoot()
        This is a utility method which calculates the absolute path of the root of a PU. Absolute path is not the path with regards to root of file system. It is the path from the root of the Java EE application this persistence unit belongs to. Like getPuRoot() returned path always uses '/' as path separator.
        Returns:
        the absolute path of the root of this persistence unit
        See Also:
        getPuRoot()