public class Relation extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ARRAY_MODE |
static String |
LIST_MODE |
static String |
MORE_TO_ONE |
static String |
ONE_TO_MORE |
static String |
SET_MODE |
Constructor and Description |
---|
Relation() |
Relation(String id,
String type,
String collectionMode,
String keyName,
String mode) |
Relation(String id,
String type,
String collectionMode,
String keyName,
String mode,
List<Relation> relations) |
Relation(String id,
String type,
String collectionMode,
String keyName,
String mode,
Relation relation) |
Modifier and Type | Method and Description |
---|---|
String |
getCollectionMode() |
String |
getId() |
String |
getKeyName() |
String |
getMainName() |
String |
getMode() |
Relation |
getParent() |
String |
getRelationKeyName() |
List<Relation> |
getRelations() |
String |
getType() |
void |
setCollectionMode(String collectionMode) |
void |
setId(String id) |
void |
setKeyName(String keyName) |
void |
setMainName(String mainName) |
void |
setMode(String mode) |
void |
setParent(Relation parent) |
void |
setRelationKeyName(String relationKeyName) |
void |
setRelations(List<Relation> relations) |
void |
setType(String type) |
public static final String MORE_TO_ONE
public static final String ONE_TO_MORE
public static final String LIST_MODE
public static final String SET_MODE
public static final String ARRAY_MODE
public Relation()
public Relation(String id, String type, String collectionMode, String keyName, String mode)
public Relation(String id, String type, String collectionMode, String keyName, String mode, List<Relation> relations)
public String getId()
public void setId(String id)
public String getType()
public void setType(String type)
public String getCollectionMode()
public void setCollectionMode(String collectionMode)
public String getKeyName()
public void setKeyName(String keyName)
public String getMode()
public void setMode(String mode)
public Relation getParent()
public void setParent(Relation parent)
public String getMainName()
public void setMainName(String mainName)
public String getRelationKeyName()
public void setRelationKeyName(String relationKeyName)
Copyright © 2006–2018 TinyGroup. All rights reserved.