net.sourceforge.ccxjc.it.model.prot.collections.novalueclass.persistence.orm.impl
Class ManyToOneImpl

java.lang.Object
  extended by net.sourceforge.ccxjc.it.model.prot.collections.novalueclass.persistence.orm.impl.ManyToOneImpl
All Implemented Interfaces:
Serializable, Cloneable, ManyToOne

public class ManyToOneImpl
extends Object
implements Serializable, Cloneable, ManyToOne

See Also:
Serialized Form

Field Summary
protected  CascadeTypeImpl cascade
           
protected  FetchType fetch
           
protected  List<JoinColumn> joinColumn
           
protected  JoinTableImpl joinTable
           
protected  String name
           
protected  Boolean optional
           
protected  String targetEntity
           
 
Constructor Summary
ManyToOneImpl()
          Creates a new net.sourceforge.ccxjc.it.model.prot.collections.novalueclass.persistence.orm.impl.ManyToOneImpl instance.
ManyToOneImpl(ManyToOneImpl o)
          Creates a new net.sourceforge.ccxjc.it.model.prot.collections.novalueclass.persistence.orm.impl.ManyToOneImpl instance by copying a given instance.
 
Method Summary
 ManyToOneImpl clone()
          Creates and returns a copy of this object.
protected 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.
 String getName()
          Gets the value of the name property.
 String getTargetEntity()
          Gets the value of the targetEntity property.
 Boolean isOptional()
          Gets the value of the optional 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 setName(String value)
          Sets the value of the name property.
 void setOptional(Boolean value)
          Sets the value of the optional 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

joinColumn

protected List<JoinColumn> joinColumn

joinTable

protected JoinTableImpl joinTable

cascade

protected CascadeTypeImpl cascade

name

protected String name

targetEntity

protected String targetEntity

fetch

protected FetchType fetch

optional

protected Boolean optional
Constructor Detail

ManyToOneImpl

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


ManyToOneImpl

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

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

getJoinColumn

public List<JoinColumn> getJoinColumn()
Description copied from interface: ManyToOne
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 ManyToOne

getJoinTable

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

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

setJoinTable

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

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

getCascade

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

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

setCascade

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

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

getName

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

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

setName

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

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

getTargetEntity

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

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

setTargetEntity

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

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

getFetch

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

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

setFetch

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

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

isOptional

public Boolean isOptional()
Description copied from interface: ManyToOne
Gets the value of the optional property.

Specified by:
isOptional in interface ManyToOne
Returns:
possible object is Boolean

setOptional

public void setOptional(Boolean value)
Description copied from interface: ManyToOne
Sets the value of the optional property.

Specified by:
setOptional in interface ManyToOne
Parameters:
value - allowed object is Boolean

copyJoinColumn

protected 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 ManyToOneImpl 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.