org.jboss.shrinkwrap.descriptor.api.javaee5.PersistenceUnitRefType Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of shrinkwrap-descriptors-api-javaee Show documentation
Show all versions of shrinkwrap-descriptors-api-javaee Show documentation
Client View of the ShrinkWrap Descriptors Project
The newest version!
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.InjectionTargetType;
import org.jboss.shrinkwrap.descriptor.api.javaee.*;
/**
* This interface defines the contract for the persistence-unit-refType
xsd type
* @author Ralf Battenfeld
* @author Andrew Lee Rubinger
* @author George Gastaldi
*/
public interface PersistenceUnitRefType extends Child,
JavaeePersistenceUnitRefCommonType> {
// --------------------------------------------------------------------------------------------------------||
// ClassName: PersistenceUnitRefType 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 PersistenceUnitRefType
*/
public PersistenceUnitRefType 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 PersistenceUnitRefType
*/
public PersistenceUnitRefType removeMappedName();
// --------------------------------------------------------------------------------------------------------||
// ClassName: PersistenceUnitRefType 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 PersistenceUnitRefType removeAllInjectionTarget();
// --------------------------------------------------------------------------------------------------------||
// ClassName: PersistenceUnitRefType 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 PersistenceUnitRefType
*/
public PersistenceUnitRefType description(String ... values);
/**
* Returns all description
elements
* @return list of description
*/
public List getAllDescription();
/**
* Removes the description
element
* @return the current instance of PersistenceUnitRefType
*/
public PersistenceUnitRefType removeAllDescription();
// --------------------------------------------------------------------------------------------------------||
// ClassName: PersistenceUnitRefType ElementName: xsd:token ElementType : persistence-unit-ref-name
// MaxOccurs: - isGeneric: true isAttribute: false isEnum: false isDataType: true
// --------------------------------------------------------------------------------------------------------||
/**
* Sets the persistence-unit-ref-name
element
* @param persistenceUnitRefName the value for the element persistence-unit-ref-name
* @return the current instance of PersistenceUnitRefType
*/
public PersistenceUnitRefType persistenceUnitRefName(String persistenceUnitRefName);
/**
* Returns the persistence-unit-ref-name
element
* @return the node defined for the element persistence-unit-ref-name
*/
public String getPersistenceUnitRefName();
/**
* Removes the persistence-unit-ref-name
element
* @return the current instance of PersistenceUnitRefType
*/
public PersistenceUnitRefType removePersistenceUnitRefName();
// --------------------------------------------------------------------------------------------------------||
// ClassName: PersistenceUnitRefType 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 PersistenceUnitRefType
*/
public PersistenceUnitRefType 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 PersistenceUnitRefType
*/
public PersistenceUnitRefType removePersistenceUnitName();
// --------------------------------------------------------------------------------------------------------||
// ClassName: PersistenceUnitRefType 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 PersistenceUnitRefType
*/
public PersistenceUnitRefType 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 PersistenceUnitRefType
*/
public PersistenceUnitRefType removeId();
}