com.agimatec.dbtransform.ejb3
Class Ejb3Relationship
java.lang.Object
com.agimatec.dbtransform.ejb3.Ejb3Prototype
com.agimatec.dbtransform.ejb3.Ejb3Relationship
- All Implemented Interfaces:
- java.io.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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
foreignKey
protected final ForeignKeyDescription foreignKey
column
protected ColumnDescription column
refColumn
protected ColumnDescription refColumn
targetType
protected Ejb3Class targetType
attributeName
protected java.lang.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 java.lang.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 java.lang.String getAttributeName()
getGetter
public java.lang.String getGetter()
getSetter
public java.lang.String getSetter()
getTargetType
public Ejb3Class getTargetType()
isToMany
public boolean isToMany()
getJavaType
public java.lang.String getJavaType()
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
getColumn
public ColumnDescription getColumn()
getRefColumn
public ColumnDescription getRefColumn()
setOneToOne
public void setOneToOne(boolean b)
Copyright © 2008-2012. All Rights Reserved.