Interface PersistenceUnitRefType<T>

  • All Superinterfaces:
    org.jboss.shrinkwrap.descriptor.api.Child<T>
    All Known Implementing Classes:
    PersistenceUnitRefTypeImpl

    public interface PersistenceUnitRefType<T>
    extends org.jboss.shrinkwrap.descriptor.api.Child<T>
    This interface defines the contract for the persistence-unit-refType xsd type
    • Method Detail

      • mappedName

        PersistenceUnitRefType<T> mappedName​(String mappedName)
        Sets the mapped-name element
        Parameters:
        mappedName - the value for the element mapped-name
        Returns:
        the current instance of PersistenceUnitRefType
      • getMappedName

        String getMappedName()
        Returns the mapped-name element
        Returns:
        the node defined for the element mapped-name
      • removeMappedName

        PersistenceUnitRefType<T> removeMappedName()
        Removes the mapped-name element
        Returns:
        the current instance of PersistenceUnitRefType
      • getOrCreateInjectionTarget

        InjectionTargetType<PersistenceUnitRefType<T>> getOrCreateInjectionTarget()
        If not already created, a new injection-target element will be created and returned. Otherwise, the first existing injection-target element will be returned.
        Returns:
        the instance defined for the element injection-target
      • removeAllInjectionTarget

        PersistenceUnitRefType<T> removeAllInjectionTarget()
        Removes all injection-target elements
        Returns:
        the current instance of InjectionTargetType>
      • description

        PersistenceUnitRefType<T> description​(String... values)
        Creates for all String objects representing description elements, a new description element
        Parameters:
        values - list of description objects
        Returns:
        the current instance of PersistenceUnitRefType
      • getAllDescription

        List<String> getAllDescription()
        Returns all description elements
        Returns:
        list of description
      • removeAllDescription

        PersistenceUnitRefType<T> removeAllDescription()
        Removes the description element
        Returns:
        the current instance of PersistenceUnitRefType
      • persistenceUnitRefName

        PersistenceUnitRefType<T> persistenceUnitRefName​(String persistenceUnitRefName)
        Sets the persistence-unit-ref-name element
        Parameters:
        persistenceUnitRefName - the value for the element persistence-unit-ref-name
        Returns:
        the current instance of PersistenceUnitRefType
      • getPersistenceUnitRefName

        String getPersistenceUnitRefName()
        Returns the persistence-unit-ref-name element
        Returns:
        the node defined for the element persistence-unit-ref-name
      • removePersistenceUnitRefName

        PersistenceUnitRefType<T> removePersistenceUnitRefName()
        Removes the persistence-unit-ref-name element
        Returns:
        the current instance of PersistenceUnitRefType
      • persistenceUnitName

        PersistenceUnitRefType<T> persistenceUnitName​(String persistenceUnitName)
        Sets the persistence-unit-name element
        Parameters:
        persistenceUnitName - the value for the element persistence-unit-name
        Returns:
        the current instance of PersistenceUnitRefType
      • getPersistenceUnitName

        String getPersistenceUnitName()
        Returns the persistence-unit-name element
        Returns:
        the node defined for the element persistence-unit-name
      • removePersistenceUnitName

        PersistenceUnitRefType<T> removePersistenceUnitName()
        Removes the persistence-unit-name element
        Returns:
        the current instance of PersistenceUnitRefType
      • id

        PersistenceUnitRefType<T> id​(String id)
        Sets the id attribute
        Parameters:
        id - the value for the attribute id
        Returns:
        the current instance of PersistenceUnitRefType
      • getId

        String getId()
        Returns the id attribute
        Returns:
        the value defined for the attribute id
      • removeId

        PersistenceUnitRefType<T> removeId()
        Removes the id attribute
        Returns:
        the current instance of PersistenceUnitRefType