public class Ejb3Relationship extends Ejb3Prototype
| Modifier and Type | Field and Description |
|---|---|
protected String |
attributeName |
protected ColumnDescription |
column |
protected ForeignKeyDescription |
foreignKey |
protected boolean |
oneToOne |
protected boolean |
optional |
protected ColumnDescription |
refColumn |
protected Ejb3Class |
targetType |
| Constructor and Description |
|---|
Ejb3Relationship(ForeignKeyDescription foreignKey) |
| Modifier and Type | Method and Description |
|---|---|
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() |
toPlural, toProperAttributeName, toProperEntityNameprotected final ForeignKeyDescription foreignKey
protected ColumnDescription column
protected ColumnDescription refColumn
protected Ejb3Class targetType
protected String attributeName
protected boolean optional
protected boolean oneToOne
public Ejb3Relationship(ForeignKeyDescription foreignKey)
foreignKey - - fk of THIS sidepublic ForeignKeyDescription getForeignKey()
public void generate(Ejb3Schema schema)
public String getType()
public boolean isOneToOne()
public boolean isPrimaryKeyJoin()
public boolean isMapped()
public boolean isOptional()
public void setOptional(boolean optional)
public String getAttributeName()
public String getGetter()
public String getSetter()
public Ejb3Class getTargetType()
public boolean isToMany()
public String getJavaType()
public ColumnDescription getColumn()
public ColumnDescription getRefColumn()
public void setOneToOne(boolean b)
Copyright © 2008-2016. All Rights Reserved.