ShrinkWrap Descriptors Generated Java EE API 2.0.0-alpha-3

org.jboss.shrinkwrap.descriptor.api.orm10
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:03.702-07:00
Author:
Ralf Battenfeld, Andrew Lee Rubinger

Method Summary
 JoinColumn<OneToMany<T>> createJoinColumn()
          Creates a new join-column element
 OneToMany<T> fetch(FetchType fetch)
          Sets the fetch attribute
 OneToMany<T> fetch(String fetch)
          Sets the fetch attribute
 List<JoinColumn<OneToMany<T>>> getAllJoinColumn()
          Returns all join-column elements
 FetchType getFetch()
          Returns the fetch attribute
 String getFetchAsString()
          Returns the fetch attribute
 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.
 String getOrderBy()
          Returns the order-by element
 String getTargetEntity()
          Returns the target-entity attribute
 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> removeAllJoinColumn()
          Removes all 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> removeMappedBy()
          Removes the mapped-by attribute
 OneToMany<T> removeName()
          Removes the name attribute
 OneToMany<T> removeOrderBy()
          Removes the order-by element
 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

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

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

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

ShrinkWrap Descriptors Generated Java EE API 2.0.0-alpha-3

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