Class Property


  • public class Property
    extends java.lang.Object
    Meta data describing a property mapped to a database column; used to create WhereCondition object used by the query builder.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.String columnName  
      java.lang.String name  
      int ordinal  
      boolean primaryKey  
      java.lang.Class<?> type  
    • Constructor Summary

      Constructors 
      Constructor Description
      Property​(int ordinal, java.lang.Class<?> type, java.lang.String name, boolean primaryKey, java.lang.String columnName)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      WhereCondition between​(java.lang.Object value1, java.lang.Object value2)
      Creates an "BETWEEN ...
      WhereCondition eq​(java.lang.Object value)
      Creates an "equal ('=')" condition for this property.
      WhereCondition ge​(java.lang.Object value)
      Creates an "greater or equal ('>=')" condition for this property.
      WhereCondition gt​(java.lang.Object value)
      Creates an "greater than ('>')" condition for this property.
      WhereCondition in​(java.lang.Object... inValues)
      Creates an "IN (..., ..., ...)" condition for this property.
      WhereCondition in​(java.util.Collection<?> inValues)
      Creates an "IN (..., ..., ...)" condition for this property.
      WhereCondition isNotNull()
      Creates an "IS NOT NULL" condition for this property.
      WhereCondition isNull()
      Creates an "IS NULL" condition for this property.
      WhereCondition le​(java.lang.Object value)
      Creates an "less or equal ('<=')" condition for this property.
      WhereCondition like​(java.lang.String value)
      Creates an "LIKE" condition for this property.
      WhereCondition lt​(java.lang.Object value)
      Creates an "less than ('<')" condition for this property.
      WhereCondition notEq​(java.lang.Object value)
      Creates an "not equal ('<>')" condition for this property.
      WhereCondition notIn​(java.lang.Object... notInValues)
      Creates an "NOT IN (..., ..., ...)" condition for this property.
      WhereCondition notIn​(java.util.Collection<?> notInValues)
      Creates an "NOT IN (..., ..., ...)" condition for this property.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • ordinal

        public final int ordinal
      • type

        public final java.lang.Class<?> type
      • name

        public final java.lang.String name
      • primaryKey

        public final boolean primaryKey
      • columnName

        public final java.lang.String columnName
    • Constructor Detail

      • Property

        public Property​(int ordinal,
                        java.lang.Class<?> type,
                        java.lang.String name,
                        boolean primaryKey,
                        java.lang.String columnName)
    • Method Detail

      • eq

        public WhereCondition eq​(java.lang.Object value)
        Creates an "equal ('=')" condition for this property.
      • notEq

        public WhereCondition notEq​(java.lang.Object value)
        Creates an "not equal ('<>')" condition for this property.
      • like

        public WhereCondition like​(java.lang.String value)
        Creates an "LIKE" condition for this property.
      • between

        public WhereCondition between​(java.lang.Object value1,
                                      java.lang.Object value2)
        Creates an "BETWEEN ... AND ..." condition for this property.
      • in

        public WhereCondition in​(java.lang.Object... inValues)
        Creates an "IN (..., ..., ...)" condition for this property.
      • in

        public WhereCondition in​(java.util.Collection<?> inValues)
        Creates an "IN (..., ..., ...)" condition for this property.
      • notIn

        public WhereCondition notIn​(java.lang.Object... notInValues)
        Creates an "NOT IN (..., ..., ...)" condition for this property.
      • notIn

        public WhereCondition notIn​(java.util.Collection<?> notInValues)
        Creates an "NOT IN (..., ..., ...)" condition for this property.
      • gt

        public WhereCondition gt​(java.lang.Object value)
        Creates an "greater than ('>')" condition for this property.
      • lt

        public WhereCondition lt​(java.lang.Object value)
        Creates an "less than ('<')" condition for this property.
      • ge

        public WhereCondition ge​(java.lang.Object value)
        Creates an "greater or equal ('>=')" condition for this property.
      • le

        public WhereCondition le​(java.lang.Object value)
        Creates an "less or equal ('<=')" condition for this property.
      • isNull

        public WhereCondition isNull()
        Creates an "IS NULL" condition for this property.
      • isNotNull

        public WhereCondition isNotNull()
        Creates an "IS NOT NULL" condition for this property.