Examples of findObject()

  • com.volantis.xml.pipeline.sax.XMLPipelineContext.findObject()
    Find the object on the stack that is of the specified class.

    This method checks each object in the stack starting with the last one pushed to see whether it is of the specified class. An object is of the specified class if it is an instance of that class as defined by {@link Class#isInstance}.

    @param clazz The class of the object to find. @return The first object of the specified class, or null if none could befound.
  • net.sf.l2j.gameserver.model.L2World.findObject()
    Return the L2Object object that belongs to an ID or null if no object found.

    Example of use :

  • Client packets : Action, AttackRequest, RequestJoinParty, RequestJoinPledge...

  • @param oID Identifier of the L2Object @return
  • org.datanucleus.ExecutionContext.findObject()
  • org.datanucleus.ObjectManager.findObject()
    Accessor for an object given the object id. @param id Id of the object. @param validate Whether to validate the object state @param checkInheritance Whether look to the database to determine whichclass this object is. This parameter is a hint. Set false, if it's already determined the correct pcClass for this pc "object" in a certain level in the hierarchy. Set to true and it will look to the database. @param objectClassName Class name for the object with this id (if known, optional) @return The Object
  • org.datanucleus.store.ExecutionContext.findObject()
    Accessor for an object given the object id. @param id Id of the object. @param validate Whether to validate the object state @param checkInheritance Whether look to the database to determine whichclass this object is. This parameter is a hint. Set false, if it's already determined the correct pcClass for this pc "object" in a certain level in the hierarchy. Set to true and it will look to the database. @param objectClassName Class name for the object with this id (if known, optional) @return The Object
  • org.teiid.query.unittest.FakeMetadataStore.findObject()

  • Examples of net.sf.l2j.gameserver.model.L2World.findObject()

      @Override
      protected void runImpl()
      {
        L2World world = L2World.getInstance();
        L2ItemInstance item = (L2ItemInstance)world.findObject(_objectId);
        if (item == null || getClient().getActiveChar() == null)
            return;
        if(getClient().getActiveChar().getPet() instanceof L2SummonInstance)
        {
          sendPacket(new ActionFailed());
    View Full Code Here

    Examples of org.datanucleus.ExecutionContext.findObject()

        // Find the ObjectProvider for the element
        Object elementToRemove = element;
        ExecutionContext ec = op.getExecutionContext();
        if (ec.getApiAdapter().isDetached(element)) {// User passed in detached object to collection.remove()! {
          // Find an attached equivalent of this detached object (DON'T attach the object itself)
          elementToRemove = ec.findObject(ec.getApiAdapter().getIdForObject(element), true, false, element.getClass().getName());
        }
        ObjectProvider elementOP = ec.findObjectProvider(elementToRemove);

        // Check for change of owner of the element (removed from this but added to another one maybe?)
        if (MetaDataUtils.isOwnedRelation(ownerMemberMetaData, storeMgr)) {
    View Full Code Here

    Examples of org.datanucleus.ExecutionContext.findObject()

        }

        Object elementToRemove = element;
        if (ec.getApiAdapter().isDetached(element)) {
          // Element passed in is detached so find attached version (DON'T attach this object)
          elementToRemove = ec.findObject(ec.getApiAdapter().getIdForObject(element), true, false,
              element.getClass().getName());
        }

        return internalRemove(op, elementToRemove, currentSize);
      }
    View Full Code Here

    Examples of org.datanucleus.ObjectManager.findObject()

            Object elementToRemove = element;
            ObjectManager om = sm.getObjectManager();
            if (om.getApiAdapter().isDetached(element))
            {
                // Element passed in is detached so find attached version (DON'T attach this object)
                elementToRemove = om.findObject(om.getApiAdapter().getIdForObject(element), true, false,
                    element.getClass().getName());
            }

            boolean modified = internalRemove(sm, elementToRemove, size);
    View Full Code Here

    Examples of org.datanucleus.ObjectManager.findObject()

            Object elementToRemove = element;
            ObjectManager om = ownerSM.getObjectManager();
            if (om.getApiAdapter().isDetached(element)) // User passed in detached object to collection.remove()!
            {
                // Find an attached equivalent of this detached object (DON'T attach the object itself)
                elementToRemove = om.findObject(om.getApiAdapter().getIdForObject(element), true, false, element.getClass().getName());
            }
            StateManager elementSM = om.findStateManager(elementToRemove);

            Object oldOwner = null;
            if (ownerFieldNumber >= 0)
    View Full Code Here

    Examples of org.datanucleus.ObjectManager.findObject()

            Object elementToRemove = element;
            ObjectManager om = sm.getObjectManager();
            if (om.getApiAdapter().isDetached(element))
            {
                // Element passed in is detached so find attached version (DON'T attach this object)
                elementToRemove = om.findObject(om.getApiAdapter().getIdForObject(element), true, false,
                    element.getClass().getName());
            }

            boolean modified = getSpecialization().remove(sm, elementToRemove, size, this);
            CollectionMetaData collmd = ownerMemberMetaData.getCollection();
    View Full Code Here

    Examples of org.datanucleus.ObjectManager.findObject()

        ObjectManager om = ownerSM.getObjectManager();
        StateManager elementSM = om.findStateManager(element);
        if (om.getApiAdapter().isDetached(element)) // User passed in detached object to collection.remove()!
        {
          // Find an attached equivalent of this detached object (DON'T attach the object itself)
          element = om.findObject(om.getApiAdapter().getIdForObject(element), true, false,
                            element.getClass().getName());
        }
        if (om.getApiAdapter().isPersistable(element) && om.getApiAdapter().isDeleted(element)) {
          // Element is waiting to be deleted so flush it (it has the FK)
          elementSM.flush();
    View Full Code Here

    Examples of org.datanucleus.store.ExecutionContext.findObject()

                        final AbstractClassMetaData cmd = sm.getExecutionContext().getMetaDataManager().getMetaDataForClass(mmd.getType(), clr);
                        final NodeList nList = ((Element) node).getElementsByTagName(mmd.getName());
                        if (nList.getLength() == 1)
                        {
                            Object id = ec.getApiAdapter().getNewApplicationIdentityObjectId(clr.classForName(cmd.getFullClassName()), nList.item(0).getFirstChild().getNodeValue());
                            Object related = ec.findObject(id, true, true, null);
                            if (relationType == Relation.ONE_TO_ONE_BI)
                            {
                                // Set other side of relation to avoid reloading
                                ObjectProvider relatedSM = ec.findObjectProvider(related);
                                AbstractMemberMetaData relatedMmd = mmd.getRelatedMemberMetaDataForObject(clr, sm.getObject(), related);
    View Full Code Here

    Examples of org.datanucleus.store.ExecutionContext.findObject()

                                        throw new NucleusException("Unable to find object of type " + cmd2.getFullClassName() + " with id=" + nodeValue);
                                    }

                                    Object id = ec.getApiAdapter().getNewApplicationIdentityObjectId(
                                        clr.classForName(elementCmd.getFullClassName()), nodeValue);
                                    Object related = ec.findObject(id, true, true, null);
                                    if (relationType == Relation.ONE_TO_MANY_BI)
                                    {
                                        // Set other side of relation to avoid reloading
                                        ObjectProvider relatedSM = ec.findObjectProvider(related);
                                        AbstractMemberMetaData relatedMmd = relatedSM.getClassMetaData().getMetaDataForMember(mmd.getMappedBy());
    View Full Code Here

    Examples of org.datanucleus.store.ExecutionContext.findObject()

            Object elementToRemove = element;
            ExecutionContext ec = sm.getExecutionContext();
            if (ec.getApiAdapter().isDetached(element))
            {
                // Element passed in is detached so find attached version (DON'T attach this object)
                elementToRemove = ec.findObject(ec.getApiAdapter().getIdForObject(element), true, false,
                    element.getClass().getName());
            }

            boolean modified = getSpecialization().remove(sm, elementToRemove, size, this);
            CollectionMetaData collmd = ownerMemberMetaData.getCollection();
    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.