| Constructor and Description |
|---|
AVRelation() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(T object)
Adds an object to this relation.
|
void |
addAll(Collection<T> objects)
Adds many parse objects to this relation.
|
String |
getKey() |
AVObject |
getParent() |
AVQuery<T> |
getQuery()
Gets a query that can be used to query the objects in this relation.
|
AVQuery<T> |
getQuery(Class<T> clazz)
Gets a query that can be used to query the subclass objects in this relation.
|
String |
getTargetClass() |
void |
remove(AVObject object)
Removes an object from this relation.
|
static <M extends AVObject> |
reverseQuery(Class<M> theParentClazz,
String relationKey,
AVObject child)
Create a query that can be used to query the parent objects in this relation.
|
static <M extends AVObject> |
reverseQuery(String parentClassName,
String relationKey,
AVObject child)
Create a query that can be used to query the parent objects in this relation.
|
void |
setTargetClass(String newTargetClass)
当targetClass为null时,手动设置targetClass值
|
public void add(T object)
object - The object to add to this relation.public void addAll(Collection<T> objects)
objects - The objects to add to this relation.public void remove(AVObject object)
object - The object to remove from this relation.public AVQuery<T> getQuery()
public AVQuery<T> getQuery(Class<T> clazz)
clazz - The AVObject subclass.public static <M extends AVObject> AVQuery<M> reverseQuery(String parentClassName, String relationKey, AVObject child)
parentClassName - The parent class namerelationKey - The relation field key in parentchild - The child object.public static <M extends AVObject> AVQuery<M> reverseQuery(Class<M> theParentClazz, String relationKey, AVObject child)
theParentClazz - The parent subclass.relationKey - The relation field key in parentchild - The child object.public String getKey()
public AVObject getParent()
public void setTargetClass(String newTargetClass)
public String getTargetClass()
Copyright © 2017. All rights reserved.