FbFieldDef class

The definition of a table field in the database.

Objects of class FbFieldDef are immutable and in general are constructed internally by FbDb routines. There is little use of creating FbFieldDef objects by hand in code. However, you can obtain and examine FbFieldDef objects from queries to determine the structure of the underlying data set.

Constructors

FbFieldDef(String name, int offset, FbFieldType type, {int length = 0, int subType = 0, int scale = 0, bool nullable = true, int fbType = 0})
Constructs a constant field definition.
const

Properties

fbType int
The Firebird type code.
final
hashCode int
The hash code for this object.
no setterinherited
length int
The size of the field (both character and numeric).
final
name String
The name of the field.
final
nullable bool
Is the field nullable.
final
offset int
The offset of this field in the message.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scale int
The field scale (when applicable).
final
subType int
Subtype of blob fields.
final
type FbFieldType
The type of the field.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fromMetadata(IMessageMetadata? metadata, int fieldIdx, IStatus status) FbFieldDef
Constructs the field definition from Firebird's message metadata.