package Ġcom . car pool . general . logic . impl Ċ Ċ import Ġcom . car pool . general . data access . api . Binary Object Entity Ċ import Ġcom . car pool . general . data access . api . dao . Binary Object Dao Ċ import Ġcom . car pool . general . logic . api . to . Binary Object E to Ċ import Ġcom . car pool . general . logic . base . Abstract Uc Ċ import Ġcom . car pool . general . logic . base . Uc Manage Binary Object Ċ Ċ import Ġjava . sql . Blob Ċ Ċ import Ġjavax . inject . Inject Ċ import Ġjavax . inject . Named Ċ Ċ /** Ċ Ġ* ĠImplementation Ġof Ġthe Ġ[ Uc Manage Binary Object ] Ġint ref ace . ĊĊ Ġ*/ Ċ @ Named Ċ open Ġclass ĠU c Manage Binary Object Impl ( var Ġbinary Object Dao : ĠBinary Object Dao ) Ġ: ĠAbstract Uc (), ĠU c Manage Binary Object Ġ{ ĊĊĠĠĠ Ġ/** Ġ@ see Ġ. binary Object Dao ĊĠĠĠĠ Ġ*/ ĊĊĠĠĠ Ġ/** ĊĠĠĠĠ Ġ* Ġ@ return Ġbinary Object Dao ĊĠĠĠĠ Ġ*/ ĊĊĊĠĠĠ Ġ/** ĊĠĠĠĠ Ġ* Ġ@ param Ġbinary Object Dao Ġthe Ġbinary Object Dao Ġto Ġset ĊĠĠĠĠ Ġ*/ ĊĠ Ġ/* Ġ Ġ@ Inject ĊĠĠĠ Ġfun Ġset Binary Object Dao ( binary Object Dao : ĠBinary Object Dao ) Ġ{ ĊĊĠĠĠĠĠĠĠ Ġthis . binary Object Dao Ġ= Ġbinary Object Dao ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġbinary Object Dao (): ĠBinary Object Dao Ġ{ ĊĊĠĠĠĠĠĠĠ Ġreturn Ġthis . binary Object Dao ĊĠĠĠ Ġ}*/ ĊĊĠĠĠ Ġoverride Ġfun Ġsave Binary Object ( data : ĠBlob , Ġbinary Object E to : ĠBinary Object E to ): ĠBinary Object E to Ġ{ ĊĊĠĠĠĠĠĠĠ Ġval Ġbinary Object Entity Ġ= Ġbean Mapper !!. map ( binary Object E to , ĠBinary Object Entity :: class . java ) ĊĠĠĠĠĠĠĠ Ġbinary Object Entity . data Ġ= Ġdata ĊĠĠĠĠĠĠĠ Ġthis . binary Object Dao !!. save ( binary Object Entity ) ĊĠĠĠĠĠĠĠ Ġreturn Ġbean Mapper !!. map ( binary Object Entity , ĠBinary Object E to :: class . java ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġdelete Binary Object ( binary ObjectId : ĠLong ?) Ġ{ ĊĊĠĠĠĠĠĠĠ Ġthis . binary Object Dao !!. delete ( binary ObjectId ) ĊĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġfind Binary Object ( binary ObjectId : ĠLong ?): ĠBinary Object E to Ġ{ ĊĊĠĠĠĠĠĠĠ Ġreturn Ġbean Mapper !!. map ( this . binary Object Dao !!. findOne ( binary ObjectId ), ĠBinary Object E to :: class . java ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġget Binary Object Blob ( binary ObjectId : ĠLong ?): ĠBlob Ġ{ ĊĊĠĠĠĠĠĠĠ Ġreturn Ġthis . binary Object Dao !!. findOne ( binary ObjectId ). data ĊĠĠĠ Ġ} Ċ Ċ } Ċ