docs / it.uniroma3.dbtree.spi.impl.keyParsers / PersonParser

PersonParser

class PersonParser : KeyParser<Person> (source)

Example of KeyParser class, managing a groupBy key: Person. A Person is identify by firstName and lastName

Constructors

<init>

Example of KeyParser class, managing a groupBy key: Person. A Person is identify by firstName and lastName

PersonParser()

Properties

keyColumnsDefinitionDB

It is the list of all the column names and their definition that identify a key.

val keyColumnsDefinitionDB: List<Pair<String, String>>

Functions

eqDB

DB query for 'equal to' relationship.

fun eqDB(columnName: List<String>, k: Person): String

geqDB

DB query for 'greater than or equal' relationship.

fun geqDB(columnName: List<String>, k: Person): String

getMax

Returns the maximum value for the managed key type.

fun getMax(): Person

getMin

Returns the minimum value for the managed key type..

fun getMin(): Person

gtDB

DB query for 'greater than' relationship.

fun gtDB(columnName: List<String>, k: Person): String

leqDB

DB query for 'less than or equal' relationship.

fun leqDB(columnName: List<String>, k: Person): String

ltDB

DB query for 'less than' relationship.

fun ltDB(columnName: List<String>, k: Person): String

parse

Parses a key given the corresponding serialized representation.

fun parse(s: String): Person

toDB

Returns the full representation of a key into the underlying database.

fun toDB(k: Person): String

toNodeTransfer

Converts the ResultSet of a DB tuple into the corresponding NodeTransfer.

fun toNodeTransfer(rs: ResultSet): NodeTransfer