public abstract class ToManyBase
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected Entity |
sourceEntity |
protected Entity |
targetEntity |
Constructor and Description |
---|
ToManyBase(Schema schema,
Entity sourceEntity,
Entity targetEntity) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName() |
java.lang.String |
getOrder() |
Entity |
getSourceEntity() |
Entity |
getTargetEntity() |
void |
orderAsc(Property... properties)
Property of target entity used for ascending order.
|
void |
orderDesc(Property... properties)
Property of target entity used for descending order.
|
void |
setName(java.lang.String name)
Sets the name of the relation, which is used as the property name in the entity (the source entity owning the
to-many relationship).
|
java.lang.String |
toString() |
protected final Entity sourceEntity
protected final Entity targetEntity
public Entity getSourceEntity()
public Entity getTargetEntity()
public java.lang.String getName()
public void setName(java.lang.String name)
public void orderAsc(Property... properties)
public void orderDesc(Property... properties)
public java.lang.String getOrder()
public java.lang.String toString()
toString
in class java.lang.Object
Available under the GPLv3 - Copyright © 2011-2015 greenrobot.de. All Rights Reserved.