Examples of PageKey


Examples of org.apache.derby.iapi.store.raw.PageKey

    synchronized(allocCache)
    {
      allocCache.invalidate();
    }
   
    PageKey pageSearch = new PageKey(identity, pageNumber);
    BasePage page = (BasePage) pageCache.find(pageSearch);

    return page;
  }
View Full Code Here

Examples of org.apache.derby.iapi.store.raw.PageKey

    // RESOLVE: first need to verify that the page is really NOT in the
    // container!

    // no address translation necessary
    PageKey pkey = new PageKey(identity, pageNumber);

    int[] reCreatePageArgs = null;

    if (pageFormat == StoredPage.FORMAT_NUMBER)
    {
View Full Code Here

Examples of org.apache.derby.iapi.store.raw.PageKey

  protected BasePage getAllocPage(long pageNumber) throws StandardException
  {
    if (getCommittedDropState()) // committed and dropped, cannot get a page
      return null;

    PageKey pageSearch = new PageKey(identity, pageNumber);
    BasePage page = (BasePage) pageCache.find(pageSearch);

    if (SanityManager.DEBUG)
    {
      if (page == null)
View Full Code Here

Examples of org.apache.derby.iapi.store.raw.PageKey

   */
  protected BasePage getLatchedPage(BaseContainerHandle handle,
                                        long pageNumber)
    throws StandardException
  {
    PageKey pageKey = new PageKey(identity, pageNumber);
    BasePage page = (BasePage) pageCache.find(pageKey);
       
    if (SanityManager.DEBUG){
      SanityManager.ASSERT(page != null, "page is not found :" + pageKey);
    }
View Full Code Here

Examples of org.apache.derby.iapi.store.raw.PageKey

    boolean error = false;
    int count = 0;

    while(count < preAllocSize)
    {
      PageKey pkey = new PageKey(identity,
                     lastPreallocPagenum+count+1);
      try
      {
        // create Identity will do a writePage
        page.createIdentity(pkey, createArgs);
View Full Code Here

Examples of org.apache.derby.iapi.store.raw.PageKey

        {
      throw StandardException.newException(
                    SQLState.DATA_CONTAINER_READ_ONLY);
        }

    PageKey pkey = (PageKey)record.getPageId();
    BasePage headPage = (BasePage)getPage(pkey.getPageNumber());

    if (headPage != null)
    {
      // The page could have been null if it was deallocated after the
      // row lock is gotten.  We are doing all of these post commit so
View Full Code Here

Examples of org.apache.tapestry.internal.pageload.PageKey

     * @return The unique key for ths specified page and current {@link java.util.Locale}.
     */

    protected PageKey buildKey(IEngine engine, String pageName)
    {
        return new PageKey(pageName, engine.getLocale());
    }
View Full Code Here

Examples of org.exoplatform.portal.mop.page.PageKey

            if (node != null) {
                ExoContainer container = getApplication().getApplicationServiceContainer();
                container.getComponentInstanceOfType(UserPortalConfigService.class);
                UserPortalConfigService configService = (UserPortalConfigService) container
                        .getComponentInstanceOfType(UserPortalConfigService.class);
                PageKey pageRef = node.getPageRef();
                PageContext page = configService.getPage(pageRef);

                //
                if (page != null) {
                    title = page.getState().getDisplayName();
View Full Code Here

Examples of org.exoplatform.portal.pom.data.PageKey

        // Invalidation bridge : listen for PageService events and invalidate the DataStorage cache
        Listener<?, org.exoplatform.portal.mop.page.PageKey> invalidator = new Listener<Object, org.exoplatform.portal.mop.page.PageKey>() {
            @Override
            public void onEvent(Event<Object, org.exoplatform.portal.mop.page.PageKey> event) throws Exception {
                org.exoplatform.portal.mop.page.PageKey key = event.getData();
                PageKey adaptedKey = new PageKey(key.getSite().getTypeName(), key.getSite().getName(), key.getName());
                pomMgr.getSession().scheduleForEviction(adaptedKey);
            }
        };
        listenerService.addListener(EventType.PAGE_UPDATED, invalidator);
        listenerService.addListener(EventType.PAGE_DESTROYED, invalidator);
View Full Code Here

Examples of org.exoplatform.portal.pom.data.PageKey

      this.listenerServ_ = listenerServ;
   }

   public Page clonePage(String pageId, String clonedOwnerType, String clonedOwnerId, String clonedName) throws Exception
   {
      PageKey key = PageKey.create(pageId);
      PageKey cloneKey = new PageKey(clonedOwnerType, clonedOwnerId, clonedName);
      return new Page(delegate.clonePage(key, cloneKey));
   }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.