UserSemesterSummaries class

Per-user per-semester academic summary from the student query system.

Stores aggregate statistics like weighted average, conduct grade, and credits for each semester, as well as registration status information.

Data sources:

  • StudentQueryService.getAcademicPerformance() — scores and averages
  • StudentQueryService.getRegistrationRecords() — registration status
  • StudentQueryService.getGradeRanking() — rankings (via UserSemesterRankings)
Inheritance
Mixed-in types
Implementers
Annotations
  • @TableIndex(name: 'user_semester_summary_user', columns: {#user})

Constructors

UserSemesterSummaries()

Properties

average Column<double>
Weighted average for the semester.
latefinal
className Column<String>
Student's assigned class name (e.g., "電子四甲"). Plain text — no class code available from this page.
latefinal
conduct Column<double>
Conduct grade.
latefinal
creditsPassed Column<double>
Credits passed/earned.
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
enrollmentStatus Column<String>
Enrollment status (在學, 休學, or 退學).
latefinal
graduated Column<bool>
Whether the student graduated this semester.
latefinal
grandTotalGpa Column<double>
Historical cumulative GPA (歷年 GPA) for the semester snapshot.
latefinal
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
note Column<String>
Additional note.
latefinal
primaryKey Set<Column<Object>>?
Override this to specify custom primary keys:
no setterinherited
registered Column<bool>
Whether the student is registered for this semester.
latefinal
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
semester Column<int>
Reference to the semester.
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 LocalSettings will be called local_settings by 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
totalCredits Column<double>
Total credits attempted.
latefinal
uniqueKeys List<Set<Column<Object>>>
Unique constraints in this table.
no setteroverride
user Column<int>
Reference to the authenticated user.
latefinal
withoutRowId bool
Whether to append a WITHOUT ROWID clause in the CREATE TABLE statement. 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 type when 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 enum class T.
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 enum class T.
inherited
toString() String
A string representation of this object.
inherited

Operators

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