Examples of createEntity()


Examples of org.apache.cayenne.modeler.action.CreateDbEntityAction.createEntity()

    @Override
    public void redo() throws CannotRedoException {
        CreateDbEntityAction action = (CreateDbEntityAction) actionManager
                .getAction(CreateDbEntityAction.getActionName());
        action.createEntity(map, entity);
    }

    @Override
    public void undo() throws CannotUndoException {
        RemoveAction action = (RemoveAction) actionManager.getAction(RemoveAction
View Full Code Here

Examples of org.apache.cayenne.modeler.action.CreateObjEntityAction.createEntity()

                }

                CreateDbEntityAction action = (CreateDbEntityAction) actionManager
                        .getAction(CreateDbEntityAction.getActionName());

                action.createEntity(map, dbEntity);

                break;
            }
            case QUERY: {
                this.domain = Application
View Full Code Here

Examples of org.apache.jetspeed.security.mapping.EntityFactory.createEntity()

        if (!SynchronizationStateAccess.isSynchronizing())
        {
            EntityFactory entityFactory = ldapEntityManager.getEntityFactory(from.getType().getName());
            EntityFactory relatedFactory = ldapEntityManager.getEntityFactory(to.getType().getName());
            Entity fromEntity = entityFactory.createEntity(from);
            Entity toEntity = relatedFactory.createEntity(to);
            SecurityEntityRelationType relationType = new SecurityEntityRelationTypeImpl(associationName, fromEntity.getType(), toEntity.getType());
            ldapEntityManager.addRelation(fromEntity, toEntity, relationType);
        }
        databaseStorageManager.addAssociation(from, to, associationName);
    }
View Full Code Here

Examples of org.apache.jetspeed.security.mapping.stubs.StubEntityFactory.createEntity()

        userDao.addEntity(user_jsmith);
        userDao.addEntity(user_jdoe);
       
        Entity role_manager=stubFactory.createEntity("manager", "role", new String[]{"Manager Role",""});
        Entity role_admin=stubFactory.createEntity("admin", "role", new String[]{"Admin Role",""});
        Entity role_random=stubFactory.createEntity("random", "role", new String[]{"Random Role",""});
        Entity role_yetAnother=stubFactory.createEntity("yetAnotherRole", "role", new String[]{"Yet Another Role",""});
       
        StubEntityDAO roleDao = new StubEntityDAO();
        userDao.addEntity(role_manager);
        userDao.addEntity(role_admin);
View Full Code Here

Examples of org.apache.olingo.odata2.api.processor.part.EntitySetProcessor.createEntity()

    when(serviceDocument.readServiceDocument(any(UriInfoImpl.class), anyString())).thenAnswer(getAnswer());

    EntitySetProcessor entitySet = mock(EntitySetProcessor.class);
    when(entitySet.readEntitySet(any(UriInfoImpl.class), anyString())).thenAnswer(getAnswer());
    when(entitySet.countEntitySet(any(UriInfoImpl.class), anyString())).thenAnswer(getAnswer());
    when(entitySet.createEntity(any(UriInfoImpl.class), any(InputStream.class), anyString(), anyString())).thenAnswer(
        getAnswer());

    EntityProcessor entity = mock(EntityProcessor.class);
    when(entity.readEntity(any(UriInfoImpl.class), anyString())).thenAnswer(getAnswer());
    when(entity.existsEntity(any(UriInfoImpl.class), anyString())).thenAnswer(getAnswer());
View Full Code Here

Examples of org.dmlite.model.meta.ModelMeta.createEntity()

      if (getConceptConfig() != null) {
        String conceptClassName = getConceptConfig().getEntityClass();
        IDomainModel domainModel = getDomainModel();
        if (domainModel != null) {
          ModelMeta modelMeta = domainModel.getModelMeta();
          copiedEntity = (T) modelMeta.createEntity(conceptClassName);
          if (copiedEntity != null) {
            copiedEntity.setOid(getOid());
            copiedEntity.update(this);
          }
        }
View Full Code Here

Examples of org.jamesii.perfdb.hibernate.TestFeatureValue.createEntity()

    Set<IFeature> features = new HashSet<>();
    TestFeatureValue tfv = new TestFeatureValue(false);
    tfv.setUp();
    for (int i = 0; i < NUM_OF_FEATURES; i++) {
      features.add(tfv.createEntity("feature value for selection " + name));
    }
    tfv.tearDown();

    sel.setFeatures(features);
View Full Code Here

Examples of org.jamesii.perfdb.hibernate.TestRuntimeConfiguration.createEntity()

  @Override
  protected Selection getEntity(String name) throws Exception {

    Selection sel = new Selection();
    TestRuntimeConfiguration trc = new TestRuntimeConfiguration(session);
    sel.setRuntimeConfiguration(trc
        .createEntity("runtime config for selection " + name));

    TestSelector ts = new TestSelector(session);
    sel.setSelector(ts.createEntity("selectorfor selection " + name));
View Full Code Here

Examples of org.jboss.as.cmp.jdbc.JDBCEntityPersistenceStore.createEntity()

    protected Object invokeEjbCreate(final InterceptorContext context, final Method ejbCreate, final EntityBeanComponentInstance instance, final Object[] params) throws Exception {
        final CmpEntityBeanComponentInstance cmpInstance = CmpEntityBeanComponentInstance.class.cast(instance);
        final JDBCEntityPersistenceStore storeManager = cmpInstance.getComponent().getStoreManager();
        storeManager.initEntity(cmpInstance.getEjbContext());
        ejbCreate.invoke(instance.getInstance(), params);
        return storeManager.createEntity(context.getMethod(), context.getParameters(), cmpInstance.getEjbContext());
    }

    protected void invokeEjbPostCreate(final InterceptorContext context, final Method ejbPostCreate, final EntityBeanComponentInstance instance, final Object[] params) throws Exception {
        final CmpEntityBeanComponentInstance cmpInstance = CmpEntityBeanComponentInstance.class.cast(instance);
        final CmpEntityBeanComponent component = cmpInstance.getComponent();
View Full Code Here

Examples of org.jboss.test.cluster.ejb2.basic.interfaces.SessionToEntity.createEntity()

      SessionToEntityHome home1 =
         (SessionToEntityHome) ctx1.lookup("cif.StatefulSession");
      AComplexPK key = new AComplexPK(true, 0, 0, 0, "testCacheInvalidation");
      SessionToEntity bean1 = home1.create(key);
      String msg = bean1.createEntity();
      log.info("create#1, "+msg);
      // Call accessEntity twice to validate data is consistent on both nodes
      NodeAnswer answer1 = bean1.accessEntity();
      log.info("Answer1: "+answer1);
      NodeAnswer answer2 = bean1.accessEntity();
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.