Transient entity attributes and clearing cache

I have an entity with both queriable and transient attributes. One of the transient attributes uses the persistent primary key of the entity object as well as an attributes retrieved from another entity via an association in order to execute a CallableStatement. This transient attribute uses the following code:
public Number getReflectallow() {
if ((Number)getAttributeInternal(REFLECTALLOW) == null) {
return getReflectAllowFromDB();
} else {
return (Number)getAttributeInternal(REFLECTALLOW);
The getReflectAllowFromDB also sets the value in entity cache using the populateAttribute method.
My problem is that this database value can change and there are certain points in the application where I would like to clear the cache and rebuild all new values for this attribute. I have tried using both getTransaction.clearEntityCache() and the clearCache() on the view object but neither affects this field. I also cannot loop through the view and reset that attribute to null because it dirties the transaction. I'm assuming that clearing the cache does not work because the attribute is transient. How can I clear the values from cache?

Any help with this Shay?

Similar Messages

  • Transient Entity Attribute as an Assoc

    Can I use a transient Entity attribute as an Assoc?
    I created an Attribute at the Entity level that is not mapped to a table. The entity is called FirstEndEntity.
    Then I created an Association between FirstEndEntity and OtherEndEntity. I used the attribute that i just created at FirstEndEntity, (so its transient) and the OtherEndEntity attribute is mapped to DB table.
    When I tested the assoc, the wizard complains, saying he cannot resolve the attribute that i just created?
    Is there a way around this?

    yes, you're right, I've tested it in 12.1.3 and error message was displayed.
    it seems it's a bug(bad bug ) in both 11.1.1.7 and 12.1.2. and now what can I do? is there any way to display the the error message?
    Regards
    Habib

  • Display entity-attributes and global-attributes in the same screen

    Hi,
    I have a question about entity.
    Is it possible to display in the same screen, entity-attributes and global-attributes?
    thanks
    Rosalia

    Hi Rosalia,
    You can only display attributes from the current entity and the entity or entities that it is contained by (the parent entities).
    So if you had the following data model
    Global
    ..the person
    ...the income
    the person is contained by global.
    the income is contained by the person (which is contained by global).
    If you want to create a person-level question screen, you can display global attributes on that screen by using subsitution like %global_field_1%. You cannot, however, input global attributes on that screen (ONLY attributes belonging to the person)
    If you want to create an income-level question screen, you can display attributes from the person such as "tell us about %person_name%'s income..." as well as global attributes. Again, you cannot input person or global attributes on that screen (ONLY attributes belonging to the income)
    However it only works from child-to-parent containment relationships! You cannot have a global question screen which loops through the person instances and displays attributes from the person, or from the income out-of-the-box.
    We have managed to implement this using custom controls.
    You can map individual attributes back up to the parent level, and then display them,
    such as
    the first person's name = InstanceValueIf(the people, the person's name, the person's id = 1)
    the first person's name is now a global attribute and can be displayed on global question screens.
    Hope this helps!
    Ben

  • Creating Transient EO attribute and Mapping it to VO

    Hi all,
    Pls suggest me the best approach/solutions.
    Its to add a transient attribute to EO and update it by mapping it to a VO(using expert query) attribute.
    Regards,
    Santhosh.

    Here is what I would do.
    1. Create either a new, extended EO or modify the existing EO using the jDeveloper EO wizard and create the new, transient attributes through that wizard. This will automatically create EO setter and getter methods for the transient attributes. Since they are already in the EO they can use the other EO set and get methods to create the transient data. Since the new attribute is transient, the set method for it is probably not as important since transient attributes do not support DML as they are not attached to table attributes.
    2. Next create a new, extended VO or modify the existing VO using the jDeveloper VO wizard adding the extended EO if one was created. At the SQL pane add the EO transient attributes to the select statement which will automatically create EO - VO mapping entries for the new fields. Be aware, jDeveloper will NOT create these properly. The VO xml will have to be edited because it will not correctly identify the EO entries in the VO xml. Shut down jDeveloper and open the VO xml using an editor. Locate your added attributes and, using an properly associated VO/EO attribute as a template, modify your VO xml so that the attributes properly match to the EO.
    3. If you are using extended objects you will have to create a substitution for both the extended EO and the extended VO. At deployment you must deploy the new, extended objects and the substitution in order for everything to work properly.

  • IE will load my excite home page but Firefox won't after following all of the suggestions , enabled cookies, java script and cleared cache.

    Was working fine for years until virus scan today. It will pull up the site, but not allow me to access my personal home page. Running XP on one laptop and Vista on the other. Same problem with both machines after running scan. Only problem appears to be accessing my home page on excite.com. Have enabled both cookies and java script as well as clearing cache.
    Can access excite home page on both IE and Chrome.

    Thanks for the suggestion.Working my way through, but no success yet. excite.com comes up but as soon as I click on "sign in", I get the error screen even though I have enabled cookies and java script.
    '''''The browser you're using is not allowing you to sign in to Excite.
    Right now, your browser's settings are configured to disable cookies and/or javascript. In order to access your account, you must change your browser's settings to accept both cookies AND javascript. '''''

  • Reset af:inputText values and clear cache

    Greeting everyone!
    I use JDev Version 11.1.2.3.0
    I have three af:inputText components, all pointin to persistent attributes from one VO. One of these fields gets it's value calculated (in a managed bean) from the others two values. This is done on value change of these two fields. The problem is when i reset these other two fields (meaning, when i delete the content inside of them). The value on the third field does not to change at first. From the controls i've done, it seems that it keeps a value in a cache. So when i clear the first field, the value of the third field remains the same, and when i clear the value from the second field too, then the third field gets the value cleared from the second field.
    I know this might be a bit confusing so here is the basic code snippet i've tried:
        public void getTotalContractInfo(ValueChangeEvent valueChangeEvent) {
            System.out.println("A value is changing!");
            if (tvshContractInfo.getValue()!= null && it14.getValue()!= null) {
               BigDecimal x = new BigDecimal(tvshContractInfo.getValue().toString());
                BigDecimal y= new BigDecimal(it14.getValue().toString());
                BigDecimal i = new BigDecimal(100);
                BigDecimal m = (y.multiply(x)).divide(i);
                totalContractInfo.setValue(y.add(m));
            else if (tvshContractInfo.getValue()== null && it14.getValue()!= null){
            totalContractInfo.setValue(Integer.parseInt(it14.getValue().toString()));
            else if (it14.getValue()== null ){
            it14.resetValue();
                totalContractInfo.resetValue();
    Any ideas what is happening? I've tried several techniques to refresh the components or clear the binding cache, but none of them seems to work.
    Thank you in advance!

    After resetting value, try doing valueChangeEvent.getComponent().processUpdates(FacesContext.getCurrentInstance());
    or
    ((UIXEditableValue)valueChangeEvent.getComponent()).resetValue();
    Thanks

  • Applications disabled after clearing caches, etc.

    My computer had begun to run slowly, so I followed advice in these pages and installed and ran an application called Cocktail: I ran the daily, weekly and monthly service operations and cleared caches and logs. Now my computer runs much better, but two applications that I have had for some time no longer work. One is an RSS news reader called PluckyX, the other is CarbonErrors. In each case the application's icon has changed.
    In the case of PluckyX, it now tries to open using Script Editor, resulting in error messages, and I cannot find any other application to open it with. PluckyX is no longer made and its creator cannot be contacted, but I downloaded another copy from VersionTracker, with the same negative result. I have not yet tried to find a new copy of CarbonErrors.
    Can anyone please suggest a solution? It is PluckyX in particular that I should like to revive.

    If you are updating Safari (or just have):
    Input Managers and other plug-ins from third parties can do as much harm as good. They use a security loophole to reach right into your applications' code and change that code as the application starts up. If you have installed 10.4.11 and Safari is crashing, the very first thing to do is clear out your InputManagers folders (both in your own Library and in the top-level Library), log out and log back in, and try again.
    So, disable all third party add-ons before updating Safari, as they may not have been updated yet for the new version. Add them back one by one. If something goes awry, remove it again and check on the software manufacturer's website for news of an update to match your version of Safari. Remember: Tiger up to 10.4.10 used Safari 2.0.4 or, if you downloaded it, Safari 3.0.3 beta. Safari 10.4.11 uses Safari 3.0.4 which is not a beta. If Safari 3.0.4 on 10.4.11 is not the fastest browser you have ever used, then something is wrong!
    Moreover, trying to revert to Safari 2 when running 10.4.11 can have repercussions, as Safari 3.0.4 uses a completely different webkit on which other applications like iChat, Mail, Dashboard widgets etc also rely.
    Most errors reported here after an update are due to an unrepaired or undetected inherent fault in the system, and/or a third party ad-on. Two such add-on that have been frequently mentioned here, among others, for causing such problems are Piclens and Pithhelmet. If you have them, trash them and go the developer's sites to see if new versions are available for Safari 3.0.4.
    In your case PluckyX and Finale are the suspects.
    You should also ensure, if you are running Tiger 10.4.11 or Leopard, that you have downloaded and installed the correct version for your Mac of Security Update 2007-009.1.1, which also deals with the Quicktime/Flash issues you may have experienced, as well as the latest Java update.

  • Item Clear Cache After Submit Press

    hi,
    i have 5 item on a page Like
    P1_A,
    P1_B,
    P1_C,
    P1_D,
    P1_E .
    I want here when i press submit button then value of P1_A, P1_B, P1_C, P1_D, P1_E should be in insert into table and clear Cache last item P1_C, P1_D, P1_E
    and value of item P1_A,P1_B should not be clear Cache.
    How can i Clear Cache the selected item .
    Thanks
    Manoj Kaushik
    Clear Cashe Selected Item On Press Submit Button

    hi ,
    I have one more proble,
    I have implement e-mail option in my application,i have two report first one contain List of all document and a Link In last Column in that report when i click at that link then respective Document are Add in Second Report .
    But problem is when i click Attach LinkThen page is Refresh and All Fill Value In ITEMS are clear which are on page 4.
    How can i stop to clear these item value if i attch document.
    Workspace: SKILLS IMPROVE
    User: [email protected]
    Password : desomu
    Application -42370
    Page No 4
    Thanks

  • Using populateAttribute to override transient VO attribute

    Hi,
    I want to use the 'populateAttribute' method to override a transient VO attribute but not having much luck.
    Error(61,7): method populateAttribute(<any>, java.lang.String) not found in class cas.oracle.apps.csi.installbase.webui.ChangeItemsCO
    I thought I could just put it in the controller with the following line:
    populateAttribute(Client, NewClient); --where Client is the transient attribute and NewClient is a text input value from the screen
    because I want to override only if the user presses the 'Change' button.
    Should I be putting it somewhere else? What am I missing?
    Thanks very much.

    Resolved.
    Didn't have to use populateAttribute at all. I just passed the text input fields using parameters from the controller to the AM where I was displaying the transient VO attributes and overrode the attribute there.
    Thanks.

  • Entity Attribute Validation

    I have an entity with many attributes but one of them is with name "CODE". Now i want to validate it that it should not be duplicated. What i did is created new Business Rule of List type For Entity Attribute and with operator "Not In" and selected "Query Result" and gave query for that. it works fine for all those which have been committed to database but if i have created multiple records and yet not committed, it does not work for that. I also tried option of ViewAccessor but that was not working too.
    Please help me

    If you use a DB the natural thing to do is to define a DB constraint (in your case a unique index). This will be recognized by the framework and the constraint should be seen in the EO.
    The other part is that you can't be sure if an attribute is unique as long as you do not commit (or at least post) it. only then the validation can check. I don't know if you can check not commited data from other users.
    Timo

  • Some music files do not show up in google play music app library.  I did clear cache/data and restarted phone.  The music is stored on the SD card.  Most of the music in the library is in the same folder on the sd card.  I can play the song from file mana

    some music files do not show up in google play music app library.  I did clear cache/data and restarted phone.  The music is stored on the SD card.  Most of the music in the library is in the same folder on the sd card.  I can play the song from file manager, but it still is not in the music library in play music.

    Cyndi6858, help is here! We'd be happy to help figure this out. Just to be sure though, the Droid Maxx should not have an SD card. Is this the Droid Razr Maxx? How did you add the music to the device? Are you able to see the files and folders located on the SD card or device when plugged in?
    Thanks,
    MichelleH_VZW
    Follow us on Twitter @VZWSupport

  • Using Firefox 7.0.1 & am trying to clear cache, because Firefox crashes during online college courses (Firefox 3.0 or higher is a supported school browser), and I keep getting an error message about 'Quick Time.' Using pc - Windows 7 Home 64 bit.

    As soon as I open up Firefox - it crashes on me. It takes me at least two or three attempts. I downloaded Firefox from the Firefox website and also use it for Facebook. I am wondering if it is because I also alternate between using IE as well? While attempting to open my school e-text, a message popped up that if experiencing problems opening my e-text - then I should clear cache and cookies which I cannot do - because of the "Quick Time error message."

    As you can see below, when I right click, I have no such option.  In the User Account Settings, I'm operating as the "System Administrator".
    Any other suggestions?

  • New I pad won't load certain web pages unless I clear cache and history every time

    New I pad 64gb with Telstra pre paid.
    Full signal 3G
    Everything up to date.
    This is the scinario I am getting, and it's getting worse. I am actually writing this on my other I pad as the new one won't load this page!!!! Not happy!
    Lets say I'm on e bay searching stuff and suddenly it won't load any more pages from the search results. I can open a new tab and load other sites so the internet is working, but at this instant i cannot look at any eBay pages on the new I pad.
    I go into settings and clear browsing history and the cookies, go back into safari and I can now load eBay and view the page that wouldnt load before. Sometimes this method will work for an hour, sometimes only 2-3 mins.
    This fault is happening more and more frequently, I was on yahoo earlier reading news. Then the page wouldn't load. Couldn't load previous page either exactly the same as with eBay.
    So I go on apple.com.au and sign in to support to ask them. Page won't load . GRRRR!
    Clear the cache etc and it's fine for a few mins then the same so I am writing this off our old I pad 1, using the Internet tethered from the new iPad that wouldn't load this page
    It's happening more and more I don't know if it's a problem with Telstra or with the I pad? Is this a common problem?
    I have tried Mercury browser and Terra browser and the fault remains.
    Seems to be on any website it can happen now.
    And now when it does, I can't check e mail, load maps, carry out speed tests anything Internet related.
    I can tether the I pad and it works fine on my old one.
    Maybe faulty I pad?

    I'm thinking it may be a DNS issue. I cleared my DNS cache using OnyX and my problem went away. OnyX is a free utility and is very useful. You can get it here:
    http://www.titanium.free.fr/download.php?sid=b94ceb83c26f4f935b661c52a5f8bff1
    Ever since I did that, I haven't had any other issues. Good luck!

  • How do I clear cache and cookies on my ipad

    How do I clear cache and cookies on my ipad?  I was told to do this when I was trying to download ebooks to ibooks and kindle

    Settings/safari/clear history;clear cookies and data

  • Same thing is happening to me. Adobe has not responded to anyone about this error. It appears that Abobe XI is not compatible with IE 11.  I do not get this error when I use Chrome or Firefox. Only IE 11 does this. I have tried clearing cache and cookies.

    Same thing is happening to me. Adobe has not responded to anyone about this error. It appears that Abobe XI is not compatible with IE 11.  I do not get this error when I use Chrome or Firefox. Only IE 11 does this. I have tried clearing cache and cookies. I even uninstalled and re-installed IE 11. It is still doing it.  I am surprized that a company like Adobe would just ignore our posts and leave us hanging this this.
    Error message is FAILED TO GET DISPATCH FROM IBRWSR2.  Then when you click on it the next error message says:  PHTML IS NULL. You have to click this error message twice and then the PDF finally loads. Happened every time
    Does anyone have a solution since Adobe will not respond?
    As a last resort I will try uninstalling the Adobe Reader XI and install Adobe Reader 10 instead. It seems to work ok. But when I try to install version 10 the Adobe site tries to install XI.  Any ideas?
    JimP08758

    It worked just fine for me.
    Many site issues can be caused by corrupt cookies or cache.
    * Clear the Cache and
    * Remove Cookies '''''Warning ! ! '' This will log you out of sites you're logged in to.'''
    Type '''about:preferences'''<Enter> in the address bar.
    * '''Cookies;''' Select '''Privacy.''' Under '''History,''' select Firefox will '''Use Custom Settings.''' Press the button on the right side called '''Show Cookies.''' Use the search bar to look for the site. Note; There may be more than one entry. Remove '''All''' of them.
    * '''Cache;''' Select '''Advanced > Network.''' Across from '''Cached Web Content,''' Press '''Clear Now.'''
    If there is still a problem,
    '''[https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode Start Firefox in Safe Mode]''' {web link}
    While you are in safe mode;
    Type '''about:preferences#advanced'''<Enter> in the address bar.
    Under '''Advanced,''' Select '''General.'''
    Look for and turn off '''Use Hardware Acceleration'''.
    Poke around safe web sites. Are there any problems?
    Then restart.

Maybe you are looking for

  • Removing conditional text tags in a batch

    Hi everyone, using TCS2 on Win-7 64-bit. We have been using some conditional text tags in our writing, and now we are looking at adding a few new ones and taking a few away. Is there a way to remove a batch of conditional text tags from a whole bunch

  • Report Table  Change in Template based on Prompt

    Hello All, I am working on a BI Publisher Report. We have a prompt : Product which has values A, B and C. If a user selects Product A, then we show in the template 4 columns. If a user selects Product B, then we show in the template the columns which

  • HCM Forms and Process

    Hi all,    Is it even possible to change the Effective date of SAP_PA action? I have 4 backend service, SAP_PA Serv_1 Serv_2 SAP_PA I changed EFFECTIVE_DATE ( Field is available as input field in the form) in my Serv_1 also to ensure I changed it in

  • EditLocally giving Operation failed Exception

    Hi All, When i am using edit locally in the context to edit any Microsoft doucments, excel,ppt locally. I am getting the Operation failed exception. What could be the reason? Anyone have idea on the above problem. Thanks Prasad

  • PAragraph Direction Selection Option is missing in CS6

    Hello, I just downloaded CS6 specifically to do some testing on our Arabic fonts. Even thought I have selected the Adobe World Composer option, I do not have the option that lets me choose the paragraph direction like Adobe's website document shows: