Object

org.genivi.sota.core.db

UpdateSpecs

Related Doc: package db

Permalink

object UpdateSpecs

Database mapping definitions for the UpdateSpecs and RequiredPackages tables.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. UpdateSpecs
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Type Members

  1. class RequiredPackageTable extends slick.driver.JdbcProfile.API.Table[(Namespace, UUID, Vin, Name, Version)]

    Permalink

    Child table of UpdateSpecTable.

    Child table of UpdateSpecTable. For each row in that table there's one or more rows in this table.

  2. class UpdateSpecTable extends slick.driver.JdbcProfile.API.Table[(Namespace, UUID, Vin, UpdateStatus)]

    Permalink

    Each row corresponds to an UpdateSpec instance except that dependencies are kept in RequiredPackageTable

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. implicit val UpdateStatusColumn: slick.driver.MySQLDriver.BaseColumnType[UpdateStatus]

    Permalink
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def cancelUpdate(vin: Vin, uuid: Refined[String, Uuid]): slick.driver.JdbcProfile.API.DBIO[Int]

    Permalink

    Abort a pending update specified by uuid and vin.

    Abort a pending update specified by uuid and vin. Updates with statuses other than 'Pending' will not be aborted

  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def deleteRequiredPackageByVin(ns: Namespace, vehicle: Vehicle): slick.driver.JdbcProfile.API.DBIO[Int]

    Permalink

    Delete all the required packages that are needed for a VIN.

    Delete all the required packages that are needed for a VIN. This is part of the process for deleting a VIN from the system

    vehicle

    The vehicle to get the VIN to delete from

  9. def deleteUpdateSpecByVin(ns: Namespace, vehicle: Vehicle): slick.driver.JdbcProfile.API.DBIO[Int]

    Permalink

    Delete all the updates for a specific VIN This is part of the process for deleting a VIN from the system

    Delete all the updates for a specific VIN This is part of the process for deleting a VIN from the system

    vehicle

    The vehicle to get the VIN to delete from

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. def findBy(arg: UpdateSpec): slick.driver.JdbcProfile.API.DBIO[(Namespace, UUID, Vin, UpdateStatus)]

    Permalink

    Lookup by PK in UpdateSpecTable table.

    Lookup by PK in UpdateSpecTable table. Note: A tuple is returned instead of an UpdateSpec instance because the later would require joining RequiredPackageTable to populate the dependencies of that instance.

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

    Permalink
    Definition Classes
    AnyRef → Any
  15. def getVinsQueuedForPackage(ns: Namespace, pkgName: Name, pkgVer: Version): slick.driver.JdbcProfile.API.DBIO[Seq[Vin]]

    Permalink

    Return a list of all the VINs that a specific version of a package will be installed on.

    Return a list of all the VINs that a specific version of a package will be installed on. Note that VINs where the package has started installation, or has either been installed or where the install failed are not included.

    pkgName

    The package name to search for

    pkgVer

    The version of the package to search for

    returns

    A list of VINs that the package will be installed on

  16. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. def listUpdatesById(updateRequestId: Refined[String, Uuid]): slick.driver.JdbcProfile.API.DBIO[Seq[(Namespace, UUID, Vin, UpdateStatus)]]

    Permalink

    The UpdateSpec-s (excluding dependencies but including status) for the given UpdateRequest.

    The UpdateSpec-s (excluding dependencies but including status) for the given UpdateRequest. Each element in the result corresponds to a different VIN.

  19. def load(vin: Vin, updateId: UUID)(implicit ec: ExecutionContext): slick.driver.JdbcProfile.API.DBIO[Iterable[UpdateSpec]]

    Permalink

    Install a list of specific packages on a VIN

    Install a list of specific packages on a VIN

    vin

    The VIN to install on

    updateId

    Update Id of the update to install

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

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

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

    Permalink
    Definition Classes
    AnyRef
  23. def persist(updateSpec: UpdateSpec): slick.driver.JdbcProfile.API.DBIO[Unit]

    Permalink

    Add an update for a specific VIN.

    Add an update for a specific VIN. This update will consist of one-or-more packages that need to be installed on a single VIN

    updateSpec

    The list of packages that should be installed

  24. val requiredPackages: TableQuery[RequiredPackageTable]

    Permalink
  25. def setStatus(vin: Vin, uuid: Refined[String, Uuid], newStatus: UpdateStatus): slick.driver.JdbcProfile.API.DBIO[Int]

    Permalink

    Set status of a given update to 'In-Flight'

    Set status of a given update to 'In-Flight'

    vin

    the vin associated with the desired update

    uuid

    the uuid of the update whose status should be changed

  26. def setStatus(spec: UpdateSpec, newStatus: UpdateStatus): slick.driver.JdbcProfile.API.DBIO[Int]

    Permalink

    Rewrite in the DB the status of an UpdateSpec, ie for a (campaign, VIN) combination.

    Rewrite in the DB the status of an UpdateSpec, ie for a (campaign, VIN) combination.

    spec

    The combination of VIN and update request to record the status of

    newStatus

    The latest status of the installation. One of Pending InFlight, Canceled, Failed or Finished.

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  29. val updateRequests: TableQuery[UpdateRequestTable]

    Permalink
  30. val updateSpecs: TableQuery[UpdateSpecTable]

    Permalink
  31. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped