Interface PersistenceContextRefType<T>

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

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

      • mappedName

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

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

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

        InjectionTargetType<PersistenceContextRefType<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

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

        PersistenceContextRefType<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 PersistenceContextRefType
      • getAllDescription

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

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

        PersistenceContextRefType<T> persistenceContextRefName​(String persistenceContextRefName)
        Sets the persistence-context-ref-name element
        Parameters:
        persistenceContextRefName - the value for the element persistence-context-ref-name
        Returns:
        the current instance of PersistenceContextRefType
      • getPersistenceContextRefName

        String getPersistenceContextRefName()
        Returns the persistence-context-ref-name element
        Returns:
        the node defined for the element persistence-context-ref-name
      • removePersistenceContextRefName

        PersistenceContextRefType<T> removePersistenceContextRefName()
        Removes the persistence-context-ref-name element
        Returns:
        the current instance of PersistenceContextRefType
      • persistenceUnitName

        PersistenceContextRefType<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 PersistenceContextRefType
      • getPersistenceUnitName

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

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

        PersistenceContextRefType<T> persistenceContextType​(PersistenceContextTypeType persistenceContextType)
        Sets the persistence-context-type element
        Parameters:
        persistenceContextType - the value for the element persistence-context-type
        Returns:
        the current instance of PersistenceContextRefType
      • persistenceContextType

        PersistenceContextRefType<T> persistenceContextType​(String persistenceContextType)
        Sets the persistence-context-type element
        Parameters:
        persistenceContextType - the value for the element persistence-context-type
        Returns:
        the current instance of PersistenceContextRefType
      • getPersistenceContextType

        PersistenceContextTypeType getPersistenceContextType()
        Returns the persistence-context-type element
        Returns:
        the value found for the element persistence-context-type
      • getPersistenceContextTypeAsString

        String getPersistenceContextTypeAsString()
        Returns the persistence-context-type element
        Returns:
        the value found for the element persistence-context-type
      • removePersistenceContextType

        PersistenceContextRefType<T> removePersistenceContextType()
        Removes the persistence-context-type attribute
        Returns:
        the current instance of PersistenceContextRefType
      • getOrCreatePersistenceProperty

        PropertyType<PersistenceContextRefType<T>> getOrCreatePersistenceProperty()
        If not already created, a new persistence-property element will be created and returned. Otherwise, the first existing persistence-property element will be returned.
        Returns:
        the instance defined for the element persistence-property
      • createPersistenceProperty

        PropertyType<PersistenceContextRefType<T>> createPersistenceProperty()
        Creates a new persistence-property element
        Returns:
        the new created instance of PropertyType>
      • removeAllPersistenceProperty

        PersistenceContextRefType<T> removeAllPersistenceProperty()
        Removes all persistence-property elements
        Returns:
        the current instance of PropertyType>
      • id

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

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

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