de.greenrobot.daogenerator
Class Property

java.lang.Object
  extended by de.greenrobot.daogenerator.Property

public class Property
extends java.lang.Object

    

Model class for an entity's property: a Java property mapped to a data base column.


Nested Class Summary
static class Property.PropertyBuilder
           
 
Constructor Summary
Property(Schema schema, Entity entity, PropertyType propertyType, java.lang.String propertyName)
           
 
Method Summary
 java.lang.String getColumnName()
           
 java.lang.String getColumnType()
           
 java.lang.String getConstraints()
           
 Entity getEntity()
           
 java.lang.String getJavaType()
           
 int getOrdinal()
           
 java.lang.String getPropertyName()
           
 PropertyType getPropertyType()
           
 boolean isNotNull()
           
 boolean isPrimaryKey()
           
 boolean isUnique()
           
 void setOrdinal(int ordinal)
           
 void setPropertyType(PropertyType propertyType)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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)

getColumnName

public java.lang.String getColumnName()

getColumnType

public java.lang.String getColumnType()

isPrimaryKey

public boolean isPrimaryKey()

getConstraints

public java.lang.String getConstraints()

isUnique

public boolean isUnique()

isNotNull

public boolean isNotNull()

getJavaType

public java.lang.String getJavaType()

getOrdinal

public int getOrdinal()

setOrdinal

public void setOrdinal(int ordinal)

getEntity

public Entity getEntity()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2011-2012 greenrobot.de. All Rights Reserved.