final case class BroadcastAbleTransactionDAO()(implicit appConfig: NodeAppConfig, ec: ExecutionContext) extends CRUD[BroadcastAbleTransaction, DoubleSha256DigestBE] with SlickUtil[BroadcastAbleTransaction, DoubleSha256DigestBE] with Product with Serializable
- Alphabetic
- By Inheritance
- BroadcastAbleTransactionDAO
- Serializable
- Product
- Equals
- SlickUtil
- CRUD
- JdbcProfileComponent
- Logging
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new BroadcastAbleTransactionDAO()(implicit appConfig: NodeAppConfig, ec: ExecutionContext)
Type Members
- class BroadcastAbleTransactionTable extends slick.jdbc.JdbcProfile.API.Table[BroadcastAbleTransaction]
Table over TXs we can broadcast over the P2P network
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- implicit val appConfig: NodeAppConfig
- Definition Classes
- BroadcastAbleTransactionDAO → CRUD → JdbcProfileComponent
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def count(): Future[Int]
Returns number of rows in the table
Returns number of rows in the table
- Definition Classes
- CRUD
- def create(t: BroadcastAbleTransaction): Future[BroadcastAbleTransaction]
create a record in the database
create a record in the database
- t
- the record to be inserted
- returns
the inserted record
- Definition Classes
- CRUD
- def createAll(ts: Vector[BroadcastAbleTransaction]): Future[Vector[BroadcastAbleTransaction]]
- Definition Classes
- BroadcastAbleTransactionDAO → CRUD
- def createAllNoAutoInc(ts: Vector[BroadcastAbleTransaction], database: SafeDatabase)(implicit ec: ExecutionContext): Future[Vector[BroadcastAbleTransaction]]
Creates rows in a database that are not auto incremented
Creates rows in a database that are not auto incremented
- Definition Classes
- SlickUtil
- lazy val database: slick.jdbc.JdbcProfile.API.Database
The database we are connecting to
The database we are connecting to
- Definition Classes
- JdbcProfileComponent
- lazy val dbConfig: DatabaseConfig[JdbcProfile]
The configuration details for connecting/using the database for our projects that require database connections
The configuration details for connecting/using the database for our projects that require database connections
- Definition Classes
- JdbcProfileComponent
- def debug(mkr: Marker, msg: => Any, t: => Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def debug(msg: => Any, t: => Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def debug(msg: => Any): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def delete(t: BroadcastAbleTransaction): Future[Int]
delete the corresponding record in the database
delete the corresponding record in the database
- t
- the record to be deleted
- returns
int - the number of rows affected by the deletion
- Definition Classes
- CRUD
- def deleteAll(): Future[Int]
delete all records from the table
delete all records from the table
- Definition Classes
- CRUD
- implicit val ec: ExecutionContext
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def error(mkr: Marker, msg: => Any, t: => Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def error(msg: => Any, t: => Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def error(msg: => Any): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def find(t: BroadcastAbleTransaction): slick.jdbc.JdbcProfile.API.Query[slick.jdbc.JdbcProfile.API.Table[_], BroadcastAbleTransaction, Seq]
return the row that corresponds with this record
return the row that corresponds with this record
- t
- the row to find
- returns
query - the sql query to find this record
- Attributes
- protected
- Definition Classes
- CRUD
- def findAll(ts: Vector[BroadcastAbleTransaction]): slick.jdbc.JdbcProfile.API.Query[BroadcastAbleTransactionTable, BroadcastAbleTransaction, Seq]
- Attributes
- protected
- Definition Classes
- BroadcastAbleTransactionDAO → CRUD
- def findAll(): Future[Vector[BroadcastAbleTransaction]]
Finds all elements in the table
Finds all elements in the table
- Definition Classes
- CRUD
- def findByHash(hash: DoubleSha256Digest): Future[Option[BroadcastAbleTransaction]]
Searches for a TX by its TXID
- def findByHash(hash: DoubleSha256DigestBE): Future[Option[BroadcastAbleTransaction]]
- def findByPrimaryKey(id: DoubleSha256DigestBE): slick.jdbc.JdbcProfile.API.Query[slick.jdbc.JdbcProfile.API.Table[_], BroadcastAbleTransaction, Seq]
return all rows that have a certain primary key
return all rows that have a certain primary key
- returns
Query object corresponding to the selected rows
- Attributes
- protected
- Definition Classes
- CRUD
- def findByPrimaryKeys(txIds: Vector[DoubleSha256DigestBE]): slick.jdbc.JdbcProfile.API.Query[BroadcastAbleTransactionTable, BroadcastAbleTransaction, Seq]
Finds the rows that correlate to the given primary keys
Finds the rows that correlate to the given primary keys
- Attributes
- protected
- Definition Classes
- BroadcastAbleTransactionDAO → CRUD
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def info(mkr: Marker, msg: => Any, t: => Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def info(msg: => Any, t: => Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def info(msg: => Any): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def isDebugEnabled: Boolean
- Attributes
- protected
- Definition Classes
- Logging
- def isErrorEnabled: Boolean
- Attributes
- protected
- Definition Classes
- Logging
- def isInfoEnabled: Boolean
- Attributes
- protected
- Definition Classes
- Logging
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isTraceEnabled: Boolean
- Attributes
- protected
- Definition Classes
- Logging
- def isWarnEnabled: Boolean
- Attributes
- protected
- Definition Classes
- Logging
- def logger: Logger
- Attributes
- protected
- Definition Classes
- Logging
- def loggerName: String
- Attributes
- protected
- Definition Classes
- Logging
- val mappers: DbCommonsColumnMappers
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- lazy val numThreads: Int
- Definition Classes
- JdbcProfileComponent
- lazy val password: String
- Definition Classes
- JdbcProfileComponent
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- lazy val profile: JdbcProfile
- Definition Classes
- JdbcProfileComponent
- def read(id: DoubleSha256DigestBE): Future[Option[BroadcastAbleTransaction]]
read a record from the database
read a record from the database
- id
- the id of the record to be read
- returns
Option[T] - the record if found, else none
- Definition Classes
- CRUD
- def safeDatabase: SafeDatabase
Binding to the actual database itself, this is what is used to run querys
Binding to the actual database itself, this is what is used to run querys
- Definition Classes
- CRUD
- val schemaName: Option[String]
- Definition Classes
- CRUD
- def startHikariLogger(interval: Duration): HikariLogging
Starts the background logger for hikari
Starts the background logger for hikari
- interval
- how often hikari logs database connection pool information
- Attributes
- protected
- Definition Classes
- JdbcProfileComponent
- def stopHikariLogger(): Unit
- Attributes
- protected
- Definition Classes
- JdbcProfileComponent
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- val table: slick.jdbc.JdbcProfile.API.TableQuery[BroadcastAbleTransactionTable]
The table inside our database we are inserting into
The table inside our database we are inserting into
- Definition Classes
- BroadcastAbleTransactionDAO → CRUD
- implicit def tableQuerySafeSubtypeCast[SpecificT <: AbstractTable[_], SomeT <: SpecificT](tableQuery: slick.jdbc.JdbcProfile.API.TableQuery[SomeT]): slick.jdbc.JdbcProfile.API.TableQuery[SpecificT]
We need to cast from TableQuery's of internal types (e.g.
We need to cast from TableQuery's of internal types (e.g. AddressDAO#AddressTable) to external versions of them (e.g. AddressDAO().table). You'll notice that although the latter is a subtype of the first, this requires a cast since TableQuery is not covariant in its type parameter.
However, since Query is covariant in its first type parameter, I believe the cast from TableQuery[T1] to TableQuery[T2] will always be safe so long as T1 is a subtype of T2 AND T1#TableElementType is equal to T2#TableElementType.
The above conditions are always the case when this is called within DAOs as it is only ever used for things of the form TableQuery[XDAO().table] -> TableQuery[XDAO#XTable].
- Attributes
- protected
- Definition Classes
- CRUD
- def trace(mkr: Marker, msg: => Any, t: => Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def trace(msg: => Any, t: => Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def trace(msg: => Any): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def update(t: BroadcastAbleTransaction): Future[BroadcastAbleTransaction]
Update the corresponding record in the database
Update the corresponding record in the database
- Definition Classes
- CRUD
- def updateAll(ts: Vector[BroadcastAbleTransaction]): Future[Vector[BroadcastAbleTransaction]]
- Definition Classes
- CRUD
- def upsert(t: BroadcastAbleTransaction): Future[BroadcastAbleTransaction]
insert the record if it does not exist, update it if it does
insert the record if it does not exist, update it if it does
- t
- the record to inserted / updated
- returns
t - the record that has been inserted / updated
- Definition Classes
- CRUD
- def upsertAll(ts: Vector[BroadcastAbleTransaction]): Future[Vector[BroadcastAbleTransaction]]
Upserts all of the given ts in the database, then returns the upserted values
Upserts all of the given ts in the database, then returns the upserted values
- Definition Classes
- CRUD
- lazy val username: String
- Definition Classes
- JdbcProfileComponent
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def warn(mkr: Marker, msg: => Any, t: => Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def warn(msg: => Any, t: => Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def warn(msg: => Any): Unit
- Attributes
- protected
- Definition Classes
- Logging