Examples of StateManagerImpl


Examples of org.apache.gora.persistency.impl.StateManagerImpl

  public T newPersistent() {
    if(cachedPersistent == null) {
      cachedPersistent = (T)super.newRecord(null, rootSchema);
      return cachedPersistent; //we can return the cached object
    }
    return (T)cachedPersistent.newInstance(new StateManagerImpl());
  }
View Full Code Here

Examples of org.apache.gora.persistency.impl.StateManagerImpl

      return old;
    } else return new ListGenericArray(size, schema);
  }
 
  public Persistent clone(Persistent persistent, Schema schema) {
    Persistent cloned = persistent.newInstance(new StateManagerImpl());
    List<Field> fields = schema.getFields();
    for(Field field: fields) {
      int pos = field.pos();
      switch(field.schema().getType()) {
        case MAP    :
View Full Code Here

Examples of org.apache.myfaces.application.StateManagerImpl

    @Override
    protected void setUpApplication() throws Exception
    {
        super.setUpApplication();
       
        application.setStateManager(new StateManagerImpl());
    }
View Full Code Here

Examples of org.apache.myfaces.application.StateManagerImpl

    @Override
    protected void setUpApplication() throws Exception
    {
        super.setUpApplication();
       
        application.setStateManager(new StateManagerImpl());
    }
View Full Code Here

Examples of org.apache.myfaces.application.StateManagerImpl

    @Override
    protected void setUpApplication() throws Exception
    {
        super.setUpApplication();
       
        application.setStateManager(new StateManagerImpl());
    }
View Full Code Here

Examples of org.apache.myfaces.application.StateManagerImpl

    @Override
    protected void setUpApplication() throws Exception
    {
        super.setUpApplication();
       
        application.setStateManager(new StateManagerImpl());
    }
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.application.StateManagerImpl

    // NOT work...
    StateManager sm = context.getApplication().getStateManager();

    if (sm instanceof StateManagerImpl)
    {
      StateManagerImpl smi = (StateManagerImpl) sm;

    // value is "client", "server" or "default"
      smi.setPerViewStateSaving(stateSaving);
    }
    else
    {
      //TODO: We may want this to be i18n...
      _LOG.warning("The 'stateSaving' attribute is only supported with the Trinidad internal StateManager");
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.application.StateManagerImpl

    // NOT work...
    StateManager sm = context.getApplication().getStateManager();

    if (sm instanceof StateManagerImpl)
    {
      StateManagerImpl smi = (StateManagerImpl) sm;

    // value is "client", "server" or "default"
      smi.setPerViewStateSaving(stateSaving);
    }
    else
    {
      //TODO: We may want this to be i18n...
      _LOG.warning("The 'stateSaving' attribute is only supported with the Trinidad internal StateManager");
View Full Code Here

Examples of org.apache.openjpa.kernel.StateManagerImpl

        em.getTransaction().commit();
        em.clear();

        // Find the entity and retrieve the objectId we use internally
        EmbeddedIdEntity persistedEntity = em.find(EmbeddedIdEntity.class, id);
        StateManagerImpl smi = ((StateManagerImpl) ((PersistenceCapable) persistedEntity).pcGetStateManager());
        Object oid = smi.getObjectId();

        assertEquals(oid, JPAFacadeHelper.toOpenJPAObjectId(cmd, id));
    }
View Full Code Here

Examples of org.apache.openjpa.kernel.StateManagerImpl

        em.persist(entity);
        em.getTransaction().commit();
        em.clear();

        EntityWithCompositeId persistedEntity = em.find(EntityWithCompositeId.class, id);
        StateManagerImpl smi = ((StateManagerImpl) ((PersistenceCapable) persistedEntity).pcGetStateManager());
        Object oid = smi.getObjectId();

        assertEquals(oid, JPAFacadeHelper.toOpenJPAObjectId(cmd, id));
    }
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.