Class Property
- java.lang.Object
-
- org.greenrobot.greendao.generator.Property
-
public class Property extends java.lang.ObjectModel class for an entity's property: a Java property mapped to a data base column.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classProperty.PropertyBuilder
-
Constructor Summary
Constructors Constructor Description Property(Schema schema, Entity entity, PropertyType propertyType, java.lang.String propertyName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetCodeBeforeField()java.lang.StringgetCodeBeforeGetter()java.lang.StringgetCodeBeforeSetter()java.lang.StringgetConstraints()java.lang.StringgetConverter()java.lang.StringgetConverterClassName()java.lang.StringgetCustomType()java.lang.StringgetCustomTypeClassName()java.lang.StringgetDatabaseValueExpression()java.lang.StringgetDatabaseValueExpression(java.lang.String entityValue)java.lang.StringgetDatabaseValueExpressionNotNull()java.lang.StringgetDbName()java.lang.StringgetDbType()EntitygetEntity()java.lang.StringgetEntityValueExpression(java.lang.String databaseValue)IndexgetIndex()java.lang.StringgetJavaDocField()java.lang.StringgetJavaDocGetter()java.lang.StringgetJavaDocSetter()java.lang.StringgetJavaType()java.lang.StringgetJavaTypeInEntity()intgetOrdinal()java.lang.StringgetPropertyName()PropertyTypegetPropertyType()booleanisAutoincrement()booleanisNonDefaultDbName()booleanisNonPrimitiveType()booleanisNotNull()booleanisPkAsc()booleanisPkDesc()booleanisPrimaryKey()booleanisUnique()voidsetIndex(Index index)voidsetPropertyType(PropertyType propertyType)java.lang.StringtoString()
-
-
-
Constructor Detail
-
Property
public Property(Schema schema, Entity entity, PropertyType propertyType, java.lang.String propertyName)
-
-
Method Detail
-
getPropertyName
public java.lang.String getPropertyName()
-
getPropertyType
public PropertyType getPropertyType()
-
setPropertyType
public void setPropertyType(PropertyType propertyType)
-
getDbName
public java.lang.String getDbName()
-
isNonDefaultDbName
public boolean isNonDefaultDbName()
-
getDbType
public java.lang.String getDbType()
-
isPrimaryKey
public boolean isPrimaryKey()
-
isPkAsc
public boolean isPkAsc()
-
isPkDesc
public boolean isPkDesc()
-
isAutoincrement
public boolean isAutoincrement()
-
getConstraints
public java.lang.String getConstraints()
-
isUnique
public boolean isUnique()
-
isNotNull
public boolean isNotNull()
-
isNonPrimitiveType
public boolean isNonPrimitiveType()
-
getJavaType
public java.lang.String getJavaType()
-
getJavaTypeInEntity
public java.lang.String getJavaTypeInEntity()
-
getOrdinal
public int getOrdinal()
-
getCustomType
public java.lang.String getCustomType()
-
getCustomTypeClassName
public java.lang.String getCustomTypeClassName()
-
getConverter
public java.lang.String getConverter()
-
getConverterClassName
public java.lang.String getConverterClassName()
-
getCodeBeforeField
public java.lang.String getCodeBeforeField()
-
getCodeBeforeGetter
public java.lang.String getCodeBeforeGetter()
-
getCodeBeforeSetter
public java.lang.String getCodeBeforeSetter()
-
getJavaDocField
public java.lang.String getJavaDocField()
-
getJavaDocGetter
public java.lang.String getJavaDocGetter()
-
getJavaDocSetter
public java.lang.String getJavaDocSetter()
-
getDatabaseValueExpression
public java.lang.String getDatabaseValueExpression()
-
getDatabaseValueExpressionNotNull
public java.lang.String getDatabaseValueExpressionNotNull()
-
getDatabaseValueExpression
public java.lang.String getDatabaseValueExpression(java.lang.String entityValue)
-
getEntityValueExpression
public java.lang.String getEntityValueExpression(java.lang.String databaseValue)
-
getEntity
public Entity getEntity()
-
getIndex
public Index getIndex()
-
setIndex
public void setIndex(Index index)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-