org.squeryl.internals

FieldMetaData

class FieldMetaData extends AnyRef

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. FieldMetaData
  2. AnyRef
  3. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new FieldMetaData (parentMetaData: org.squeryl.internals.PosoMetaData[_], nameOfProperty: String, fieldType: Class[_], wrappedFieldType: Class[_], customTypeFactory: Option[(AnyRef) ⇒ Product1[Any]], isOption: Boolean, getter: Option[Method], setter: Option[Method], field: Option[Field], columnAnnotation: Option[Column], isOptimisticCounter: Boolean, sampleValue: AnyRef)

Value Members

  1. def != (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  2. def != (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  3. def ## (): Int

    Attributes
    final
    Definition Classes
    AnyRef → Any
  4. def == (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  5. def == (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  6. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  7. def canonicalEnumerationValueFor (id: Int): Value

  8. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  9. def columnAttributes : Iterable[ColumnAttribute]

  10. def columnName : String

    The name of the database column

  11. val customTypeFactory : Option[(AnyRef) ⇒ Product1[Any]]

  12. def declaredAsPrimaryKeyInSchema : Boolean

    When true, will cause Schema generation to declare as PrimaryKey, Note that for KeyedEntity[]s, declaredAsPrimaryKeyInSchema is always true, and the cannot be made otherwise, the inverse is not true, a field can be declared as primary key in the Shema without it being the id of a KeyedEntity[], ex.

    When true, will cause Schema generation to declare as PrimaryKey, Note that for KeyedEntity[]s, declaredAsPrimaryKeyInSchema is always true, and the cannot be made otherwise, the inverse is not true, a field can be declared as primary key in the Shema without it being the id of a KeyedEntity[], ex. :

    on(myTable)(t =>declare(
      myField.is(primaryKey)  // myField doesn't need to be a KeyedEntity.id
    ))
    

    on(myKeyedEntityTable)(t =>declare(
      id.is(autoIncremented)  // omiting primaryKey here has no effect, it is equivalent as id.is(primaryKey,autoIncremented)
    ))
    

  13. def defaultValue : Option[org.squeryl.dsl.ast.ConstantExpressionNode[_]]

  14. def displayType : String

  15. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  16. def equals (arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  17. def explicitDbTypeDeclaration : Option[String]

    The db column type declaration overriden in the schema, if None, it means that it is the default value for the adapter (see Correspondance of field types to database column types http://squeryl.

    The db column type declaration overriden in the schema, if None, it means that it is the default value for the adapter (see Correspondance of field types to database column types http://squeryl.org/schema-definition.html)

  18. val fieldType : Class[_]

  19. def finalize (): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  20. def get (o: AnyRef): AnyRef

    gets the value of the field from the object.

    gets the value of the field from the object. Note that it will unwrap Option[] and return null instead of None, i.e. if converts None and Some to null and some.get respectively

  21. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef
  22. def hashCode (): Int

    Definition Classes
    AnyRef → Any
  23. def isAutoIncremented : Boolean

  24. def isCustomType : Boolean

  25. def isEnumeration : Boolean

  26. def isIdFieldOfKeyedEntity : Boolean

  27. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  28. val isOptimisticCounter : Boolean

  29. val isOption : Boolean

  30. def isStringType : Boolean

  31. def length : Int

    returns

    the length defined in org.squeryl.annotations.Column.length if it is defined, or the default length for Java primitive types. The unit of the length is dependent on the type, the convention is that numeric types have a length in byte, boolean is bits date has -1, and for string the lenght is in chars. double,long -> 8, float,int -> 4, byte -> 1, boolean -> 1 java.util.Date -> -1.

    The use of this field is to help custom schema generators select the most appropriate column type

  32. val nameOfProperty : String

  33. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  34. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  35. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  36. val parentMetaData : org.squeryl.internals.PosoMetaData[_]

  37. val resultSetHandler : (ResultSet, Int) ⇒ AnyRef

  38. val sampleValue : AnyRef

  39. def scale : Int

  40. def schema : Schema

  41. def sequenceName : String

  42. def set (target: AnyRef, v: AnyRef): Unit

    Sets the value 'v' to the object, the value will be converted to Some or None if the field is an Option[], (if isOption).

  43. def setFromResultSet (target: AnyRef, rs: ResultSet, index: Int): Unit

  44. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  45. def toString (): String

    Definition Classes
    FieldMetaData → AnyRef → Any
  46. def wait (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  47. def wait (arg0: Long, arg1: Int): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  48. def wait (arg0: Long): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  49. val wrappedFieldType : Class[_]

Inherited from AnyRef

Inherited from Any