Find In Cache By Key ADF BC API Method Usage by Andrejus Baranovskis

image

 

What if you need to verify – if row with given key exists in fetched rowset? This could be useful while implementing validation logic. ADF BC API method findByKey – will trigger SQL call and fetch row from DB, if row with given key doesn’t exist in fetched rowset. Luckily there is ADF BC API method called findInCacheByKey, this method only checks for row in fetched rowset, without going to DB – very convenient in certain situations, when you actually don’t want to bring record from DB, if it wasn’t fetched.

Now if we call custom method, where findInCacheByKey is invoked twice – you will see different results. First call is using key from fetched rowset – this call will find a row. Second call is using key, which doesn’t belong to the fetched rowset – row is not in cache and call will return zero rows: Read the complete article here.

 

Developer Partner Community

For regular information become a member in the WebLogic Partner Community please visit: http://www.oracle.com/partners/goto/wls-emea ( OPN account required). If you need support with your account please contact the Oracle Partner Business Center.

clip_image003 Blog clip_image005 Twitter clip_image004 LinkedIn image[7][2][2][2] Facebook image Meetups

Technorati Tags: PaaS,Cloud,Middleware Update,WebLogic, WebLogic Community,Oracle,OPN,Jürgen Kress

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.