Examples of TransactionType


Examples of net.opengis.wfs.TransactionType

        }

        Encoder encoder = new Encoder(configuration, configuration.schema());
        encoder.setEncoding(Charset.forName( wfs.getGeoServer().getGlobal().getCharset()) );

        TransactionType req = (TransactionType)operation.getParameters()[0];
       
        encoder.setSchemaLocation(org.geoserver.wfs.xml.v1_1_0.WFS.NAMESPACE,
                buildSchemaURL(req.getBaseUrl(), "wfs/1.1.0/wfs.xsd"));
        encoder.encode(response, org.geoserver.wfs.xml.v1_1_0.WFS.TRANSACTIONRESPONSE, output);
      
    }
View Full Code Here

Examples of net.opengis.wfs.TransactionType

    public <T> T convert(Object source, Class<T> target) throws IOException {
        if (!TransactionType.class.isAssignableFrom(target)) {
            throw new IllegalArgumentException("Target can only be " + TransactionType.class);
        }

        final TransactionType transaction = WfsFactory.eINSTANCE.createTransactionType();
        if (source instanceof FeatureDiffReader) {
            convertReader((FeatureDiffReader) source, transaction);
        } else if (source instanceof FeatureDiffReader[]) {
            for (FeatureDiffReader reader : (FeatureDiffReader[]) source) {
                convertReader(reader, transaction);
View Full Code Here

Examples of net.opengis.wfs20.TransactionType

        "    </InWaterA_1M> " +
        "   </wfs:Insert> " +
        "</wfs:Transaction> ";
        buildDocument(xml);
       
        TransactionType t = (TransactionType) parse();
        assertNotNull(t);
       
        assertEquals(1, t.getAbstractTransactionAction().size());
        assertEquals(1, t.getGroup().size());
       
        InsertType i = (InsertType) t.getAbstractTransactionAction().get(0);
        assertEquals(2, i.getAny().size());
    }
View Full Code Here

Examples of org.apache.openejb.core.transaction.TransactionType

            callContext.setCurrentOperation(Operation.POST_CONSTRUCT);
            final List<InterceptorData> callbackInterceptors = this.getCallbackInterceptors();
            final InterceptorStack postConstruct = new InterceptorStack(beanInstance, null, Operation.POST_CONSTRUCT, callbackInterceptors, interceptorInstances);
           
            //Transaction Demarcation for Singleton PostConstruct method
            TransactionType transactionType;

            if (getComponentType() == BeanType.SINGLETON) {
                Set<Method> callbacks = callbackInterceptors.get(callbackInterceptors.size() -1).getPostConstruct();
                if (callbacks.isEmpty()) {
                    transactionType = TransactionType.RequiresNew;
View Full Code Here

Examples of org.apache.openejb.core.transaction.TransactionType

    public EjbTimerServiceImpl(BeanContext deployment, TransactionManager transactionManager, Scheduler scheduler, TimerStore timerStore, int retryAttempts) {
        this.deployment = deployment;
        this.transactionManager = transactionManager;
        this.scheduler = scheduler;
        this.timerStore = timerStore;
        TransactionType transactionType = deployment.getTransactionType(deployment.getEjbTimeout());
        this.transacted = transactionType == TransactionType.Required || transactionType == TransactionType.RequiresNew;
        this.retryAttempts = retryAttempts;
    }
View Full Code Here

Examples of org.apache.openejb.core.transaction.TransactionType

            List<InterceptorData> callbackInterceptors = beanContext.getCallbackInterceptors();
            InterceptorStack interceptorStack = new InterceptorStack(instance.bean, remove, Operation.PRE_DESTROY, callbackInterceptors, instance.interceptors);

            //Transaction Demarcation for Singleton PostConstruct method
            TransactionType transactionType;

            if (beanContext.getComponentType() == BeanType.SINGLETON) {
                Set<Method> callbacks = callbackInterceptors.get(callbackInterceptors.size() -1).getPreDestroy();
                if (callbacks.isEmpty()) {
                    transactionType = TransactionType.RequiresNew;
View Full Code Here

Examples of org.apache.openejb.core.transaction.TransactionType

        this.deployment = deployment;
        this.transactionManager = transactionManager;
        this.threadPool = threadPool;
        this.timerStore = timerStore;
        TransactionType transactionType = deployment.getTransactionType(deployment.getEjbTimeout());
        this.transacted = transactionType == TransactionType.Required || transactionType == TransactionType.RequiresNew;
        this.retryAttempts = retryAttempts;

    }
View Full Code Here

Examples of org.apache.openejb.core.transaction.TransactionType

        }
    }

    public TransactionType getTransactionType(Method method) {
        // Check the cache
        TransactionType type = methodTransactionType.get(method);
        if (type != null) {
            return type;
        }

        // Bean managed EJBs always get the BeanManaged policy
View Full Code Here

Examples of org.apache.openejb.core.transaction.TransactionType

        }
    }


    public void setMethodTransactionAttribute(Method method, String transAttribute) throws OpenEJBException {
        TransactionType transactionType;
        if (transAttribute.equalsIgnoreCase("Supports")) {
            transactionType = TransactionType.Supports;

        } else if (transAttribute.equalsIgnoreCase("RequiresNew")) {
            transactionType = TransactionType.RequiresNew;
View Full Code Here

Examples of org.apache.openejb.core.transaction.TransactionType

            Map.Entry entry = (Map.Entry) iterator.next();
            Method method = (Method) entry.getKey();
            String operation = (String) entry.getValue();

            if (!ejb.isBeanManagedTransaction()) {
              TransactionType transactionType = ejb.getTransactionType(method, interfaceType);
                OperationTxPolicy operationTxPolicy = NoDTxServerTransactionPolicies.getContainerTransactionPolicy(transactionType);
                policies.put(operation, operationTxPolicy);
            } else {
                OperationTxPolicy operationTxPolicy = NoDTxServerTransactionPolicies.getBeanTransactionPolicy();
                policies.put(operation, operationTxPolicy);
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.