Examples of newObject()


Examples of aleph.dir.DirectoryManager.newObject()

          continue;
        }
        Logger.debug("I'm new owner of " + key);
        key.setHome(PE.thisPE())// me is the new owner
        ObjectsRegistery.regsiterObject(key)// register key local
        locator.newObject(key, object)// register at the directory manager
        PE.thisPE().populate(new RegisterObject(key))// populate me as the new owner
        Logger.debug("Populate me owner of " + key);
        // FIXME: if more than one local transaction at this node then we should release the object now not before changing its location
      }
    }
View Full Code Here

Examples of com.facebook.swift.codec.internal.compiler.byteCode.MethodDefinition.newObject()

                arg("protocol", TProtocol.class)
        ).addException(Exception.class);

        // TProtocolReader reader = new TProtocolReader(protocol);
        read.addLocalVariable(type(TProtocolReader.class), "reader");
        read.newObject(TProtocolReader.class);
        read.dup();
        read.loadVariable("protocol");
        read.invokeConstructor(type(TProtocolReader.class), type(TProtocol.class));
        read.storeVariable("reader");
View Full Code Here

Examples of com.xpn.xwiki.doc.XWikiDocument.newObject()

     * Validate "simple" LDAP authentication when the user already exists but does not contains LDAP profile object.
     */
    public void testAuthenticateWhenNonLDAPUserAlreadyExists() throws XWikiException
    {
        XWikiDocument userDoc = getDocument("XWiki." + LDAPTestSetup.HORATIOHORNBLOWER_CN);
        userDoc.newObject(this.userClass.getName(), getContext());
        saveDocument(userDoc);

        assertAuthenticate(LDAPTestSetup.HORATIOHORNBLOWER_CN, LDAPTestSetup.HORATIOHORNBLOWER_PWD,
            LDAPTestSetup.HORATIOHORNBLOWER_DN);
    }
View Full Code Here

Examples of net.sourceforge.htmlunit.corejs.javascript.Context.newObject()

        applicationCache_.setParentScope(this);
        applicationCache_.setPrototype(getPrototype(OfflineResourceList.class));

        // like a JS new Object()
        final Context ctx = Context.getCurrentContext();
        controllers_ = ctx.newObject(this);

        if (webWindow_ instanceof TopLevelWindow) {
            final WebWindow opener = ((TopLevelWindow) webWindow_).getOpener();
            if (opener != null) {
                opener_ = opener.getScriptObject();
View Full Code Here

Examples of org.apache.cayenne.CayenneContext.newObject()

                .getClientEntityResolver();

        CayenneContext context = new CayenneContext();
        context.setEntityResolver(resolver);

        ClientMtTable1 t1 = context.newObject(ClientMtTable1.class);
        ClientMtTable2 t2 = context.newObject(ClientMtTable2.class);

        t1.addToTable2Array(t2);
        assertEquals(1, t1.getTable2Array().size());
        assertSame(t1, t2.getTable1());
View Full Code Here

Examples of org.apache.cayenne.ObjectContext.newObject()

   */
  public static Account create(String name, Rank access, Account recruiter) throws Exception {
    Date now = new Date(System.currentTimeMillis());

    ObjectContext context = DatabaseContext.getContext();
    Account account = context.newObject(Account.class);
    account.setCreated(now);
    account.setLastRankChange(now);
    account.setName(name);
    account.setRank(access);
    account.setRecruiter(recruiter);
View Full Code Here

Examples of org.apache.cayenne.ObjectContext.newObject()

public class PrimitiveAttributesTest extends CayenneCase {

    public void testCommit() {
        ObjectContext context = createDataContext();

        PrimitivesTestEntity e = context
                .newObject(PrimitivesTestEntity.class);
        e.setBooleanColumn(true);
        e.setIntColumn(88);
        context.commitChanges();
    }
View Full Code Here

Examples of org.apache.cayenne.ObjectContext.newObject()

    public void testInsert() throws Exception {
        deleteTestData();

        ObjectContext context = createDataContext();
        EmbedEntity1 o1 = context.newObject(EmbedEntity1.class);
        o1.setName("NAME");

        Embeddable1 e1 = new Embeddable1();

        // init before the embeddable was set on an owning object
View Full Code Here

Examples of org.apache.cayenne.ObjectContext.newObject()

    public void testPeerObjectUpdatedTempOID() {
        DataContext context = createDataContext();

        ObjectContext peer1 = context.createChildContext();
        Artist a1 = peer1.newObject(Artist.class);
        a1.setArtistName("Y");
        ObjectId a1TempId = a1.getObjectId();

        ObjectContext peer2 = context.createChildContext();
        Artist a2 = (Artist) peer2.localObject(a1TempId, a1);
View Full Code Here

Examples of org.apache.cayenne.ObjectContext.newObject()

    @Override
    protected void setUp() throws Exception {
        deleteTestData();

        ObjectContext context = createDataContext();
        Department d1 = context.newObject(Department.class);
        d1.setName("d1");

        Department d2 = context.newObject(Department.class);
        d2.setName("d2");
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.