Re: DataContext.createDataContext(boolean useSharedCache)

From: Eric Schneider (eri..entralparksoftware.com)
Date: Fri Oct 15 2004 - 20:34:10 EDT

  • Next message: Mikaël Cluseau: "(minor) Bug in class generation"

    Excellent. Thanks.

    Hey, is there any docs on how to use child DataContexts for validation?
      Special ways to instantiate them, etc.? That kinda thing.

    Thanks,
    Eric.

    On Oct 15, 2004, at 8:04 PM, Andrus Adamchik wrote:

    > Eric,
    >
    > - DataContext.createDataContext() uses the default value for the
    > shared cache configured in the modeler.
    >
    > - DataContext.createDataContext(boolean) ignores any such
    > preconfigured default and allows to build a DataContext explicitly
    > configured with desired cache policy.
    >
    > So, looks like you don't need to change anything in your code.
    >
    > Andrus
    >
    > On Oct 15, 2004, at 7:12 PM, Eric Schneider wrote:
    >
    >> Hi,
    >>
    >> Is calling the DataContext.createDataContext(boolean useSharedCache)
    >> API necessary if you've specified in the model to "Use Shared Cache"?
    >>
    >> Currently I'm using DataContext.createDataContext(). Just wondering
    >> if I need to change this.
    >>
    >> Cheers,
    >> e.
    >



    This archive was generated by hypermail 2.0.0 : Fri Oct 15 2004 - 20:34:18 EDT