public class Relationship
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
protected Collection |
collection |
protected boolean |
exclude |
protected Index |
fkIndex1 |
protected Index |
fkIndex2 |
protected java.lang.String |
name |
static java.lang.String |
REL_MANY_TO_MANY |
static java.lang.String |
REL_MANY_TO_ONE |
static java.lang.String |
REL_ONE_TO_MANY |
protected Collection |
related |
protected java.lang.String |
type |
| Constructor and Description |
|---|
Relationship() |
Relationship(java.lang.String name,
java.lang.String type,
Collection collection,
Collection related,
Index fkIndex1,
Index fkIndex2) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
Collection |
getCollection() |
Property |
getFk1Col1() |
Property |
getFk2Col1() |
Index |
getFkIndex1() |
Index |
getFkIndex2() |
Relationship |
getInverse() |
java.lang.String |
getName() |
Collection |
getPrimaryKeyTable1() |
Collection |
getPrimaryKeyTable2() |
Collection |
getRelated() |
java.lang.String |
getType() |
boolean |
isExclude() |
boolean |
isManyToMany() |
boolean |
isManyToOne() |
boolean |
isOneToMany() |
java.lang.String |
toString() |
Relationship |
withCollection(Collection collection) |
Relationship |
withExclude(boolean exclude) |
Relationship |
withFkIndex1(Index fkIndex1) |
Relationship |
withFkIndex2(Index fkIndex2) |
Relationship |
withName(java.lang.String name) |
Relationship |
withRelated(Collection related) |
Relationship |
withType(java.lang.String type) |
public static final java.lang.String REL_MANY_TO_ONE
public static final java.lang.String REL_ONE_TO_MANY
public static final java.lang.String REL_MANY_TO_MANY
protected java.lang.String name
protected java.lang.String type
protected Index fkIndex1
protected Index fkIndex2
protected Collection collection
protected Collection related
protected boolean exclude
public Relationship()
public Relationship(java.lang.String name,
java.lang.String type,
Collection collection,
Collection related,
Index fkIndex1,
Index fkIndex2)
public boolean isExclude()
public Relationship withExclude(boolean exclude)
public Collection getCollection()
public Relationship withCollection(Collection collection)
public Collection getRelated()
public Relationship getInverse()
public Relationship withRelated(Collection related)
related - the related to setpublic boolean isManyToMany()
public boolean isOneToMany()
public boolean isManyToOne()
public java.lang.String getName()
public Relationship withName(java.lang.String name)
name - the name to setpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getType()
public Relationship withType(java.lang.String type)
type - the type to setpublic Index getFkIndex1()
public Relationship withFkIndex1(Index fkIndex1)
public Index getFkIndex2()
public Relationship withFkIndex2(Index fkIndex2)
public Collection getPrimaryKeyTable1()
public Collection getPrimaryKeyTable2()
public Property getFk1Col1()
public Property getFk2Col1()
Copyright © 2021 Rocket Partners, LLC. All rights reserved.