net.sourceforge.ccxjc.it.model.pub.collections.novalueclass.persistence.orm.impl
Class OneToManyImpl

java.lang.Object
  extended by net.sourceforge.ccxjc.it.model.pub.collections.novalueclass.persistence.orm.impl.OneToManyImpl
All Implemented Interfaces:
Serializable, Cloneable, OneToMany

public class OneToManyImpl
extends Object
implements Serializable, Cloneable, OneToMany

See Also:
Serialized Form

Field Summary
protected  CascadeTypeImpl cascade
           
protected  FetchType fetch
           
protected  List<JoinColumn> joinColumn
           
protected  JoinTableImpl joinTable
           
protected  MapKeyImpl mapKey
           
protected  String mappedBy
           
protected  String name
           
protected  String orderBy
           
protected  String targetEntity
           
 
Constructor Summary
OneToManyImpl()
          Creates a new net.sourceforge.ccxjc.it.model.pub.collections.novalueclass.persistence.orm.impl.OneToManyImpl instance.
OneToManyImpl(OneToManyImpl o)
          Creates a new net.sourceforge.ccxjc.it.model.pub.collections.novalueclass.persistence.orm.impl.OneToManyImpl instance by copying a given instance.
 
Method Summary
 OneToManyImpl clone()
          Creates and returns a copy of this object.
static void copyJoinColumn(List<JoinColumn> source, List<JoinColumn> target)
          Copies all values of property JoinColumn.
 CascadeType getCascade()
          Gets the value of the cascade property.
 FetchType getFetch()
          Gets the value of the fetch property.
 List<JoinColumn> getJoinColumn()
          Gets the value of the joinColumn property.
 JoinTable getJoinTable()
          Gets the value of the joinTable property.
 MapKey getMapKey()
          Gets the value of the mapKey property.
 String getMappedBy()
          Gets the value of the mappedBy property.
 String getName()
          Gets the value of the name property.
 String getOrderBy()
          Gets the value of the orderBy property.
 String getTargetEntity()
          Gets the value of the targetEntity property.
 void setCascade(CascadeType value)
          Sets the value of the cascade property.
 void setFetch(FetchType value)
          Sets the value of the fetch property.
 void setJoinTable(JoinTable value)
          Sets the value of the joinTable property.
 void setMapKey(MapKey value)
          Sets the value of the mapKey property.
 void setMappedBy(String value)
          Sets the value of the mappedBy property.
 void setName(String value)
          Sets the value of the name property.
 void setOrderBy(String value)
          Sets the value of the orderBy property.
 void setTargetEntity(String value)
          Sets the value of the targetEntity property.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

orderBy

protected String orderBy

mapKey

protected MapKeyImpl mapKey

joinTable

protected JoinTableImpl joinTable

joinColumn

protected List<JoinColumn> joinColumn

cascade

protected CascadeTypeImpl cascade

name

protected String name

targetEntity

protected String targetEntity

fetch

protected FetchType fetch

mappedBy

protected String mappedBy
Constructor Detail

OneToManyImpl

public OneToManyImpl()
Creates a new net.sourceforge.ccxjc.it.model.pub.collections.novalueclass.persistence.orm.impl.OneToManyImpl instance.


OneToManyImpl

public OneToManyImpl(OneToManyImpl o)
Creates a new net.sourceforge.ccxjc.it.model.pub.collections.novalueclass.persistence.orm.impl.OneToManyImpl instance by copying a given instance.

Parameters:
o - The instance to copy or null.
Method Detail

getOrderBy

public String getOrderBy()
Description copied from interface: OneToMany
Gets the value of the orderBy property.

Specified by:
getOrderBy in interface OneToMany
Returns:
possible object is String

setOrderBy

public void setOrderBy(String value)
Description copied from interface: OneToMany
Sets the value of the orderBy property.

Specified by:
setOrderBy in interface OneToMany
Parameters:
value - allowed object is String

getMapKey

public MapKey getMapKey()
Description copied from interface: OneToMany
Gets the value of the mapKey property.

Specified by:
getMapKey in interface OneToMany
Returns:
possible object is MapKey

setMapKey

public void setMapKey(MapKey value)
Description copied from interface: OneToMany
Sets the value of the mapKey property.

Specified by:
setMapKey in interface OneToMany
Parameters:
value - allowed object is MapKey

getJoinTable

public JoinTable getJoinTable()
Description copied from interface: OneToMany
Gets the value of the joinTable property.

Specified by:
getJoinTable in interface OneToMany
Returns:
possible object is JoinTable

setJoinTable

public void setJoinTable(JoinTable value)
Description copied from interface: OneToMany
Sets the value of the joinTable property.

Specified by:
setJoinTable in interface OneToMany
Parameters:
value - allowed object is JoinTable

getJoinColumn

public List<JoinColumn> getJoinColumn()
Description copied from interface: OneToMany
Gets the value of the joinColumn property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the joinColumn property.

For example, to add a new item, do as follows:

    getJoinColumn().add(newItem);
 

Objects of the following type(s) are allowed in the list JoinColumn

Specified by:
getJoinColumn in interface OneToMany

getCascade

public CascadeType getCascade()
Description copied from interface: OneToMany
Gets the value of the cascade property.

Specified by:
getCascade in interface OneToMany
Returns:
possible object is CascadeType

setCascade

public void setCascade(CascadeType value)
Description copied from interface: OneToMany
Sets the value of the cascade property.

Specified by:
setCascade in interface OneToMany
Parameters:
value - allowed object is CascadeType

getName

public String getName()
Description copied from interface: OneToMany
Gets the value of the name property.

Specified by:
getName in interface OneToMany
Returns:
possible object is String

setName

public void setName(String value)
Description copied from interface: OneToMany
Sets the value of the name property.

Specified by:
setName in interface OneToMany
Parameters:
value - allowed object is String

getTargetEntity

public String getTargetEntity()
Description copied from interface: OneToMany
Gets the value of the targetEntity property.

Specified by:
getTargetEntity in interface OneToMany
Returns:
possible object is String

setTargetEntity

public void setTargetEntity(String value)
Description copied from interface: OneToMany
Sets the value of the targetEntity property.

Specified by:
setTargetEntity in interface OneToMany
Parameters:
value - allowed object is String

getFetch

public FetchType getFetch()
Description copied from interface: OneToMany
Gets the value of the fetch property.

Specified by:
getFetch in interface OneToMany
Returns:
possible object is FetchType

setFetch

public void setFetch(FetchType value)
Description copied from interface: OneToMany
Sets the value of the fetch property.

Specified by:
setFetch in interface OneToMany
Parameters:
value - allowed object is FetchType

getMappedBy

public String getMappedBy()
Description copied from interface: OneToMany
Gets the value of the mappedBy property.

Specified by:
getMappedBy in interface OneToMany
Returns:
possible object is String

setMappedBy

public void setMappedBy(String value)
Description copied from interface: OneToMany
Sets the value of the mappedBy property.

Specified by:
setMappedBy in interface OneToMany
Parameters:
value - allowed object is String

copyJoinColumn

public static void copyJoinColumn(List<JoinColumn> source,
                                  List<JoinColumn> target)
Copies all values of property JoinColumn.

Parameters:
target - The target to copy source to.
source - The source to copy from.
Throws:
NullPointerException - if source or target is null.

clone

public OneToManyImpl clone()
Creates and returns a copy of this object.

Overrides:
clone in class Object
Returns:
A clone of this instance.


Copyright © 2009 The CC-XJC Community. All Rights Reserved.