package Ġmb . lib . db . select Ċ Ċ import Ġio . v ulp ine . lib . query . util . basic . Basic Prepared Read Query Ċ import Ġmb . lib . db . constants . Column Ċ import Ġmb . lib . db . constants . SQL . Select . Users . Is Guest Ċ import Ġjava . sql . Connection Ċ import Ġjava . sql . PreparedStatement Ċ import Ġjava . sql . ResultSet Ċ Ċ data Ġclass ĠSelect User Is Guest ( ĊĠ Ġprivate Ġval Ġcon : ĠConnection , ĊĠ Ġprivate Ġval ĠuserID : ĠLong , Ċ ) Ġ{ ĊĠ Ġfun Ġrun () Ġ= ĠBasic Prepared Read Query ( Is Guest , Ġcon , Ġthis :: parse , Ġthis :: prepare ). execute (). value !! ĊĊĠ Ġfun Ġparse ( rs : ĠResultSet ) Ġ= Ġif Ġ(! rs . next ()) Ġfalse Ġelse Ġrs . getBoolean ( Column . Users . Is Guest ) ĊĊĠ Ġfun Ġprepare ( ps : ĠPreparedStatement ) Ġ= Ġps . set Long ( 1 , ĠuserID ) Ċ } Ċ