org.jboss.shrinkwrap.descriptor.api.orm21.OneToMany 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.orm21;
import java.util.ArrayList;
import java.util.List;
import org.jboss.shrinkwrap.descriptor.api.Child;
import org.jboss.shrinkwrap.descriptor.api.orm21.OrderColumn;
import org.jboss.shrinkwrap.descriptor.api.orm21.MapKey;
import org.jboss.shrinkwrap.descriptor.api.orm21.MapKeyClass;
import org.jboss.shrinkwrap.descriptor.api.orm21.TemporalType;
import org.jboss.shrinkwrap.descriptor.api.orm21.EnumType;
import org.jboss.shrinkwrap.descriptor.api.orm21.AttributeOverride;
import org.jboss.shrinkwrap.descriptor.api.orm21.Convert;
import org.jboss.shrinkwrap.descriptor.api.orm21.MapKeyColumn;
import org.jboss.shrinkwrap.descriptor.api.orm21.MapKeyJoinColumn;
import org.jboss.shrinkwrap.descriptor.api.orm21.ForeignKey;
import org.jboss.shrinkwrap.descriptor.api.orm21.JoinTable;
import org.jboss.shrinkwrap.descriptor.api.orm21.JoinColumn;
import org.jboss.shrinkwrap.descriptor.api.orm21.ForeignKey;
import org.jboss.shrinkwrap.descriptor.api.orm21.CascadeType;
import org.jboss.shrinkwrap.descriptor.api.orm21.FetchType;
import org.jboss.shrinkwrap.descriptor.api.orm21.AccessType;
import org.jboss.shrinkwrap.descriptor.api.orm.*;
import org.jboss.shrinkwrap.descriptor.api.orm.OrmOneToManyCommType;
import org.jboss.shrinkwrap.descriptor.api.orm21.MapKey;
import org.jboss.shrinkwrap.descriptor.api.orm21.JoinTable;
import org.jboss.shrinkwrap.descriptor.api.orm21.JoinColumn;
import org.jboss.shrinkwrap.descriptor.api.orm21.CascadeType;/**
* This interface defines the contract for the one-to-many
xsd type
* @author Ralf Battenfeld
* @author Andrew Lee Rubinger
*/
public interface OneToMany extends Child,
OrmOneToManyCommType,
MapKey>,
JoinTable>,
JoinColumn>,
CascadeType>> {
// --------------------------------------------------------------------------------------------------------||
// ClassName: OneToMany ElementName: xsd:string ElementType : order-by
// MaxOccurs: - isGeneric: true isAttribute: false isEnum: false isDataType: true
// --------------------------------------------------------------------------------------------------------||
/**
* Sets the order-by
element
* @param orderBy the value for the element order-by
* @return the current instance of OneToMany
*/
public OneToMany orderBy(String orderBy);
/**
* Returns the order-by
element
* @return the node defined for the element order-by
*/
public String getOrderBy();
/**
* Removes the order-by
element
* @return the current instance of OneToMany
*/
public OneToMany removeOrderBy();
// --------------------------------------------------------------------------------------------------------||
// ClassName: OneToMany ElementName: orm:order-column ElementType : order-column
// MaxOccurs: - isGeneric: true isAttribute: false isEnum: false isDataType: false
// --------------------------------------------------------------------------------------------------------||
/**
* If not already created, a new order-column
element with the given value will be created.
* Otherwise, the existing order-column
element will be returned.
* @return a new or existing instance of OrderColumn>
*/
public OrderColumn> getOrCreateOrderColumn();
/**
* Removes the order-column
element
* @return the current instance of OneToMany
*/
public OneToMany removeOrderColumn();
// --------------------------------------------------------------------------------------------------------||
// ClassName: OneToMany ElementName: orm:map-key ElementType : map-key
// MaxOccurs: - isGeneric: true isAttribute: false isEnum: false isDataType: false
// --------------------------------------------------------------------------------------------------------||
/**
* If not already created, a new map-key
element with the given value will be created.
* Otherwise, the existing map-key
element will be returned.
* @return a new or existing instance of MapKey>
*/
public MapKey> getOrCreateMapKey();
/**
* Removes the map-key
element
* @return the current instance of OneToMany
*/
public OneToMany removeMapKey();
// --------------------------------------------------------------------------------------------------------||
// ClassName: OneToMany ElementName: orm:map-key-class ElementType : map-key-class
// MaxOccurs: - isGeneric: true isAttribute: false isEnum: false isDataType: false
// --------------------------------------------------------------------------------------------------------||
/**
* If not already created, a new map-key-class
element with the given value will be created.
* Otherwise, the existing map-key-class
element will be returned.
* @return a new or existing instance of MapKeyClass>
*/
public MapKeyClass> getOrCreateMapKeyClass();
/**
* Removes the map-key-class
element
* @return the current instance of OneToMany
*/
public OneToMany removeMapKeyClass();
// --------------------------------------------------------------------------------------------------------||
// ClassName: OneToMany ElementName: orm:temporal-type ElementType : map-key-temporal
// MaxOccurs: - isGeneric: true isAttribute: false isEnum: true isDataType: false
// --------------------------------------------------------------------------------------------------------||
/**
* Sets the map-key-temporal
element
* @param mapKeyTemporal the value for the element map-key-temporal
* @return the current instance of OneToMany
*/
public OneToMany mapKeyTemporal(TemporalType mapKeyTemporal);
/**
* Sets the map-key-temporal
element
* @param mapKeyTemporal the value for the element map-key-temporal
* @return the current instance of OneToMany
*/
public OneToMany mapKeyTemporal(String mapKeyTemporal);
/**
* Returns the map-key-temporal
element
* @return the value found for the element map-key-temporal
*/
public TemporalType getMapKeyTemporal();
/**
* Returns the map-key-temporal
element
* @return the value found for the element map-key-temporal
*/
public String getMapKeyTemporalAsString();
/**
* Removes the map-key-temporal
attribute
* @return the current instance of OneToMany
*/
public OneToMany removeMapKeyTemporal();
// --------------------------------------------------------------------------------------------------------||
// ClassName: OneToMany ElementName: orm:enum-type ElementType : map-key-enumerated
// MaxOccurs: - isGeneric: true isAttribute: false isEnum: true isDataType: false
// --------------------------------------------------------------------------------------------------------||
/**
* Sets the map-key-enumerated
element
* @param mapKeyEnumerated the value for the element map-key-enumerated
* @return the current instance of OneToMany
*/
public OneToMany mapKeyEnumerated(EnumType mapKeyEnumerated);
/**
* Sets the map-key-enumerated
element
* @param mapKeyEnumerated the value for the element map-key-enumerated
* @return the current instance of OneToMany
*/
public OneToMany mapKeyEnumerated(String mapKeyEnumerated);
/**
* Returns the map-key-enumerated
element
* @return the value found for the element map-key-enumerated
*/
public EnumType getMapKeyEnumerated();
/**
* Returns the map-key-enumerated
element
* @return the value found for the element map-key-enumerated
*/
public String getMapKeyEnumeratedAsString();
/**
* Removes the map-key-enumerated
attribute
* @return the current instance of OneToMany
*/
public OneToMany removeMapKeyEnumerated();
// --------------------------------------------------------------------------------------------------------||
// ClassName: OneToMany ElementName: orm:attribute-override ElementType : map-key-attribute-override
// MaxOccurs: -unbounded isGeneric: true isAttribute: false isEnum: false isDataType: false
// --------------------------------------------------------------------------------------------------------||
/**
* If not already created, a new map-key-attribute-override
element will be created and returned.
* Otherwise, the first existing map-key-attribute-override
element will be returned.
* @return the instance defined for the element map-key-attribute-override
*/
public AttributeOverride> getOrCreateMapKeyAttributeOverride();
/**
* Creates a new map-key-attribute-override
element
* @return the new created instance of AttributeOverride>
*/
public AttributeOverride> createMapKeyAttributeOverride();
/**
* Returns all map-key-attribute-override
elements
* @return list of map-key-attribute-override
*/
public List>> getAllMapKeyAttributeOverride();
/**
* Removes all map-key-attribute-override
elements
* @return the current instance of AttributeOverride>
*/
public OneToMany removeAllMapKeyAttributeOverride();
// --------------------------------------------------------------------------------------------------------||
// ClassName: OneToMany ElementName: orm:convert ElementType : map-key-convert
// MaxOccurs: -unbounded isGeneric: true isAttribute: false isEnum: false isDataType: false
// --------------------------------------------------------------------------------------------------------||
/**
* If not already created, a new map-key-convert
element will be created and returned.
* Otherwise, the first existing map-key-convert
element will be returned.
* @return the instance defined for the element map-key-convert
*/
public Convert> getOrCreateMapKeyConvert();
/**
* Creates a new map-key-convert
element
* @return the new created instance of Convert>
*/
public Convert> createMapKeyConvert();
/**
* Returns all map-key-convert
elements
* @return list of map-key-convert
*/
public List>> getAllMapKeyConvert();
/**
* Removes all map-key-convert
elements
* @return the current instance of Convert>
*/
public OneToMany removeAllMapKeyConvert();
// --------------------------------------------------------------------------------------------------------||
// ClassName: OneToMany ElementName: orm:map-key-column ElementType : map-key-column
// MaxOccurs: - isGeneric: true isAttribute: false isEnum: false isDataType: false
// --------------------------------------------------------------------------------------------------------||
/**
* If not already created, a new map-key-column
element with the given value will be created.
* Otherwise, the existing map-key-column
element will be returned.
* @return a new or existing instance of MapKeyColumn>
*/
public MapKeyColumn> getOrCreateMapKeyColumn();
/**
* Removes the map-key-column
element
* @return the current instance of OneToMany
*/
public OneToMany removeMapKeyColumn();
// --------------------------------------------------------------------------------------------------------||
// ClassName: OneToMany ElementName: orm:map-key-join-column ElementType : map-key-join-column
// MaxOccurs: -unbounded isGeneric: true isAttribute: false isEnum: false isDataType: false
// --------------------------------------------------------------------------------------------------------||
/**
* If not already created, a new map-key-join-column
element will be created and returned.
* Otherwise, the first existing map-key-join-column
element will be returned.
* @return the instance defined for the element map-key-join-column
*/
public MapKeyJoinColumn> getOrCreateMapKeyJoinColumn();
/**
* Creates a new map-key-join-column
element
* @return the new created instance of MapKeyJoinColumn>
*/
public MapKeyJoinColumn> createMapKeyJoinColumn();
/**
* Returns all map-key-join-column
elements
* @return list of map-key-join-column
*/
public List>> getAllMapKeyJoinColumn();
/**
* Removes all map-key-join-column
elements
* @return the current instance of MapKeyJoinColumn>
*/
public OneToMany removeAllMapKeyJoinColumn();
// --------------------------------------------------------------------------------------------------------||
// ClassName: OneToMany ElementName: orm:foreign-key ElementType : map-key-foreign-key
// MaxOccurs: - isGeneric: true isAttribute: false isEnum: false isDataType: false
// --------------------------------------------------------------------------------------------------------||
/**
* If not already created, a new map-key-foreign-key
element with the given value will be created.
* Otherwise, the existing map-key-foreign-key
element will be returned.
* @return a new or existing instance of ForeignKey>
*/
public ForeignKey> getOrCreateMapKeyForeignKey();
/**
* Removes the map-key-foreign-key
element
* @return the current instance of OneToMany
*/
public OneToMany removeMapKeyForeignKey();
// --------------------------------------------------------------------------------------------------------||
// ClassName: OneToMany ElementName: orm:join-table ElementType : join-table
// MaxOccurs: - isGeneric: true isAttribute: false isEnum: false isDataType: false
// --------------------------------------------------------------------------------------------------------||
/**
* If not already created, a new join-table
element with the given value will be created.
* Otherwise, the existing join-table
element will be returned.
* @return a new or existing instance of JoinTable>
*/
public JoinTable> getOrCreateJoinTable();
/**
* Removes the join-table
element
* @return the current instance of OneToMany
*/
public OneToMany removeJoinTable();
// --------------------------------------------------------------------------------------------------------||
// ClassName: OneToMany ElementName: orm:join-column ElementType : join-column
// MaxOccurs: -unbounded isGeneric: true isAttribute: false isEnum: false isDataType: false
// --------------------------------------------------------------------------------------------------------||
/**
* If not already created, a new join-column
element will be created and returned.
* Otherwise, the first existing join-column
element will be returned.
* @return the instance defined for the element join-column
*/
public JoinColumn> getOrCreateJoinColumn();
/**
* Creates a new join-column
element
* @return the new created instance of JoinColumn>
*/
public JoinColumn> createJoinColumn();
/**
* Returns all join-column
elements
* @return list of join-column
*/
public List>> getAllJoinColumn();
/**
* Removes all join-column
elements
* @return the current instance of JoinColumn>
*/
public OneToMany removeAllJoinColumn();
// --------------------------------------------------------------------------------------------------------||
// ClassName: OneToMany ElementName: orm:foreign-key ElementType : foreign-key
// MaxOccurs: - isGeneric: true isAttribute: false isEnum: false isDataType: false
// --------------------------------------------------------------------------------------------------------||
/**
* If not already created, a new foreign-key
element with the given value will be created.
* Otherwise, the existing foreign-key
element will be returned.
* @return a new or existing instance of ForeignKey>
*/
public ForeignKey> getOrCreateForeignKey();
/**
* Removes the foreign-key
element
* @return the current instance of OneToMany
*/
public OneToMany removeForeignKey();
// --------------------------------------------------------------------------------------------------------||
// ClassName: OneToMany ElementName: orm:cascade-type ElementType : cascade
// MaxOccurs: - isGeneric: true isAttribute: false isEnum: false isDataType: false
// --------------------------------------------------------------------------------------------------------||
/**
* If not already created, a new cascade
element with the given value will be created.
* Otherwise, the existing cascade
element will be returned.
* @return a new or existing instance of CascadeType>
*/
public CascadeType> getOrCreateCascade();
/**
* Removes the cascade
element
* @return the current instance of OneToMany
*/
public OneToMany removeCascade();
// --------------------------------------------------------------------------------------------------------||
// ClassName: OneToMany ElementName: xsd:string ElementType : name
// MaxOccurs: - isGeneric: true isAttribute: true isEnum: false isDataType: true
// --------------------------------------------------------------------------------------------------------||
/**
* Sets the name
attribute
* @param name the value for the attribute name
* @return the current instance of OneToMany
*/
public OneToMany name(String name);
/**
* Returns the name
attribute
* @return the value defined for the attribute name
*/
public String getName();
/**
* Removes the name
attribute
* @return the current instance of OneToMany
*/
public OneToMany removeName();
// --------------------------------------------------------------------------------------------------------||
// ClassName: OneToMany ElementName: xsd:string ElementType : target-entity
// MaxOccurs: - isGeneric: true isAttribute: true isEnum: false isDataType: true
// --------------------------------------------------------------------------------------------------------||
/**
* Sets the target-entity
attribute
* @param targetEntity the value for the attribute target-entity
* @return the current instance of OneToMany
*/
public OneToMany targetEntity(String targetEntity);
/**
* Returns the target-entity
attribute
* @return the value defined for the attribute target-entity
*/
public String getTargetEntity();
/**
* Removes the target-entity
attribute
* @return the current instance of OneToMany
*/
public OneToMany removeTargetEntity();
// --------------------------------------------------------------------------------------------------------||
// ClassName: OneToMany ElementName: orm:fetch-type ElementType : fetch
// MaxOccurs: - isGeneric: true isAttribute: true isEnum: true isDataType: false
// --------------------------------------------------------------------------------------------------------||
/**
* Sets the fetch
attribute
* @param fetch the value for the attribute fetch
* @return the current instance of OneToMany
*/
public OneToMany fetch(FetchType fetch);
/**
* Sets the fetch
attribute
* @param fetch the value for the attribute fetch
* @return the current instance of OneToMany
*/
public OneToMany fetch(String fetch);
/**
* Returns the fetch
attribute
* @return the value defined for the attribute fetch
*/
public FetchType getFetch();
/**
* Returns the fetch
attribute
* @return the value found for the element fetch
*/
public String getFetchAsString();
/**
* Removes the fetch
attribute
* @return the current instance of OneToMany
*/
public OneToMany removeFetch();
// --------------------------------------------------------------------------------------------------------||
// ClassName: OneToMany ElementName: orm:access-type ElementType : access
// MaxOccurs: - isGeneric: true isAttribute: true isEnum: true isDataType: false
// --------------------------------------------------------------------------------------------------------||
/**
* Sets the access
attribute
* @param access the value for the attribute access
* @return the current instance of OneToMany
*/
public OneToMany access(AccessType access);
/**
* Sets the access
attribute
* @param access the value for the attribute access
* @return the current instance of OneToMany
*/
public OneToMany access(String access);
/**
* Returns the access
attribute
* @return the value defined for the attribute access
*/
public AccessType getAccess();
/**
* Returns the access
attribute
* @return the value found for the element access
*/
public String getAccessAsString();
/**
* Removes the access
attribute
* @return the current instance of OneToMany
*/
public OneToMany removeAccess();
// --------------------------------------------------------------------------------------------------------||
// ClassName: OneToMany ElementName: xsd:string ElementType : mapped-by
// MaxOccurs: - isGeneric: true isAttribute: true isEnum: false isDataType: true
// --------------------------------------------------------------------------------------------------------||
/**
* Sets the mapped-by
attribute
* @param mappedBy the value for the attribute mapped-by
* @return the current instance of OneToMany
*/
public OneToMany mappedBy(String mappedBy);
/**
* Returns the mapped-by
attribute
* @return the value defined for the attribute mapped-by
*/
public String getMappedBy();
/**
* Removes the mapped-by
attribute
* @return the current instance of OneToMany
*/
public OneToMany removeMappedBy();
// --------------------------------------------------------------------------------------------------------||
// ClassName: OneToMany ElementName: xsd:boolean ElementType : orphan-removal
// MaxOccurs: - isGeneric: true isAttribute: true isEnum: false isDataType: true
// --------------------------------------------------------------------------------------------------------||
/**
* Sets the orphan-removal
attribute
* @param orphanRemoval the value for the attribute orphan-removal
* @return the current instance of OneToMany
*/
public OneToMany orphanRemoval(Boolean orphanRemoval);
/**
* Returns the orphan-removal
attribute
* @return the value defined for the attribute orphan-removal
*/
public Boolean isOrphanRemoval();
/**
* Removes the orphan-removal
attribute
* @return the current instance of OneToMany
*/
public OneToMany removeOrphanRemoval();
}