ShrinkWrap Descriptors Generated Java EE API 2.0.0-alpha-3

org.jboss.shrinkwrap.descriptor.api.orm10
Interface ManyToMany<T>

All Superinterfaces:
Child<T>

public interface ManyToMany<T>
extends Child<T>

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

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

Method Summary
 ManyToMany<T> fetch(FetchType fetch)
          Sets the fetch attribute
 ManyToMany<T> fetch(String fetch)
          Sets the fetch attribute
 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<ManyToMany<T>> getOrCreateCascade()
          If not already created, a new cascade element with the given value will be created.
 JoinTable<ManyToMany<T>> getOrCreateJoinTable()
          If not already created, a new join-table element with the given value will be created.
 MapKey<ManyToMany<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
 ManyToMany<T> mappedBy(String mappedBy)
          Sets the mapped-by attribute
 ManyToMany<T> name(String name)
          Sets the name attribute
 ManyToMany<T> orderBy(String orderBy)
          Sets the order-by element
 ManyToMany<T> removeCascade()
          Removes the cascade element
 ManyToMany<T> removeFetch()
          Removes the fetch attribute
 ManyToMany<T> removeJoinTable()
          Removes the join-table element
 ManyToMany<T> removeMapKey()
          Removes the map-key element
 ManyToMany<T> removeMappedBy()
          Removes the mapped-by attribute
 ManyToMany<T> removeName()
          Removes the name attribute
 ManyToMany<T> removeOrderBy()
          Removes the order-by element
 ManyToMany<T> removeTargetEntity()
          Removes the target-entity attribute
 ManyToMany<T> targetEntity(String targetEntity)
          Sets the target-entity attribute
 
Methods inherited from interface org.jboss.shrinkwrap.descriptor.api.Child
up
 

Method Detail

orderBy

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

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

getOrderBy

String getOrderBy()
Returns the order-by element

Returns:
the node defined for the element order-by

removeOrderBy

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

Returns:
the current instance of ManyToMany

getOrCreateMapKey

MapKey<ManyToMany<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

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

Returns:
the current instance of ManyToMany

getOrCreateJoinTable

JoinTable<ManyToMany<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

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

Returns:
the current instance of ManyToMany

getOrCreateCascade

CascadeType<ManyToMany<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

ManyToMany<T> removeCascade()
Removes the cascade element

Returns:
the current instance of ManyToMany

name

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

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

getName

String getName()
Returns the name attribute

Returns:
the value defined for the attribute name

removeName

ManyToMany<T> removeName()
Removes the name attribute

Returns:
the current instance of ManyToMany

targetEntity

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

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

getTargetEntity

String getTargetEntity()
Returns the target-entity attribute

Returns:
the value defined for the attribute target-entity

removeTargetEntity

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

Returns:
the current instance of ManyToMany

fetch

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

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

fetch

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

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

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

ManyToMany<T> removeFetch()
Removes the fetch attribute

Returns:
the current instance of ManyToMany

mappedBy

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

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

getMappedBy

String getMappedBy()
Returns the mapped-by attribute

Returns:
the value defined for the attribute mapped-by

removeMappedBy

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

Returns:
the current instance of ManyToMany

ShrinkWrap Descriptors Generated Java EE API 2.0.0-alpha-3

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