org.squeryl.internals

FieldMetaData

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
Learn more about member selection
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)

Value Members

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

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

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

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

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

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

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

  8. def clone(): AnyRef

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

  10. def columnName: String

    The name of the database column

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

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

  13. 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)  // omitting primaryKey here has no effect, it is equivalent as id.is(primaryKey,autoIncremented)
    ))
    

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

  15. def displayType: String

  16. val enumeration: Option[Enumeration]

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

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

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

    Definition Classes
    AnyRef → Any
  19. def explicitDbTypeCast: Boolean

    If explicit db type case has been requested

  20. def explicitDbTypeDeclaration: Option[String]

    The db column type declaration overridden 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 overridden 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)

  21. val fieldType: Class[_]

  22. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  23. 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

    o

    the object that owns the field

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

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

  26. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  27. def isAutoIncremented: Boolean

  28. def isCustomType: Boolean

  29. def isIdFieldOfKeyedEntity: Boolean

  30. def isInsertable: Boolean

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

  31. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  32. val isOptimisticCounter: Boolean

  33. val isOption: Boolean

  34. def isStringType: Boolean

  35. def isTransient: Boolean

  36. def isUpdatable: Boolean

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

  37. 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 length 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

  38. val nameOfProperty: String

  39. def nativeJdbcType: Class[_]

  40. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  41. final def notify(): Unit

    Definition Classes
    AnyRef
  42. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  43. val parentMetaData: PosoMetaData[_]

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

  45. val sampleValue: Any

  46. def scale: Int

  47. def schema: Schema

  48. def sequenceName: String

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

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

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

    Definition Classes
    AnyRef
  52. def toString(): String

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

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped