ShrinkWrap Descriptors Generated Java EE API 2.0.0-alpha-3

org.jboss.shrinkwrap.descriptor.api.orm20
Interface OneToMany<T>

All Superinterfaces:
Child<T>

public interface OneToMany<T>
extends Child<T>

This interface defines the contract for the one-to-many xsd type

Since:
Generation date :2012-05-09T23:45:05.33-07:00
Author:
Ralf Battenfeld, Andrew Lee Rubinger

Method Summary
 OneToMany<T> access(AccessType access)
          Sets the access attribute
 OneToMany<T> access(String access)
          Sets the access attribute
 JoinColumn<OneToMany<T>> createJoinColumn()
          Creates a new join-column element
 AttributeOverride<OneToMany<T>> createMapKeyAttributeOverride()
          Creates a new map-key-attribute-override element
 MapKeyJoinColumn<OneToMany<T>> createMapKeyJoinColumn()
          Creates a new map-key-join-column element
 OneToMany<T> fetch(FetchType fetch)
          Sets the fetch attribute
 OneToMany<T> fetch(String fetch)
          Sets the fetch attribute
 AccessType getAccess()
          Returns the access attribute
 String getAccessAsString()
          Returns the access attribute
 List<JoinColumn<OneToMany<T>>> getAllJoinColumn()
          Returns all join-column elements
 List<AttributeOverride<OneToMany<T>>> getAllMapKeyAttributeOverride()
          Returns all map-key-attribute-override elements
 List<MapKeyJoinColumn<OneToMany<T>>> getAllMapKeyJoinColumn()
          Returns all map-key-join-column elements
 FetchType getFetch()
          Returns the fetch attribute
 String getFetchAsString()
          Returns the fetch attribute
 EnumType getMapKeyEnumerated()
          Returns the map-key-enumerated element
 String getMapKeyEnumeratedAsString()
          Returns the map-key-enumerated element
 TemporalType getMapKeyTemporal()
          Returns the map-key-temporal element
 String getMapKeyTemporalAsString()
          Returns the map-key-temporal element
 String getMappedBy()
          Returns the mapped-by attribute
 String getName()
          Returns the name attribute
 CascadeType<OneToMany<T>> getOrCreateCascade()
          If not already created, a new cascade element with the given value will be created.
 JoinColumn<OneToMany<T>> getOrCreateJoinColumn()
          If not already created, a new join-column element will be created and returned.
 JoinTable<OneToMany<T>> getOrCreateJoinTable()
          If not already created, a new join-table element with the given value will be created.
 MapKey<OneToMany<T>> getOrCreateMapKey()
          If not already created, a new map-key element with the given value will be created.
 AttributeOverride<OneToMany<T>> getOrCreateMapKeyAttributeOverride()
          If not already created, a new map-key-attribute-override element will be created and returned.
 MapKeyClass<OneToMany<T>> getOrCreateMapKeyClass()
          If not already created, a new map-key-class element with the given value will be created.
 MapKeyColumn<OneToMany<T>> getOrCreateMapKeyColumn()
          If not already created, a new map-key-column element with the given value will be created.
 MapKeyJoinColumn<OneToMany<T>> getOrCreateMapKeyJoinColumn()
          If not already created, a new map-key-join-column element will be created and returned.
 OrderColumn<OneToMany<T>> getOrCreateOrderColumn()
          If not already created, a new order-column element with the given value will be created.
 String getOrderBy()
          Returns the order-by element
 String getTargetEntity()
          Returns the target-entity attribute
 Boolean isOrphanRemoval()
          Returns the orphan-removal attribute
 OneToMany<T> mapKeyEnumerated(EnumType mapKeyEnumerated)
          Sets the map-key-enumerated element
 OneToMany<T> mapKeyEnumerated(String mapKeyEnumerated)
          Sets the map-key-enumerated element
 OneToMany<T> mapKeyTemporal(String mapKeyTemporal)
          Sets the map-key-temporal element
 OneToMany<T> mapKeyTemporal(TemporalType mapKeyTemporal)
          Sets the map-key-temporal element
 OneToMany<T> mappedBy(String mappedBy)
          Sets the mapped-by attribute
 OneToMany<T> name(String name)
          Sets the name attribute
 OneToMany<T> orderBy(String orderBy)
          Sets the order-by element
 OneToMany<T> orphanRemoval(Boolean orphanRemoval)
          Sets the orphan-removal attribute
 OneToMany<T> removeAccess()
          Removes the access attribute
 OneToMany<T> removeAllJoinColumn()
          Removes all join-column elements
 OneToMany<T> removeAllMapKeyAttributeOverride()
          Removes all map-key-attribute-override elements
 OneToMany<T> removeAllMapKeyJoinColumn()
          Removes all map-key-join-column elements
 OneToMany<T> removeCascade()
          Removes the cascade element
 OneToMany<T> removeFetch()
          Removes the fetch attribute
 OneToMany<T> removeJoinTable()
          Removes the join-table element
 OneToMany<T> removeMapKey()
          Removes the map-key element
 OneToMany<T> removeMapKeyClass()
          Removes the map-key-class element
 OneToMany<T> removeMapKeyColumn()
          Removes the map-key-column element
 OneToMany<T> removeMapKeyEnumerated()
          Removes the map-key-enumerated attribute
 OneToMany<T> removeMapKeyTemporal()
          Removes the map-key-temporal attribute
 OneToMany<T> removeMappedBy()
          Removes the mapped-by attribute
 OneToMany<T> removeName()
          Removes the name attribute
 OneToMany<T> removeOrderBy()
          Removes the order-by element
 OneToMany<T> removeOrderColumn()
          Removes the order-column element
 OneToMany<T> removeOrphanRemoval()
          Removes the orphan-removal attribute
 OneToMany<T> removeTargetEntity()
          Removes the target-entity attribute
 OneToMany<T> targetEntity(String targetEntity)
          Sets the target-entity attribute
 
Methods inherited from interface org.jboss.shrinkwrap.descriptor.api.Child
up
 

Method Detail

orderBy

OneToMany<T> orderBy(String orderBy)
Sets the order-by element

Parameters:
orderBy - the value for the element order-by
Returns:
the current instance of OneToMany

getOrderBy

String getOrderBy()
Returns the order-by element

Returns:
the node defined for the element order-by

removeOrderBy

OneToMany<T> removeOrderBy()
Removes the order-by element

Returns:
the current instance of OneToMany

getOrCreateOrderColumn

OrderColumn<OneToMany<T>> getOrCreateOrderColumn()
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.

Returns:
a new or existing instance of OrderColumn>

removeOrderColumn

OneToMany<T> removeOrderColumn()
Removes the order-column element

Returns:
the current instance of OneToMany

getOrCreateMapKey

MapKey<OneToMany<T>> getOrCreateMapKey()
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.

Returns:
a new or existing instance of MapKey>

removeMapKey

OneToMany<T> removeMapKey()
Removes the map-key element

Returns:
the current instance of OneToMany

getOrCreateMapKeyClass

MapKeyClass<OneToMany<T>> getOrCreateMapKeyClass()
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.

Returns:
a new or existing instance of MapKeyClass>

removeMapKeyClass

OneToMany<T> removeMapKeyClass()
Removes the map-key-class element

Returns:
the current instance of OneToMany

mapKeyTemporal

OneToMany<T> mapKeyTemporal(TemporalType mapKeyTemporal)
Sets the map-key-temporal element

Parameters:
mapKeyTemporal - the value for the element map-key-temporal
Returns:
the current instance of OneToMany

mapKeyTemporal

OneToMany<T> mapKeyTemporal(String mapKeyTemporal)
Sets the map-key-temporal element

Parameters:
mapKeyTemporal - the value for the element map-key-temporal
Returns:
the current instance of OneToMany

getMapKeyTemporal

TemporalType getMapKeyTemporal()
Returns the map-key-temporal element

Returns:
the value found for the element map-key-temporal

getMapKeyTemporalAsString

String getMapKeyTemporalAsString()
Returns the map-key-temporal element

Returns:
the value found for the element map-key-temporal

removeMapKeyTemporal

OneToMany<T> removeMapKeyTemporal()
Removes the map-key-temporal attribute

Returns:
the current instance of OneToMany

mapKeyEnumerated

OneToMany<T> mapKeyEnumerated(EnumType mapKeyEnumerated)
Sets the map-key-enumerated element

Parameters:
mapKeyEnumerated - the value for the element map-key-enumerated
Returns:
the current instance of OneToMany

mapKeyEnumerated

OneToMany<T> mapKeyEnumerated(String mapKeyEnumerated)
Sets the map-key-enumerated element

Parameters:
mapKeyEnumerated - the value for the element map-key-enumerated
Returns:
the current instance of OneToMany

getMapKeyEnumerated

EnumType getMapKeyEnumerated()
Returns the map-key-enumerated element

Returns:
the value found for the element map-key-enumerated

getMapKeyEnumeratedAsString

String getMapKeyEnumeratedAsString()
Returns the map-key-enumerated element

Returns:
the value found for the element map-key-enumerated

removeMapKeyEnumerated

OneToMany<T> removeMapKeyEnumerated()
Removes the map-key-enumerated attribute

Returns:
the current instance of OneToMany

getOrCreateMapKeyAttributeOverride

AttributeOverride<OneToMany<T>> getOrCreateMapKeyAttributeOverride()
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.

Returns:
the instance defined for the element map-key-attribute-override

createMapKeyAttributeOverride

AttributeOverride<OneToMany<T>> createMapKeyAttributeOverride()
Creates a new map-key-attribute-override element

Returns:
the new created instance of AttributeOverride>

getAllMapKeyAttributeOverride

List<AttributeOverride<OneToMany<T>>> getAllMapKeyAttributeOverride()
Returns all map-key-attribute-override elements

Returns:
list of map-key-attribute-override

removeAllMapKeyAttributeOverride

OneToMany<T> removeAllMapKeyAttributeOverride()
Removes all map-key-attribute-override elements

Returns:
the current instance of AttributeOverride>

getOrCreateMapKeyColumn

MapKeyColumn<OneToMany<T>> getOrCreateMapKeyColumn()
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.

Returns:
a new or existing instance of MapKeyColumn>

removeMapKeyColumn

OneToMany<T> removeMapKeyColumn()
Removes the map-key-column element

Returns:
the current instance of OneToMany

getOrCreateMapKeyJoinColumn

MapKeyJoinColumn<OneToMany<T>> getOrCreateMapKeyJoinColumn()
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.

Returns:
the instance defined for the element map-key-join-column

createMapKeyJoinColumn

MapKeyJoinColumn<OneToMany<T>> createMapKeyJoinColumn()
Creates a new map-key-join-column element

Returns:
the new created instance of MapKeyJoinColumn>

getAllMapKeyJoinColumn

List<MapKeyJoinColumn<OneToMany<T>>> getAllMapKeyJoinColumn()
Returns all map-key-join-column elements

Returns:
list of map-key-join-column

removeAllMapKeyJoinColumn

OneToMany<T> removeAllMapKeyJoinColumn()
Removes all map-key-join-column elements

Returns:
the current instance of MapKeyJoinColumn>

getOrCreateJoinTable

JoinTable<OneToMany<T>> getOrCreateJoinTable()
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.

Returns:
a new or existing instance of JoinTable>

removeJoinTable

OneToMany<T> removeJoinTable()
Removes the join-table element

Returns:
the current instance of OneToMany

getOrCreateJoinColumn

JoinColumn<OneToMany<T>> getOrCreateJoinColumn()
If not already created, a new join-column element will be created and returned. Otherwise, the first existing join-column element will be returned.

Returns:
the instance defined for the element join-column

createJoinColumn

JoinColumn<OneToMany<T>> createJoinColumn()
Creates a new join-column element

Returns:
the new created instance of JoinColumn>

getAllJoinColumn

List<JoinColumn<OneToMany<T>>> getAllJoinColumn()
Returns all join-column elements

Returns:
list of join-column

removeAllJoinColumn

OneToMany<T> removeAllJoinColumn()
Removes all join-column elements

Returns:
the current instance of JoinColumn>

getOrCreateCascade

CascadeType<OneToMany<T>> getOrCreateCascade()
If not already created, a new cascade element with the given value will be created. Otherwise, the existing cascade element will be returned.

Returns:
a new or existing instance of CascadeType>

removeCascade

OneToMany<T> removeCascade()
Removes the cascade element

Returns:
the current instance of OneToMany

name

OneToMany<T> name(String name)
Sets the name attribute

Parameters:
name - the value for the attribute name
Returns:
the current instance of OneToMany

getName

String getName()
Returns the name attribute

Returns:
the value defined for the attribute name

removeName

OneToMany<T> removeName()
Removes the name attribute

Returns:
the current instance of OneToMany

targetEntity

OneToMany<T> targetEntity(String targetEntity)
Sets the target-entity attribute

Parameters:
targetEntity - the value for the attribute target-entity
Returns:
the current instance of OneToMany

getTargetEntity

String getTargetEntity()
Returns the target-entity attribute

Returns:
the value defined for the attribute target-entity

removeTargetEntity

OneToMany<T> removeTargetEntity()
Removes the target-entity attribute

Returns:
the current instance of OneToMany

fetch

OneToMany<T> fetch(FetchType fetch)
Sets the fetch attribute

Parameters:
fetch - the value for the attribute fetch
Returns:
the current instance of OneToMany

fetch

OneToMany<T> fetch(String fetch)
Sets the fetch attribute

Parameters:
fetch - the value for the attribute fetch
Returns:
the current instance of OneToMany

getFetch

FetchType getFetch()
Returns the fetch attribute

Returns:
the value defined for the attribute fetch

getFetchAsString

String getFetchAsString()
Returns the fetch attribute

Returns:
the value found for the element fetch

removeFetch

OneToMany<T> removeFetch()
Removes the fetch attribute

Returns:
the current instance of OneToMany

access

OneToMany<T> access(AccessType access)
Sets the access attribute

Parameters:
access - the value for the attribute access
Returns:
the current instance of OneToMany

access

OneToMany<T> access(String access)
Sets the access attribute

Parameters:
access - the value for the attribute access
Returns:
the current instance of OneToMany

getAccess

AccessType getAccess()
Returns the access attribute

Returns:
the value defined for the attribute access

getAccessAsString

String getAccessAsString()
Returns the access attribute

Returns:
the value found for the element access

removeAccess

OneToMany<T> removeAccess()
Removes the access attribute

Returns:
the current instance of OneToMany

mappedBy

OneToMany<T> mappedBy(String mappedBy)
Sets the mapped-by attribute

Parameters:
mappedBy - the value for the attribute mapped-by
Returns:
the current instance of OneToMany

getMappedBy

String getMappedBy()
Returns the mapped-by attribute

Returns:
the value defined for the attribute mapped-by

removeMappedBy

OneToMany<T> removeMappedBy()
Removes the mapped-by attribute

Returns:
the current instance of OneToMany

orphanRemoval

OneToMany<T> orphanRemoval(Boolean orphanRemoval)
Sets the orphan-removal attribute

Parameters:
orphanRemoval - the value for the attribute orphan-removal
Returns:
the current instance of OneToMany

isOrphanRemoval

Boolean isOrphanRemoval()
Returns the orphan-removal attribute

Returns:
the value defined for the attribute orphan-removal

removeOrphanRemoval

OneToMany<T> removeOrphanRemoval()
Removes the orphan-removal attribute

Returns:
the current instance of OneToMany

ShrinkWrap Descriptors Generated Java EE API 2.0.0-alpha-3

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.