Examples of JODBSession


Examples of com.mobixess.jodb.core.transaction.JODBSession

    JODBSessionContainer() {
    }
   
    /*package*/void init(File file) throws IOException {
        initIoBase(file);
        _session = new JODBSession(_base);
        _transactionContainer = new TransactionContainer(_session, null);
        if(_base.isNewDatabase()){
            JODBIndexingRootAgent agent = new JODBIndexingRootAgent();
            try {
                _transactionContainer.enableAgentMode();
View Full Code Here

Examples of com.mobixess.jodb.core.transaction.JODBSession

    static class SyntheticSubject{
        private Object _syntheticSubject;
        private NQueryDataObjectProxy _dataObjectProxy;
       
        public SyntheticSubject(JODBOperationContext context, INqLoader loader, Class syntheticPredicateSubjectClass) throws Exception {
            JODBSession session = context.getSession();
            Field proxyField = loader.getSyntheticProxySetMethod();
            ClassDescriptor syntheticPredicateSubjectClassDescriptor = session.getDescriptorForClass(syntheticPredicateSubjectClass, true, proxyField);
            _syntheticSubject = syntheticPredicateSubjectClassDescriptor.newInstance();
            _dataObjectProxy = new NQueryDataObjectProxy();
            proxyField.set(_syntheticSubject, _dataObjectProxy);
            //setProxyMethod.invoke(_syntheticSubject, _dataObjectProxy);
            _dataObjectProxy.setTargetClass(context, syntheticPredicateSubjectClassDescriptor);
View Full Code Here

Examples of com.mobixess.jodb.core.transaction.JODBSession

            RegistryManager.getInstance().shutdownRegistry();
        }
    }
   
    private void reloadIndexingRootAgent() throws IOException{
        JODBSession session = _sessionContainer.getSession();
        long offset = session.getIndexingRootAgentOffset();
        _indexingRootAgent = (JODBIndexingRootAgent) TransactionUtils.launchObject(session, offset, _indexingRootAgent, Integer.MAX_VALUE);
    }
View Full Code Here

Examples of com.mobixess.jodb.core.transaction.JODBSession

        }
       
        @SuppressWarnings("unchecked")
        public boolean isOptimizedQuery( String predicateClassName, String comparatorClassName)throws IOException
        {
            JODBSession session = _sessionContainer.getSession();
            Predicate predicate;
            Comparator comparator = null;
            try {
                ClassDescriptor predicateClassDescriptor = session.getDescriptorForClass(predicateClassName);
                predicate = (Predicate) predicateClassDescriptor.newInstance();
                if (comparatorClassName != null) {
                    ClassDescriptor comparatorClassDescriptor = session.getDescriptorForClass(comparatorClassName);
                    comparator = (Comparator) comparatorClassDescriptor.newInstance();
                }
            } catch (Exception e) {
                throw new JodbIOException(e);
            }
View Full Code Here

Examples of com.mobixess.jodb.core.transaction.JODBSession

        }

        @SuppressWarnings("unchecked")
        public IServerQueryResult query( String predicateClassName, String comparatorClassName)throws IOException
        {
            JODBSession session = _sessionContainer.getSession();
            Predicate predicate;
            Comparator comparator = null;
            try {
                ClassDescriptor predicateClassDescriptor = session.getDescriptorForClass(predicateClassName);
                predicate = (Predicate) predicateClassDescriptor.newInstance();
                if (comparatorClassName != null) {
                    ClassDescriptor comparatorClassDescriptor = session.getDescriptorForClass(comparatorClassName);
                    comparator = (Comparator) comparatorClassDescriptor.newInstance();
                }
            } catch (Exception e) {
                throw new JodbIOException(e);
            }
View Full Code Here

Examples of com.mobixess.jodb.core.transaction.JODBSession

    JodbSessionContainerSE() {
    }

    /*package*/ JodbSessionContainerSE(URI serverURI, ITransactionResolver transactionResolver, boolean readOnly) throws IOException {
        _base = new JODBIOBaseProxy(serverURI);
        _session = new JODBSession(_base);
        if(!readOnly){
            _transactionContainer = new TransactionContainer(_session, transactionResolver);
        }
    }
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.