Class/Object

org.squeryl.internals

FieldMetaData

Related Docs: object FieldMetaData | package internals

Permalink

class FieldMetaData extends AnyRef

Source
FieldMetaData.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. FieldMetaData
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new FieldMetaData(parentMetaData: 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: Any)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def canonicalEnumerationValueFor(id: Int): Value

    Permalink
  6. def clone(): AnyRef

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

    Permalink
  8. def columnName: String

    Permalink

    The name of the database column

  9. def createResultSetHandler: (ResultSet, Int) ⇒ AnyRef

    Permalink
    Attributes
    protected
  10. val customTypeFactory: Option[(AnyRef) ⇒ Product1[Any]]

    Permalink
  11. def declaredAsPrimaryKeyInSchema: Boolean

    Permalink

    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)
    ))
    

  12. def defaultValue: Option[ConstantTypedExpression[_, _]]

    Permalink
  13. def displayType: String

    Permalink
  14. val enumeration: Option[Enumeration]

    Permalink

    None if this FieldMetaData is not an enumeration, Some(theParentEnumeration) otherwise

  15. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  17. def explicitDbTypeCast: Boolean

    Permalink

    If explicit db type case has been requested

  18. def explicitDbTypeDeclaration: Option[String]

    Permalink

    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)

  19. val fieldType: Class[_]

    Permalink
  20. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  21. def get(o: AnyRef): AnyRef

    Permalink

    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

    o

    the object that owns the field

  22. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  23. def getNativeJdbcValue(o: AnyRef): AnyRef

    Permalink
  24. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  25. def isAutoIncremented: Boolean

    Permalink
  26. def isCustomType: Boolean

    Permalink
  27. def isIdFieldOfKeyedEntity: Boolean

    Permalink
  28. def isInsertable: Boolean

    Permalink

    Inserts will only set values for a column if isInsertable is true

  29. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  30. val isOptimisticCounter: Boolean

    Permalink
  31. val isOption: Boolean

    Permalink
  32. def isStringType: Boolean

    Permalink
  33. def isTransient: Boolean

    Permalink
  34. def isUpdatable: Boolean

    Permalink

    Updates will only set values for a column if isUpdatable is true

  35. def length: Int

    Permalink

    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

  36. val nameOfProperty: String

    Permalink
  37. def nativeJdbcType: Class[_]

    Permalink
  38. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  39. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  40. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  41. val parentMetaData: PosoMetaData[_]

    Permalink
  42. val resultSetHandler: (ResultSet, Int) ⇒ AnyRef

    Permalink
  43. val sampleValue: Any

    Permalink
  44. def scale: Int

    Permalink
  45. def schema: Schema

    Permalink
  46. def sequenceName: String

    Permalink
  47. def set(target: AnyRef, v: AnyRef): Unit

    Permalink

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

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

    Permalink
  49. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  50. def toString(): String

    Permalink
    Definition Classes
    FieldMetaData → AnyRef → Any
  51. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  54. val wrappedFieldType: Class[_]

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped