Class Property


  • public class Property
    extends java.lang.Object
    Model class for an entity's property: a Java property mapped to a data base column.
    • Constructor Detail

      • Property

        public Property​(Schema schema,
                        Entity entity,
                        PropertyType propertyType,
                        java.lang.String propertyName)
    • Method Detail

      • getPropertyName

        public java.lang.String getPropertyName()
      • 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:
        toString in class java.lang.Object