package Ġcom . ide al Intent . models . composition s . basic Collections . images Ċ Ċ import Ġcom . ide al Intent . models . composition s . basic Collections . texts . I Record Collection To D 2 Collection Ċ import Ġmodels . I With Order Ċ import Ġorg . kt orm . entity . Entity Ċ import Ġorg . kt orm . schema . Table Ċ import Ġorg . kt orm . schema . int Ċ Ċ interface ĠI Image Collection To D 2 Collection Entity Ġ: ĠEntity < I Image Collection To D 2 Collection Entity >, ĠI With Order , ĊĠĠĠ ĠI Record Collection To D 2 Collection Ġ{ ĊĠĠĠ Ġcompanion Ġobject Ġ: ĠEntity . Factory < I Image Collection To D 2 Collection Entity >() Ċ } Ċ Ċ open Ġclass ĠImage Collection To D 2 Collections Model ( alias : ĠString ?) Ġ: ĊĠĠĠ ĠTable < I Image Collection To D 2 Collection Entity >(" image _ collection _ to _ d 2 _ collections ", Ġalias ) Ġ{ ĊĠĠĠ Ġcompanion Ġobject Ġ: ĠImage Collection To D 2 Collections Model ( null ) ĊĊĠĠĠ Ġoverride Ġfun Ġali ased ( alias : ĠString ) Ġ= ĠImage Collection To D 2 Collections Model ( alias ) ĊĊĠĠĠ Ġval Ġorder Rank Ġ= Ġint (" order _ rank "). bind To Ġ{ Ġit . order Rank Ġ} ĊĠĠĠ Ġval Ġd 2 Collection Id Ġ= Ġint (" d 2 _ collection _ id "). bind To Ġ{ Ġit . d 2 Collection Id Ġ} ĊĠĠĠ Ġval Ġcollection Id Ġ= Ġint (" collection _ id "). bind To Ġ{ Ġit . collection Id Ġ} Ċ } Ċ