Examples of store()


Examples of org.jboss.as.ejb3.component.entity.EntityBeanComponentInstance.store()

                    // entity instance as "no longer in use". If it registered a tx EntityBeanSynchronization, then releasing the lock is
                    // taken care off by a tx synchronization callbacks.
                    //if is important to note that we increase the lock count on every invocation
                    //which means we need to release it on every invocation except for the one where we actually registered the TX synchronization
                    if (currentTransactionKey == null) {
                        instance.store();
                        releaseInstance(instance, true);
                    } else if (!syncRegistered) {
                        component.getCache().release(instance, true);
                        lock.unlock();
                    }
View Full Code Here

Examples of org.jboss.as.model.test.StringConfigurationPersister.store()

        outputExtensionRegistry.setWriterRegistry(persister);

        Extension extension = mainExtension.getClass().newInstance();
        extension.initialize(outputExtensionRegistry.getExtensionContext("Test", false));

        ConfigurationPersister.PersistenceResource resource = persister.store(model, Collections.<PathAddress>emptySet());
        resource.commit();
        return persister.getMarshalled();
    }

    /**
 
View Full Code Here

Examples of org.jboss.system.server.profileservice.repository.clustered.local.JAXBRepositoryContentMetadataPersister.store()

      emptyRRM.getContent().add(rim);
     
      File temp = new File(System.getProperty("java.io.tmpdir"));
     
      JAXBRepositoryContentMetadataPersister testee = new JAXBRepositoryContentMetadataPersister(temp.toURI());
      testee.store("test", rcm);
     
      // Ensure we clean up
      File stored = testee.getMetadataPath("test");
      stored.deleteOnExit();
      toDelete.add(stored);
View Full Code Here

Examples of org.jconfig.handler.XMLFileHandler.store()

    public void _testSaveConfig() {
        Configuration cfg = ConfigurationManager.getConfiguration("inheritance");
        try {
            String fileName = System.getProperty("java.io.tmpdir")+File.separator+"test_config.xml";                       
            XMLFileHandler handler = new XMLFileHandler(fileName);
            handler.store(cfg);
        }
        catch (Exception e) {
            e.printStackTrace();
            fail("unexpected exception");
        }
View Full Code Here

Examples of org.jfree.report.modules.preferences.base.ConfigStorage.store()

    try
    {
      final boolean fullStorageEnabled = isFullInputStorageEnabled(reportConfiguration);
      final Configuration dialogContents = grabDialogContents(fullStorageEnabled);
      final ConfigStorage storage = ConfigFactory.getInstance().getUserStorage();
      storage.store(configPath, dialogContents);
    }
    catch (ConfigStoreException cse)
    {
      DebugLog.log("Unable to store the defaults in Export export dialog. [" + getClass() + "]");
    }
View Full Code Here

Examples of org.jitterbit.integration.ldap.structure.ClassStructureFilePersistor.store()

    }
   
    private void storeClassStructure(ObjectClassStructure struct) {
        File file = getEntryFile(struct);
        ClassStructureFilePersistor p = new ClassStructureXmlPersistor();
        p.store(struct, file);
    }

    @Override
    public String getID() {
        return ID;
View Full Code Here

Examples of org.jitterbit.integration.ldap.structure.ClassStructureXmlPersistor.store()

    }
   
    private void storeClassStructure(ObjectClassStructure struct) {
        File file = getEntryFile(struct);
        ClassStructureFilePersistor p = new ClassStructureXmlPersistor();
        p.store(struct, file);
    }

    @Override
    public String getID() {
        return ID;
View Full Code Here

Examples of org.jitterbit.util.persist.XmlPersistor.store()

    }

    private void persist(DriverDescriptor driver, File file) throws Exception {
        XmlPersistor p = XmlPersistor.newRoot("Driver");
        DriverDescriptorPersistor.persist(driver, p);
        p.store(file);
    }

    private void testPersistOdbc() throws Exception {
        BeginEndQuote quotes = new BeginEndQuote("\"");
        DriverDescriptor driver = OdbcDriverDescriptorFactory.createDescriptor("Postgresql", quotes);
View Full Code Here

Examples of org.joget.apps.form.model.FormStoreBinder.store()

            if (!(element instanceof AbstractSubForm) && binder != null) {
                FormRowSet rowSet = formData.getStoreBinderData(element.getStoreBinder());

                // execute binder
                try {
                    FormRowSet binderResult = binder.store(element, rowSet, formData);
                    formData.setStoreBinderData(binder, binderResult);
                } catch (Exception e) {
                    String formId = FormUtil.getElementParameterName(form);
                    formData.addFormError(formId, "Error storing data: " + e.getMessage());
                    LogUtil.error(FormService.class.getName(), e, "Error executing store binder");
View Full Code Here

Examples of org.jooq.example.db.h2.tables.records.AuthorRecord.store()

        try {
            Tools.title("Loading and changing active records");
            author = dsl.selectFrom(AUTHOR).where(AUTHOR.ID.eq(1)).fetchOne();
            author.setDateOfBirth(Date.valueOf("2000-01-01"));
            author.store();
            Tools.print(author);


            Tools.title("Creating a new active record");
            author = dsl.newRecord(AUTHOR);
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.