com.agimatec.dbtransform.ejb3
Class Ejb3Relationship
java.lang.Object
com.agimatec.dbtransform.ejb3.Ejb3Prototype
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
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
Ejb3Relationship
public Ejb3Relationship(ForeignKeyDescription foreignKey)
- Parameters:
foreignKey - - fk of THIS side
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-2011. All Rights Reserved.