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

org.jboss.shrinkwrap.descriptor.api.orm20.EmbeddableAttributes Maven / Gradle / Ivy

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

import java.util.ArrayList;
import java.util.List;
import org.jboss.shrinkwrap.descriptor.api.Child;
import org.jboss.shrinkwrap.descriptor.api.orm20.Basic;
import org.jboss.shrinkwrap.descriptor.api.orm20.ManyToOne;
import org.jboss.shrinkwrap.descriptor.api.orm20.OneToMany;
import org.jboss.shrinkwrap.descriptor.api.orm20.OneToOne;
import org.jboss.shrinkwrap.descriptor.api.orm20.ManyToMany;
import org.jboss.shrinkwrap.descriptor.api.orm20.ElementCollection;
import org.jboss.shrinkwrap.descriptor.api.orm20.Embedded;
import org.jboss.shrinkwrap.descriptor.api.orm20.Transient;
import org.jboss.shrinkwrap.descriptor.api.orm.*;
import org.jboss.shrinkwrap.descriptor.api.orm.OrmEmbeddableAttributesCommType;

import org.jboss.shrinkwrap.descriptor.api.orm20.Basic;
import org.jboss.shrinkwrap.descriptor.api.orm20.Transient;/**
 * This interface defines the contract for the  embeddable-attributes  xsd type 
 * @author Ralf Battenfeld
 * @author Andrew Lee Rubinger
 * @author George Gastaldi
 */
public interface EmbeddableAttributes extends Child, 
    OrmEmbeddableAttributesCommType,
    Basic>,
    Transient>> { 

 
   // --------------------------------------------------------------------------------------------------------||
   // ClassName: EmbeddableAttributes ElementName: orm:basic ElementType : basic
   // MaxOccurs: -unbounded  isGeneric: true   isAttribute: false isEnum: false isDataType: false
   // --------------------------------------------------------------------------------------------------------||

   /**
    * If not already created, a new basic element will be created and returned.
    * Otherwise, the first existing basic element will be returned.
    * @return the instance defined for the element basic 
    */
   public Basic> getOrCreateBasic();

   /**
    * Creates a new basic element 
    * @return the new created instance of Basic> 
    */
   public Basic> createBasic();

   /**
    * Returns all basic elements
    * @return list of basic 
    */
   public List>> getAllBasic();

   /**
    * Removes all basic elements 
    * @return the current instance of Basic> 
    */
   public EmbeddableAttributes removeAllBasic();

 
   // --------------------------------------------------------------------------------------------------------||
   // ClassName: EmbeddableAttributes ElementName: orm:many-to-one ElementType : many-to-one
   // MaxOccurs: -unbounded  isGeneric: true   isAttribute: false isEnum: false isDataType: false
   // --------------------------------------------------------------------------------------------------------||

   /**
    * If not already created, a new many-to-one element will be created and returned.
    * Otherwise, the first existing many-to-one element will be returned.
    * @return the instance defined for the element many-to-one 
    */
   public ManyToOne> getOrCreateManyToOne();

   /**
    * Creates a new many-to-one element 
    * @return the new created instance of ManyToOne> 
    */
   public ManyToOne> createManyToOne();

   /**
    * Returns all many-to-one elements
    * @return list of many-to-one 
    */
   public List>> getAllManyToOne();

   /**
    * Removes all many-to-one elements 
    * @return the current instance of ManyToOne> 
    */
   public EmbeddableAttributes removeAllManyToOne();

 
   // --------------------------------------------------------------------------------------------------------||
   // ClassName: EmbeddableAttributes ElementName: orm:one-to-many ElementType : one-to-many
   // MaxOccurs: -unbounded  isGeneric: true   isAttribute: false isEnum: false isDataType: false
   // --------------------------------------------------------------------------------------------------------||

   /**
    * If not already created, a new one-to-many element will be created and returned.
    * Otherwise, the first existing one-to-many element will be returned.
    * @return the instance defined for the element one-to-many 
    */
   public OneToMany> getOrCreateOneToMany();

   /**
    * Creates a new one-to-many element 
    * @return the new created instance of OneToMany> 
    */
   public OneToMany> createOneToMany();

   /**
    * Returns all one-to-many elements
    * @return list of one-to-many 
    */
   public List>> getAllOneToMany();

   /**
    * Removes all one-to-many elements 
    * @return the current instance of OneToMany> 
    */
   public EmbeddableAttributes removeAllOneToMany();

 
   // --------------------------------------------------------------------------------------------------------||
   // ClassName: EmbeddableAttributes ElementName: orm:one-to-one ElementType : one-to-one
   // MaxOccurs: -unbounded  isGeneric: true   isAttribute: false isEnum: false isDataType: false
   // --------------------------------------------------------------------------------------------------------||

   /**
    * If not already created, a new one-to-one element will be created and returned.
    * Otherwise, the first existing one-to-one element will be returned.
    * @return the instance defined for the element one-to-one 
    */
   public OneToOne> getOrCreateOneToOne();

   /**
    * Creates a new one-to-one element 
    * @return the new created instance of OneToOne> 
    */
   public OneToOne> createOneToOne();

   /**
    * Returns all one-to-one elements
    * @return list of one-to-one 
    */
   public List>> getAllOneToOne();

   /**
    * Removes all one-to-one elements 
    * @return the current instance of OneToOne> 
    */
   public EmbeddableAttributes removeAllOneToOne();

 
   // --------------------------------------------------------------------------------------------------------||
   // ClassName: EmbeddableAttributes ElementName: orm:many-to-many ElementType : many-to-many
   // MaxOccurs: -unbounded  isGeneric: true   isAttribute: false isEnum: false isDataType: false
   // --------------------------------------------------------------------------------------------------------||

   /**
    * If not already created, a new many-to-many element will be created and returned.
    * Otherwise, the first existing many-to-many element will be returned.
    * @return the instance defined for the element many-to-many 
    */
   public ManyToMany> getOrCreateManyToMany();

   /**
    * Creates a new many-to-many element 
    * @return the new created instance of ManyToMany> 
    */
   public ManyToMany> createManyToMany();

   /**
    * Returns all many-to-many elements
    * @return list of many-to-many 
    */
   public List>> getAllManyToMany();

   /**
    * Removes all many-to-many elements 
    * @return the current instance of ManyToMany> 
    */
   public EmbeddableAttributes removeAllManyToMany();

 
   // --------------------------------------------------------------------------------------------------------||
   // ClassName: EmbeddableAttributes ElementName: orm:element-collection ElementType : element-collection
   // MaxOccurs: -unbounded  isGeneric: true   isAttribute: false isEnum: false isDataType: false
   // --------------------------------------------------------------------------------------------------------||

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

   /**
    * Creates a new element-collection element 
    * @return the new created instance of ElementCollection> 
    */
   public ElementCollection> createElementCollection();

   /**
    * Returns all element-collection elements
    * @return list of element-collection 
    */
   public List>> getAllElementCollection();

   /**
    * Removes all element-collection elements 
    * @return the current instance of ElementCollection> 
    */
   public EmbeddableAttributes removeAllElementCollection();

 
   // --------------------------------------------------------------------------------------------------------||
   // ClassName: EmbeddableAttributes ElementName: orm:embedded ElementType : embedded
   // MaxOccurs: -unbounded  isGeneric: true   isAttribute: false isEnum: false isDataType: false
   // --------------------------------------------------------------------------------------------------------||

   /**
    * If not already created, a new embedded element will be created and returned.
    * Otherwise, the first existing embedded element will be returned.
    * @return the instance defined for the element embedded 
    */
   public Embedded> getOrCreateEmbedded();

   /**
    * Creates a new embedded element 
    * @return the new created instance of Embedded> 
    */
   public Embedded> createEmbedded();

   /**
    * Returns all embedded elements
    * @return list of embedded 
    */
   public List>> getAllEmbedded();

   /**
    * Removes all embedded elements 
    * @return the current instance of Embedded> 
    */
   public EmbeddableAttributes removeAllEmbedded();

 
   // --------------------------------------------------------------------------------------------------------||
   // ClassName: EmbeddableAttributes ElementName: orm:transient ElementType : transient
   // MaxOccurs: -unbounded  isGeneric: true   isAttribute: false isEnum: false isDataType: false
   // --------------------------------------------------------------------------------------------------------||

   /**
    * If not already created, a new transient element will be created and returned.
    * Otherwise, the first existing transient element will be returned.
    * @return the instance defined for the element transient 
    */
   public Transient> getOrCreateTransient();

   /**
    * Creates a new transient element 
    * @return the new created instance of Transient> 
    */
   public Transient> createTransient();

   /**
    * Returns all transient elements
    * @return list of transient 
    */
   public List>> getAllTransient();

   /**
    * Removes all transient elements 
    * @return the current instance of Transient> 
    */
   public EmbeddableAttributes removeAllTransient();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy