Read an E from the ResultSet starting at position pos and ending after reading cols number of columns. Make sure the ResultSet is in a valid state (ie, ResultSet::next has been called).
Read an E from the ResultSet starting at position pos and ending after reading cols number of columns. Make sure the ResultSet is in a valid state (ie, ResultSet::next has been called).
Attributes
def writeSingle(entity: E, ps: PreparedStatement, pos: Int): Unit
Write the entity to the PreparedStatement starting at position pos
Write the entity to the PreparedStatement starting at position pos
Attributes
Concrete methods
def biMap[E2](to: E => E2, from: E2 => E): DbCodec[E2]
Build every row in the ResultSet into a sequence of E. The ResultSet should be in its initial position before calling (ie, ResultSet::next not called).
Build every row in the ResultSet into a sequence of E. The ResultSet should be in its initial position before calling (ie, ResultSet::next not called).
Build an E from the ResultSet starting at position 1 and ending after reading cols number of columns. Make sure the ResultSet is in a valid state (ie, ResultSet::next has been called).
Build an E from the ResultSet starting at position 1 and ending after reading cols number of columns. Make sure the ResultSet is in a valid state (ie, ResultSet::next has been called).
Attributes
def write(entities: Iterable[E], ps: PreparedStatement): Unit
Writes multiple entities to the preparedStatement via PreparedStatement::addBatch
Writes multiple entities to the preparedStatement via PreparedStatement::addBatch
Attributes
def writeSingle(entity: E, ps: PreparedStatement): Unit
Write the entity to the resultSet starting at position 1
Write the entity to the resultSet starting at position 1