Class ToOne
- java.lang.Object
-
- org.greenrobot.greendao.generator.ToOne
-
public class ToOne extends java.lang.ObjectTo-one relationship from a source entity to one (or zero) target entity.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancheckUseEquals(PropertyType propertyType)Property[]getFkProperties()java.lang.StringgetName()java.lang.String[]getResolvedKeyJavaType()boolean[]getResolvedKeyUseEquals()EntitygetSourceEntity()EntitygetTargetEntity()booleanisUseFkProperty()voidsetName(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.StringtoString()
-
-
-
Method Detail
-
getSourceEntity
public Entity getSourceEntity()
-
getTargetEntity
public Entity getTargetEntity()
-
getFkProperties
public Property[] getFkProperties()
-
getResolvedKeyJavaType
public java.lang.String[] getResolvedKeyJavaType()
-
getResolvedKeyUseEquals
public boolean[] getResolvedKeyUseEquals()
-
getName
public java.lang.String getName()
-
setName
public 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).
-
isUseFkProperty
public boolean isUseFkProperty()
-
checkUseEquals
protected boolean checkUseEquals(PropertyType propertyType)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-