com.agimatec.dbtransform.ejb3
Class Ejb3Relationship

java.lang.Object
  extended by com.agimatec.dbtransform.ejb3.Ejb3Prototype
      extended by com.agimatec.dbtransform.ejb3.Ejb3Relationship
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
Ejb3RelationshipOneToMany

public class Ejb3Relationship
extends Ejb3Prototype

Description:
User: roman.stumm
Date: 03.07.2007
Time: 16:23:41
Copyright: Agimatec GmbH

See Also:
Serialized Form

Field Summary
protected  String attributeName
           
protected  ColumnDescription column
           
protected  ForeignKeyDescription foreignKey
           
protected  boolean oneToOne
           
protected  boolean optional
           
protected  ColumnDescription refColumn
           
protected  Ejb3Class targetType
           
 
Constructor Summary
Ejb3Relationship(ForeignKeyDescription foreignKey)
           
 
Method Summary
 void generate(Ejb3Schema schema)
           
 String getAttributeName()
           
 ColumnDescription getColumn()
           
 ForeignKeyDescription getForeignKey()
           
 String getGetter()
           
 String getJavaType()
           
 ColumnDescription getRefColumn()
           
 String getSetter()
           
 Ejb3Class getTargetType()
           
 String getType()
           
 boolean isMapped()
           
 boolean isOneToOne()
           
 boolean isOptional()
           
 boolean isPrimaryKeyJoin()
           
 boolean isToMany()
           
 void setOneToOne(boolean b)
           
 void setOptional(boolean optional)
           
 String toString()
           
 
Methods inherited from class com.agimatec.dbtransform.ejb3.Ejb3Prototype
toPlural, toProperAttributeName, toProperEntityName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

foreignKey

protected final ForeignKeyDescription foreignKey

column

protected ColumnDescription column

refColumn

protected ColumnDescription refColumn

targetType

protected Ejb3Class targetType

attributeName

protected String attributeName

optional

protected boolean optional

oneToOne

protected boolean oneToOne
Constructor Detail

Ejb3Relationship

public Ejb3Relationship(ForeignKeyDescription foreignKey)
Parameters:
foreignKey - - fk of THIS side
Method Detail

getForeignKey

public ForeignKeyDescription getForeignKey()

generate

public void generate(Ejb3Schema schema)

getType

public String getType()

isOneToOne

public boolean isOneToOne()

isPrimaryKeyJoin

public boolean isPrimaryKeyJoin()

isMapped

public boolean isMapped()

isOptional

public boolean isOptional()

setOptional

public void setOptional(boolean optional)

getAttributeName

public String getAttributeName()

getGetter

public String getGetter()

getSetter

public String getSetter()

getTargetType

public Ejb3Class getTargetType()

isToMany

public boolean isToMany()

getJavaType

public String getJavaType()

toString

public String toString()
Overrides:
toString in class Object

getColumn

public ColumnDescription getColumn()

getRefColumn

public ColumnDescription getRefColumn()

setOneToOne

public void setOneToOne(boolean b)


Copyright © 2008-2012. All Rights Reserved.