Package javax.jdo

Examples of javax.jdo.PersistenceManager.newObjectIdInstance()


            Object objectId = null;

            if ( id instanceof CompoundKey )
            {
                objectId = pm.newObjectIdInstance( clazz, id.toString() );
            }
            else
            {
                objectId = pm.newObjectIdInstance( clazz, id );
            }
View Full Code Here


            {
                objectId = pm.newObjectIdInstance( clazz, id.toString() );
            }
            else
            {
                objectId = pm.newObjectIdInstance( clazz, id );
            }

            Object object = pm.getObjectById( objectId );

            object = pm.detachCopy( object );
View Full Code Here

        {
            tx.begin();

            pm.getFetchPlan().addGroup( PROJECT_WITH_BUILDS_FETCH_GROUP );

            Object objectId = pm.newObjectIdInstance( Project.class, project.getId() );

            project = (Project) pm.getObjectById( objectId );

            build = (BuildResult) makePersistent( pm, build, false );
View Full Code Here

            //            if ( fetchGroup != null )
            //            {
            //                pm.getFetchPlan().addGroup( fetchGroup );
            //            }

            Object objectId = pm.newObjectIdInstance( clazz, key.toString() );

            Object object = pm.getObjectById( objectId );

            object = pm.detachCopy( object );
View Full Code Here

            Object objectId = null;

            if ( id instanceof CompoundKey )
            {
                objectId = pm.newObjectIdInstance( clazz, id.toString() );
            }
            else
            {
                objectId = pm.newObjectIdInstance( clazz, id );
            }
View Full Code Here

            {
                objectId = pm.newObjectIdInstance( clazz, id.toString() );
            }
            else
            {
                objectId = pm.newObjectIdInstance( clazz, id );
            }

            Object object = pm.getObjectById( objectId );

            object = pm.detachCopy( object );
View Full Code Here

        {
            tx.begin();

            pm.getFetchPlan().addGroup( PROJECT_WITH_BUILDS_FETCH_GROUP );

            Object objectId = pm.newObjectIdInstance( Project.class, project.getId() );

            project = (Project) pm.getObjectById( objectId );

            build = (BuildResult) makePersistent( pm, build, false );
View Full Code Here

        {
            tx.begin();

            pm.getFetchPlan().addGroup( PROJECT_WITH_BUILDS_FETCH_GROUP );

            Object objectId = pm.newObjectIdInstance( Project.class, new Integer( project.getId() ) );

            project = (Project) pm.getObjectById( objectId );

            build = (BuildResult) makePersistent( pm, build, false );
View Full Code Here

    }
   
    PersistenceManager pm = PMF.get().getPersistenceManager();
    List<Object> oids = new ArrayList<Object>(ids.size());
    for (Long id : ids) {
      oids.add(pm.newObjectIdInstance(BaseContentEntity.class, id));
    }
   
    try {
      @SuppressWarnings("unchecked")
      Collection contentEntities = pm.getObjectsById(oids);
View Full Code Here

      ContentItemType contentItemType = contentEntity.getContentItemType();
      if ((contentItemType == ContentItemType.EVENT || contentItemType == ContentItemType.NARRATIVE)
          && !linkedContentEntityIds.isEmpty()) {
        List<Object> oids = new ArrayList<Object>(linkedContentEntityIds.size());
        for (Long id : linkedContentEntityIds) {
          oids.add(pm.newObjectIdInstance(BaseContentEntity.class, id));
        }

        @SuppressWarnings("unchecked")
        Collection<BaseContentEntity> linkedContentEntities = pm.getObjectsById(oids);
        for (BaseContentEntity linkedContentEntity : linkedContentEntities) {
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.