Package com.mobixess.jodb.core

Examples of com.mobixess.jodb.core.JodbIOException


        _data = data;
    }

    public int compareTo(Object o, SortNodeRecord[] nodes) throws JodbIOException {
        if(o == null  || !(o instanceof SortingDataContainer)){
            throw new JodbIOException("illegal opeation state");
        }
        SortingDataContainer otherObject = (SortingDataContainer) o;
        if( otherObject._data.length != _data.length ){
            throw new JodbIOException("illegal opeation state");
        }
        for (int i = 0; i < _data.length; i++) {
            Object compObj = _data[i];
            Object otherCompObject = otherObject._data[i];
            if(compObj == null || otherCompObject == null || compObj.getClass() != otherCompObject.getClass()){
                throw new JodbIOException("illegal opeation state");
            }
            if(!( compObj instanceof Comparable )){
                throw new JodbIOException("illegal opeation state");
            }
            int result = ((Comparable)compObj).compareTo(otherCompObject);
            if(result!=0){
                if(!nodes[i].isOrderAscending()){
                    result*=-1;
 
View Full Code Here


                if (types.length != 1) {
                    continue;
                }
                if (!types[0].getName().equals("java.lang.Object")) {
                    if(predicateMethod != null){
                        throw new JodbIOException("Illegal predicate type");
                    }
                    _predicateSubjectClass = types[0];
                    //break;
                }
            }
View Full Code Here

    public IOTicketImpl getIOTicket(boolean read, boolean write, boolean remote) throws IOException{
        if(!remote){
            return super.getIOTicket(read, write, remote);
        }
        if(isClosed()){
            throw new JodbIOException("Container closed");
        }
        IOTicketImpl result = new RemoteIOTicketImpl(_targetDBFile,read,write) ;
        _ioBuffersCache.put(result, new IOTicketWRHolder(result));
        return result;
    }
View Full Code Here

    }

    public void seek(long pos) throws IOException {
        if(pos < _offset || pos >_offset+_tempFile.length()){
            //prefetch(pos);
            throw new JodbIOException("Read out of bounds "+pos);
        }
        _tempFile.seek(pos-_offset);
    }
View Full Code Here

                if (types.length != 1) {
                    continue;
                }
                if (!types[0].getName().equals("java.lang.Object")) {
                    if(predicateMethod != null){
                        throw new JodbIOException("Illegal predicate type");
                    }
                    _predicateAnalysisDataContainer._predicateSubjectClass = types[0];
                    predicateMethod = methods[i];
                    _predicateAnalysisDataContainer._predicateSubjectBytecode = getHierachyLocationsForClass(_predicateAnalysisDataContainer._predicateSubjectClass);
                    //break;
View Full Code Here

        if(_predicateAnalysisDataContainer._syntheticProxyField == null){
            try {
                Class transformedClass = loadClass(_predicateAnalysisDataContainer._predicateSubjectClass.getName());
                _predicateAnalysisDataContainer._syntheticProxyField = transformedClass.getField(_predicateAnalysisDataContainer._syntheticProxyFieldName);
            } catch (Exception e) {
                throw new JodbIOException(e);
            }
        }
        return _predicateAnalysisDataContainer._syntheticProxyField;
    }
View Full Code Here

    private void connect(URI serverURI) throws JodbIOException{
        _serverId = serverURI;
        try {
            _server = (IRemoteServer) Naming.lookup (_serverId.toString());
        } catch (Exception e) {
            throw new JodbIOException(e);
        }
    }
View Full Code Here

            id+="_"+serverName;
        }
        try {
            return new URI(id).normalize();
        } catch (URISyntaxException e) {
            throw new JodbIOException(e);
        }
    }
View Full Code Here

            applyTransaction(transactionContainer, ticket, session, transactionOffset, indexingRootAgent);
            dispatchTranslatedData(transactionContainer, remoteTransactionContainer);
            remoteTransactionContainer.checkTransactionComplete();
            transactionContainer.resetTranslatedObjects(session, transactionOffset);
        } catch (Exception e) {
            throw new JodbIOException(e);
        }finally{
            transactionContainer.reset();
            ticket.close();
            remoteTransactionContainer.disposeRemoteContainer();
        }
View Full Code Here

    public String getClassTypeForID(int id) throws JodbIOException {
        try {
            return _server.getClassTypeForID(id);
        } catch (IOException e) {
            throw new JodbIOException(e);
        }
    }
View Full Code Here

TOP

Related Classes of com.mobixess.jodb.core.JodbIOException

Copyright © 2018 www.massapicom. 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.