CourseOfferings class
Specific offering of a course in a particular semester.
Represents a course section (班級) in a specific semester with its schedule, teachers, and enrollment information.
- Inheritance
-
- Object
- HasResultSet
- Table
- CourseOfferings
- Mixed-in types
- Implementers
- Annotations
-
- @TableIndex(name: 'course_offering_course', columns: {#course})
- @TableIndex(name: 'course_offering_semester', columns: {#semester})
Constructors
Properties
-
course
→ Column<
int> -
Reference to the course definition.
latefinal
-
courseType
→ Column<
String> -
Course type for graduation credit requirements (課程標準).
latefinal
-
customConstraints
→ List<
String> -
Custom table constraints that should be added to the table.
no setterinherited
- dontWriteConstraints → bool
-
Drift will write some table constraints automatically, for instance when
you override primaryKey. You can turn this behavior off if you want to.
This is intended to be used by generated code only.
no setterinherited
-
enrolled
→ Column<
int> -
Number of enrolled students (人).
latefinal
-
evaluation
→ Column<
String> -
Evaluation and grading policy (評量方式與標準).
latefinal
-
fetchedAt
→ Column<
DateTime> -
Timestamp of when complete data was last fetched from the server.
latefinalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
-
id
→ Column<
int> -
Auto-incrementing primary key.
latefinalinherited
- isStrict → bool
-
Whether this table is
STRICT.no setterinherited -
language
→ Column<
String> -
Language of instruction (e.g., "英語").
latefinal
-
number
→ Column<
String> -
Unique course offering number (e.g., "313146", "352902").
latefinal
-
objective
→ Column<
String> -
Course objective/outline (課程大綱).
latefinal
-
phase
→ Column<
int> -
Course sequence phase/stage number (階段, e.g., "1", "2").
latefinal
-
primaryKey
→ Set<
Column< ?Object> > -
Override this to specify custom primary keys:
no setterinherited
-
remarks
→ Column<
String> -
Additional remarks or notes about this offering.
latefinal
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
semester
→ Column<
int> -
Reference to the semester when this course is offered.
latefinal
-
status
→ Column<
String> -
Enrollment status for special cases (e.g., "撤選" for withdrawal).
latefinal
-
syllabusId
→ Column<
String> -
Syllabus ID for fetching detailed syllabus information.
latefinal
-
syllabusUpdatedAt
→ Column<
DateTime> -
When the syllabus was last updated (最後更新時間).
latefinal
- tableName → String?
-
The sql table name to be used. By default, drift will use the snake_case
representation of your class name as the sql table name. For instance, a
Table class named
LocalSettingswill be calledlocal_settingsby default. You can change that behavior by overriding this method to use a custom name. Please note that you must directly return a string literal by using a getter. For instance@override String get tableName => 'my_table';is valid, whereas@override final String tableName = 'my_table';or@override String get tableName => createMyTableName();is not.no setterinherited -
textbooks
→ Column<
String> -
Textbooks and reference materials (使用教材、參考書目或其他).
latefinal
-
uniqueKeys
→ List<
Set< ?Column< >Object> > -
Unique constraints in this table.
no setterinherited
-
weeklyPlan
→ Column<
String> -
Weekly plan describing topics covered each week (課程進度).
latefinal
-
withdrawn
→ Column<
int> -
Number of withdrawn students (撤).
latefinal
- withoutRowId → bool
-
Whether to append a
WITHOUT ROWIDclause in theCREATE TABLEstatement. This is intended to be used by generated code only.no setterinherited
Methods
-
blob(
) → ColumnBuilder< Uint8List> -
Use this as the body of a getter to declare a column that holds arbitrary
data blobs, stored as an Uint8List. Example:
inherited
-
boolean(
) → ColumnBuilder< bool> -
Use this as the body of a getter to declare a column that holds bools.
Example (inside the body of a table class):
inherited
-
customType<
T extends Object> (UserDefinedSqlType< T> type) → ColumnBuilder<T> -
Defines a column with a custom
typewhen used as a getter.inherited -
dateTime(
) → ColumnBuilder< DateTime> -
Use this as the body of a getter to declare a column that holds date and
time values.
inherited
-
int64(
) → ColumnBuilder< BigInt> -
Use this as the body of a getter to declare a column that holds a 64-big
integer as a BigInt.
inherited
-
integer(
) → ColumnBuilder< int> -
Use this as the body of a getter to declare a column that holds integers.
inherited
-
intEnum<
T extends Enum> () → ColumnBuilder< int> -
Creates a column to store an
enumclassT.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
real(
) → ColumnBuilder< double> -
Use this as the body of a getter to declare a column that holds floating
point numbers. Example
inherited
-
sqliteAny(
) → ColumnBuilder< DriftAny> -
Use this as a the body of a getter to declare a column that holds
arbitrary values not modified by drift at runtime.
inherited
-
text(
) → ColumnBuilder< String> -
Use this as the body of a getter to declare a column that holds strings.
Example (inside the body of a table class):
inherited
-
textEnum<
T extends Enum> () → ColumnBuilder< String> -
Creates a column to store an
enumclassT.inherited -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited