com.atomizesoftware.spin.data.repositories.CargoRepositoryComponent

CargoRepositoryImpl

class CargoRepositoryImpl extends CargoRepository

Implements functions related to com.atomizesoftware.spin.models.Cargo

Linear Supertypes
CargoRepository, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. CargoRepositoryImpl
  2. CargoRepository
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new CargoRepositoryImpl()

Value Members

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

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Definition Classes
    AnyRef → Any
  4. def allCargoTypes(implicit s: scala.slick.jdbc.JdbcBackend.Session): List[CargoType]

    Definition Classes
    CargoRepositoryImplCargoRepository
  5. def allCargos(implicit s: scala.slick.jdbc.JdbcBackend.Session): List[Cargo]

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

    Definition Classes
    Any
  7. def cargoTotalCountForFilters(filter: String, filterOr: String, search: String, references: String)(implicit s: scala.slick.jdbc.JdbcBackend.Session): Long

    Gets the number of records that correspond to the complex select statement.

    Gets the number of records that correspond to the complex select statement.

    Definition Classes
    CargoRepositoryImplCargoRepository
  8. def cargoTypeTotalCountForFilters(filter: String, filterOr: String, search: String, references: String)(implicit s: scala.slick.jdbc.JdbcBackend.Session): Long

    Gets the number of records that correspond to the complex select statement.

    Gets the number of records that correspond to the complex select statement.

    Definition Classes
    CargoRepositoryImplCargoRepository
  9. def cargoTypeWithId(id: Long)(implicit s: scala.slick.jdbc.JdbcBackend.Session): Option[CargoType]

    Definition Classes
    CargoRepositoryImplCargoRepository
  10. def cargoTypesForFilters(limit: Int, offset: Int, references: String, filter: String, filterOr: String, search: String, sortBy: String, timeZoneId: String)(implicit s: scala.slick.jdbc.JdbcBackend.Session): List[CargoType]

    Gets a list of com.atomizesoftware.spin.models.CargoType with the requested filters.

    Gets a list of com.atomizesoftware.spin.models.CargoType with the requested filters.

    Definition Classes
    CargoRepositoryImplCargoRepository
  11. def cargoTypesForSync(syncTimestamp: Long)(implicit s: scala.slick.jdbc.JdbcBackend.Session): List[CargoType]

    Gets a list of com.atomizesoftware.spin.models.CargoType for synchronization with mobile devices.

    Gets a list of com.atomizesoftware.spin.models.CargoType for synchronization with mobile devices.

    Definition Classes
    CargoRepositoryImplCargoRepository
  12. def cargoWithId(id: Long, filter: String, filterOr: String, references: String)(implicit s: scala.slick.jdbc.JdbcBackend.Session): Option[Cargo]

    Definition Classes
    CargoRepositoryImplCargoRepository
  13. def cargoWithId(id: Long, filter: String, filterOr: String)(implicit s: scala.slick.jdbc.JdbcBackend.Session): Option[Cargo]

    Definition Classes
    CargoRepositoryImplCargoRepository
  14. def cargoWithId(id: Long)(implicit s: scala.slick.jdbc.JdbcBackend.Session): Option[Cargo]

    Definition Classes
    CargoRepositoryImplCargoRepository
  15. def cargosAndTotalCountForFilters(references: String, filter: String, filterOr: String, search: String, sortBy: String, timeZoneId: String, limit: Int, offset: Int)(implicit s: scala.slick.jdbc.JdbcBackend.Session): (List[Cargo], Long)

    Returns a tuple with the list of cargos that pertain to the selection filters and the total number of matching records that were found.

    Returns a tuple with the list of cargos that pertain to the selection filters and the total number of matching records that were found.

    If no limit was imposed in the selection filters, we do not make another query to get the total number of records, as they were already returned.

    Definition Classes
    CargoRepositoryImplCargoRepository
  16. def cargosForFilters(references: String, filter: String, filterOr: String, search: String, sortBy: String, timeZoneId: String, limit: Int, offset: Int)(implicit s: scala.slick.jdbc.JdbcBackend.Session): List[Cargo]

    Gets a list of com.atomizesoftware.spin.models.Cargo with the requested filters.

    Gets a list of com.atomizesoftware.spin.models.Cargo with the requested filters.

    Definition Classes
    CargoRepositoryImplCargoRepository
  17. def cargosForSync(syncTimestamp: Long, references: String)(implicit s: scala.slick.jdbc.JdbcBackend.Session): List[Cargo]

    Gets a list of com.atomizesoftware.spin.models.Cargo for synchronization with mobile devices.

    Gets a list of com.atomizesoftware.spin.models.Cargo for synchronization with mobile devices.

    Definition Classes
    CargoRepositoryImplCargoRepository
  18. def cargosInLocationWithId(locationId: Long, include: String = "")(implicit session: scala.slick.jdbc.JdbcBackend.Session): List[Cargo]

    Gets the com.atomizesoftware.spin.models.Cargos that are in a given location and its children.

    Gets the com.atomizesoftware.spin.models.Cargos that are in a given location and its children. The cargos that are parked in the given location and its children

    returns

    a list of cargos in the location.

    Definition Classes
    CargoRepositoryImplCargoRepository
  19. def cargosInsideOf(containerId: Long, depth: Int = 1)(implicit s: scala.slick.jdbc.JdbcBackend.Session): List[Cargo]

    Gets the com.atomizesoftware.spin.models.Cargos inside a given parent recursively until the provided depth level.

    Gets the com.atomizesoftware.spin.models.Cargos inside a given parent recursively until the provided depth level.

    Definition Classes
    CargoRepositoryImplCargoRepository
  20. def cargosWithParentOfId(parentId: Long)(implicit session: scala.slick.jdbc.JdbcBackend.Session): List[Cargo]

    Gets the com.atomizesoftware.spin.models.Cargos with a given parent.

    Gets the com.atomizesoftware.spin.models.Cargos with a given parent. The Cargos that are children of the given parent.

    returns

    a list of cargos with the given parent.

    Definition Classes
    CargoRepositoryImplCargoRepository
  21. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. def deleteCargo(id: Long)(implicit s: scala.slick.jdbc.JdbcBackend.Session, currentUser: AuthenticatedUser): Boolean

    Deletes a cargo and the associated movable item

    Deletes a cargo and the associated movable item

    id

    of the cargo to delete.

    Definition Classes
    CargoRepositoryImplCargoRepository
  23. def deleteCargoType(id: Long)(implicit s: scala.slick.jdbc.JdbcBackend.Session, currentUser: AuthenticatedUser): Boolean

    Definition Classes
    CargoRepositoryImplCargoRepository
  24. final def eq(arg0: AnyRef): Boolean

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  27. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  28. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  29. def insertCargo(cargo: Cargo)(implicit s: scala.slick.jdbc.JdbcBackend.Session, currentUser: AuthenticatedUser): Try[Cargo]

    Creates a cargo and the correspondent movable item

    Creates a cargo and the correspondent movable item

    returns

    the newly created cargo with the movable item

    Definition Classes
    CargoRepositoryImplCargoRepository
    Exceptions thrown
    InternalErrorException

    when the cargo doesn't contain movable item information, when it isn't possible to create the movable item or the cargo.

  30. def insertCargoType(cargoType: CargoType)(implicit s: scala.slick.jdbc.JdbcBackend.Session, currentUser: AuthenticatedUser): CargoType

    Creates a cargo type.

    Creates a cargo type.

    returns

    the newly created cargo type.

    Definition Classes
    CargoRepositoryImplCargoRepository
    Exceptions thrown
    InternalErrorException

    if we can't create the cargo type.

  31. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  32. def locationIdOfCargoWithId(cargoId: Long)(implicit s: scala.slick.jdbc.JdbcBackend.Session): Option[Long]

    Gets a cargo location id.

    Gets a cargo location id.

    Definition Classes
    CargoRepositoryImplCargoRepository
  33. def locationIdOfCargosWithIds(cargoIds: List[Long])(implicit s: scala.slick.jdbc.JdbcBackend.Session): List[Option[Long]]

    Gets the location id of several cargos by their ids.

    Gets the location id of several cargos by their ids.

    Definition Classes
    CargoRepositoryImplCargoRepository
  34. val logger: Logger

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

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

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

    Definition Classes
    AnyRef
  38. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  39. def toString(): String

    Definition Classes
    AnyRef → Any
  40. def updateCargo(cargo: Cargo)(implicit s: scala.slick.jdbc.JdbcBackend.Session, currentUser: AuthenticatedUser): Boolean

    Updates a com.atomizesoftware.spin.models.Cargo

  41. def updateCargoType(cargoType: CargoType)(implicit s: scala.slick.jdbc.JdbcBackend.Session, currentUser: AuthenticatedUser): Boolean

    Updates a com.atomizesoftware.spin.models.ContainerType

    cargoType

    to update

    Definition Classes
    CargoRepositoryImplCargoRepository
  42. def updateCargos(cargos: List[Cargo])(implicit s: scala.slick.jdbc.JdbcBackend.Session, currentUser: AuthenticatedUser): Boolean

    Updates several cargos and their associated movable items.

    Updates several cargos and their associated movable items.

    returns

    true if the cargos were all updated successfully, false otherwise.

    Definition Classes
    CargoRepositoryImplCargoRepository
  43. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from CargoRepository

Inherited from AnyRef

Inherited from Any

Ungrouped