All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jboss.shrinkwrap.descriptor.api.javaee5.PersistenceContextRefType Maven / Gradle / Ivy

package org.jboss.shrinkwrap.descriptor.api.javaee5; 

import java.util.ArrayList;
import java.util.List;
import org.jboss.shrinkwrap.descriptor.api.Child;
import org.jboss.shrinkwrap.descriptor.api.javaee5.PersistenceContextTypeType;
import org.jboss.shrinkwrap.descriptor.api.javaee5.PropertyType;
import org.jboss.shrinkwrap.descriptor.api.javaee5.InjectionTargetType;
import org.jboss.shrinkwrap.descriptor.api.javaee.*;
/**
 * This interface defines the contract for the  persistence-context-refType  xsd type 
 * @author Ralf Battenfeld
 * @author Andrew Lee Rubinger
 * @author George Gastaldi
 */
public interface PersistenceContextRefType extends Child, 
    JavaeePersistenceContextRefCommonType,
    PropertyType>> { 

 
   // --------------------------------------------------------------------------------------------------------||
   // ClassName: PersistenceContextRefType ElementName: xsd:string ElementType : mapped-name
   // MaxOccurs: -  isGeneric: true   isAttribute: false isEnum: false isDataType: true
   // --------------------------------------------------------------------------------------------------------||

   /**
    * Sets the mapped-name element
    * @param mappedName the value for the element mapped-name 
    * @return the current instance of PersistenceContextRefType 
    */
   public PersistenceContextRefType mappedName(String mappedName);

   /**
    * Returns the mapped-name element
    * @return the node defined for the element mapped-name 
    */
   public String getMappedName();

   /**
    * Removes the mapped-name element 
    * @return the current instance of PersistenceContextRefType 
    */
   public PersistenceContextRefType removeMappedName();
 
   // --------------------------------------------------------------------------------------------------------||
   // ClassName: PersistenceContextRefType ElementName: javaee:injection-targetType ElementType : injection-target
   // MaxOccurs: -unbounded  isGeneric: true   isAttribute: false isEnum: false isDataType: false
   // --------------------------------------------------------------------------------------------------------||

   /**
    * If not already created, a new injection-target element will be created and returned.
    * Otherwise, the first existing injection-target element will be returned.
    * @return the instance defined for the element injection-target 
    */
   public InjectionTargetType> getOrCreateInjectionTarget();

   /**
    * Creates a new injection-target element 
    * @return the new created instance of InjectionTargetType> 
    */
   public InjectionTargetType> createInjectionTarget();

   /**
    * Returns all injection-target elements
    * @return list of injection-target 
    */
   public List>> getAllInjectionTarget();

   /**
    * Removes all injection-target elements 
    * @return the current instance of InjectionTargetType> 
    */
   public PersistenceContextRefType removeAllInjectionTarget();
 
   // --------------------------------------------------------------------------------------------------------||
   // ClassName: PersistenceContextRefType ElementName: xsd:string ElementType : description
   // MaxOccurs: -unbounded  isGeneric: true   isAttribute: false isEnum: false isDataType: true
   // --------------------------------------------------------------------------------------------------------||

   /**
    * Creates for all String objects representing description elements, 
    * a new description element 
    * @param values list of description objects 
    * @return the current instance of PersistenceContextRefType 
    */
   public PersistenceContextRefType description(String ... values);

   /**
    * Returns all description elements
    * @return list of description 
    */
   public List getAllDescription();

   /**
    * Removes the description element 
    * @return the current instance of PersistenceContextRefType 
    */
   public PersistenceContextRefType removeAllDescription();

 
   // --------------------------------------------------------------------------------------------------------||
   // ClassName: PersistenceContextRefType ElementName: xsd:token ElementType : persistence-context-ref-name
   // MaxOccurs: -  isGeneric: true   isAttribute: false isEnum: false isDataType: true
   // --------------------------------------------------------------------------------------------------------||

   /**
    * Sets the persistence-context-ref-name element
    * @param persistenceContextRefName the value for the element persistence-context-ref-name 
    * @return the current instance of PersistenceContextRefType 
    */
   public PersistenceContextRefType persistenceContextRefName(String persistenceContextRefName);

   /**
    * Returns the persistence-context-ref-name element
    * @return the node defined for the element persistence-context-ref-name 
    */
   public String getPersistenceContextRefName();

   /**
    * Removes the persistence-context-ref-name element 
    * @return the current instance of PersistenceContextRefType 
    */
   public PersistenceContextRefType removePersistenceContextRefName();

 
   // --------------------------------------------------------------------------------------------------------||
   // ClassName: PersistenceContextRefType ElementName: xsd:token ElementType : persistence-unit-name
   // MaxOccurs: -  isGeneric: true   isAttribute: false isEnum: false isDataType: true
   // --------------------------------------------------------------------------------------------------------||

   /**
    * Sets the persistence-unit-name element
    * @param persistenceUnitName the value for the element persistence-unit-name 
    * @return the current instance of PersistenceContextRefType 
    */
   public PersistenceContextRefType persistenceUnitName(String persistenceUnitName);

   /**
    * Returns the persistence-unit-name element
    * @return the node defined for the element persistence-unit-name 
    */
   public String getPersistenceUnitName();

   /**
    * Removes the persistence-unit-name element 
    * @return the current instance of PersistenceContextRefType 
    */
   public PersistenceContextRefType removePersistenceUnitName();

 
   // --------------------------------------------------------------------------------------------------------||
   // ClassName: PersistenceContextRefType ElementName: javaee:persistence-context-typeType ElementType : persistence-context-type
   // MaxOccurs: -  isGeneric: true   isAttribute: false isEnum: true isDataType: false
   // --------------------------------------------------------------------------------------------------------||
   /**
    * Sets the persistence-context-type element
    * @param persistenceContextType the value for the element persistence-context-type 
    * @return the current instance of PersistenceContextRefType 
    */
   public PersistenceContextRefType persistenceContextType(PersistenceContextTypeType persistenceContextType);
   /**
    * Sets the persistence-context-type element
    * @param persistenceContextType the value for the element persistence-context-type 
    * @return the current instance of PersistenceContextRefType 
    */
   public PersistenceContextRefType persistenceContextType(String persistenceContextType);

   /**
    * Returns the persistence-context-type element
    * @return the value found for the element persistence-context-type 
    */
   public PersistenceContextTypeType getPersistenceContextType();

   /**
    * Returns the persistence-context-type element
    * @return the value found for the element persistence-context-type 
    */
   public String  getPersistenceContextTypeAsString();

   /**
    * Removes the persistence-context-type attribute 
    * @return the current instance of PersistenceContextRefType 
    */
   public PersistenceContextRefType removePersistenceContextType();

 
   // --------------------------------------------------------------------------------------------------------||
   // ClassName: PersistenceContextRefType ElementName: javaee:propertyType ElementType : persistence-property
   // MaxOccurs: -unbounded  isGeneric: true   isAttribute: false isEnum: false isDataType: false
   // --------------------------------------------------------------------------------------------------------||

   /**
    * If not already created, a new persistence-property element will be created and returned.
    * Otherwise, the first existing persistence-property element will be returned.
    * @return the instance defined for the element persistence-property 
    */
   public PropertyType> getOrCreatePersistenceProperty();

   /**
    * Creates a new persistence-property element 
    * @return the new created instance of PropertyType> 
    */
   public PropertyType> createPersistenceProperty();

   /**
    * Returns all persistence-property elements
    * @return list of persistence-property 
    */
   public List>> getAllPersistenceProperty();

   /**
    * Removes all persistence-property elements 
    * @return the current instance of PropertyType> 
    */
   public PersistenceContextRefType removeAllPersistenceProperty();

 
   // --------------------------------------------------------------------------------------------------------||
   // ClassName: PersistenceContextRefType ElementName: xsd:ID ElementType : id
   // MaxOccurs: -  isGeneric: true   isAttribute: true isEnum: false isDataType: true
   // --------------------------------------------------------------------------------------------------------||

   /**
    * Sets the id attribute
    * @param id the value for the attribute id 
    * @return the current instance of PersistenceContextRefType 
    */
   public PersistenceContextRefType id(String id);

   /**
    * Returns the id attribute
    * @return the value defined for the attribute id 
    */
   public String getId();

   /**
    * Removes the id attribute 
    * @return the current instance of PersistenceContextRefType 
    */
   public PersistenceContextRefType removeId();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy