net.sourceforge.ccxjc.it.model.prot.indexed.novalueclass.persistence.orm.impl
Class OneToOneImpl

java.lang.Object
  extended by net.sourceforge.ccxjc.it.model.prot.indexed.novalueclass.persistence.orm.impl.OneToOneImpl
All Implemented Interfaces:
Serializable, Cloneable, OneToOne

public class OneToOneImpl
extends Object
implements Serializable, Cloneable, OneToOne

See Also:
Serialized Form

Field Summary
protected  CascadeTypeImpl cascade
           
protected  FetchType fetch
           
protected  JoinColumn[] joinColumn
           
protected  JoinTableImpl joinTable
           
protected  String mappedBy
           
protected  String name
           
protected  Boolean optional
           
protected  PrimaryKeyJoinColumn[] primaryKeyJoinColumn
           
protected  String targetEntity
           
 
Constructor Summary
OneToOneImpl()
          Creates a new net.sourceforge.ccxjc.it.model.prot.indexed.novalueclass.persistence.orm.impl.OneToOneImpl instance.
OneToOneImpl(OneToOneImpl o)
          Creates a new net.sourceforge.ccxjc.it.model.prot.indexed.novalueclass.persistence.orm.impl.OneToOneImpl instance by copying a given instance.
 
Method Summary
 OneToOneImpl clone()
          Creates and returns a copy of this object.
protected  void copyJoinColumn(JoinColumn[] source)
          Copies all values of property JoinColumn.
protected  void copyPrimaryKeyJoinColumn(PrimaryKeyJoinColumn[] source)
          Copies all values of property PrimaryKeyJoinColumn.
 CascadeType getCascade()
          Gets the value of the cascade property.
 FetchType getFetch()
          Gets the value of the fetch property.
 JoinColumn[] getJoinColumn()
           
 JoinColumn getJoinColumn(int idx)
           
 int getJoinColumnLength()
           
 JoinTable getJoinTable()
          Gets the value of the joinTable property.
 String getMappedBy()
          Gets the value of the mappedBy property.
 String getName()
          Gets the value of the name property.
 PrimaryKeyJoinColumn[] getPrimaryKeyJoinColumn()
           
 PrimaryKeyJoinColumn getPrimaryKeyJoinColumn(int idx)
           
 int getPrimaryKeyJoinColumnLength()
           
 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.
 JoinColumn setJoinColumn(int idx, JoinColumn value)
           
 void setJoinColumn(JoinColumn[] values)
           
 void setJoinTable(JoinTable value)
          Sets the value of the joinTable property.
 void setMappedBy(String value)
          Sets the value of the mappedBy property.
 void setName(String value)
          Sets the value of the name property.
 void setOptional(Boolean value)
          Sets the value of the optional property.
 PrimaryKeyJoinColumn setPrimaryKeyJoinColumn(int idx, PrimaryKeyJoinColumn value)
           
 void setPrimaryKeyJoinColumn(PrimaryKeyJoinColumn[] values)
           
 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

primaryKeyJoinColumn

protected PrimaryKeyJoinColumn[] primaryKeyJoinColumn

joinColumn

protected 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

mappedBy

protected String mappedBy
Constructor Detail

OneToOneImpl

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


OneToOneImpl

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

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

getPrimaryKeyJoinColumn

public PrimaryKeyJoinColumn[] getPrimaryKeyJoinColumn()
Specified by:
getPrimaryKeyJoinColumn in interface OneToOne
Returns:
array of PrimaryKeyJoinColumn

getPrimaryKeyJoinColumn

public PrimaryKeyJoinColumn getPrimaryKeyJoinColumn(int idx)
Specified by:
getPrimaryKeyJoinColumn in interface OneToOne
Returns:
one of PrimaryKeyJoinColumn

getPrimaryKeyJoinColumnLength

public int getPrimaryKeyJoinColumnLength()
Specified by:
getPrimaryKeyJoinColumnLength in interface OneToOne

setPrimaryKeyJoinColumn

public void setPrimaryKeyJoinColumn(PrimaryKeyJoinColumn[] values)
Specified by:
setPrimaryKeyJoinColumn in interface OneToOne
Parameters:
values - allowed objects are PrimaryKeyJoinColumn

setPrimaryKeyJoinColumn

public PrimaryKeyJoinColumn setPrimaryKeyJoinColumn(int idx,
                                                    PrimaryKeyJoinColumn value)
Specified by:
setPrimaryKeyJoinColumn in interface OneToOne
value - allowed object is PrimaryKeyJoinColumn

getJoinColumn

public JoinColumn[] getJoinColumn()
Specified by:
getJoinColumn in interface OneToOne
Returns:
array of JoinColumn

getJoinColumn

public JoinColumn getJoinColumn(int idx)
Specified by:
getJoinColumn in interface OneToOne
Returns:
one of JoinColumn

getJoinColumnLength

public int getJoinColumnLength()
Specified by:
getJoinColumnLength in interface OneToOne

setJoinColumn

public void setJoinColumn(JoinColumn[] values)
Specified by:
setJoinColumn in interface OneToOne
Parameters:
values - allowed objects are JoinColumn

setJoinColumn

public JoinColumn setJoinColumn(int idx,
                                JoinColumn value)
Specified by:
setJoinColumn in interface OneToOne
value - allowed object is JoinColumn

getJoinTable

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

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

setJoinTable

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

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

getCascade

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

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

setCascade

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

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

getName

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

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

setName

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

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

getTargetEntity

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

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

setTargetEntity

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

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

getFetch

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

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

setFetch

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

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

isOptional

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

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

setOptional

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

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

getMappedBy

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

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

setMappedBy

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

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

copyPrimaryKeyJoinColumn

protected void copyPrimaryKeyJoinColumn(PrimaryKeyJoinColumn[] source)
Copies all values of property PrimaryKeyJoinColumn.

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

copyJoinColumn

protected void copyJoinColumn(JoinColumn[] source)
Copies all values of property JoinColumn.

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

clone

public OneToOneImpl 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.