Package com.mobixess.jodb.core

Examples of com.mobixess.jodb.core.JodbIOException


        _cyclicVersionCounter = 0;
    }
   
    private void setOffset(long offset) throws JodbIOException {
        if(!_reseted){
            throw new JodbIOException("Container must be reset before accepting new data");
        }
        _reseted = false;
        _offset = offset;
    }
View Full Code Here


            }else{
                setRedirectionOffset(redirectionOffset);
            }
            break;
        default:
            throw new JodbIOException("Illegal entry ID "+id);
        }
        _auxiliaryDataStartOffset = input.getCursorOffset();
        //setRemainingBytesInRecord( bodyLength - (_auxiliaryDataStartOffset - bodyStartOffset) );
    }
View Full Code Here

        //setRemainingBytesInRecord( bodyLength - (_auxiliaryDataStartOffset - bodyStartOffset) );
    }
   
    public void readAuxiliaryData() throws IOException{
        if(_auxiliaryDataStartOffset == -1 || isDeleted() || isRedirection()){
            throw new JodbIOException("Illegal IO state");
        }
        if(_hierarchyDataStartOffset != -1){
            return;//data has been read already
        }
        _input.seek(_auxiliaryDataStartOffset);
View Full Code Here

        _hierarchyDataStartOffset = _input.getCursorOffset();
    }
   
    public void readHierarchyData(IOBase base, JODBSession session) throws IOException{
        if(_hierarchyDataStartOffset == -1 || isDeleted() || isRedirection()){
            throw new JodbIOException("Illegal IO state");
        }
        if(_objectDataStartOffset != -1){
            return;//data has been read already
        }
        _input.seek(_hierarchyDataStartOffset);
View Full Code Here

        case JODBIOBase.LEN_MODIFIER_LONG:
            return input.readLong();
        case 0:
            return input.readShort()&0xffff;
        default:
            throw new JodbIOException("format error: unknown len modifier in id="+entryID);
        }
    }
View Full Code Here

        private long _slotStartOffset;
        private long _readingOffset;
       
        private void init() throws IOException{
            if(_objectDataStartOffset == -1 || _arrayType == null || isDeleted() || isRedirection()){
                throw new JodbIOException("Illegal IO state");
            }
            _input.seek(_objectDataStartOffset);
            _remainingElementsInArray = _input.readInt();
            _elementLen = _input.readUnsignedByte();
            _indexInSlot = Integer.MAX_VALUE;
View Full Code Here

        private BitSet _unprocessedFields = new BitSet();
       
       
        private void init() throws IOException{
            if(_objectDataStartOffset == -1 || isDeleted() || isRedirection()){
                throw new JodbIOException("Illegal IO state");
            }
            _fieldsCategory = null;
            _remainingPersistentFieldsInCategory = 0;
            _unprocessedFields.clear();
            if(_translatedClassDescriptor!=null){
View Full Code Here

                break;
            }
            if(!validRecord && _translatedClassDescriptor != null){
                int nextUnrocessedIndex = _unprocessedFields.nextSetBit(0);
                if(nextUnrocessedIndex == -1){
                    throw new JodbIOException("nextUnrocessedIndex == -1)");
                }
                FieldAndIDRecord fieldAndIDRecord = _translatedClassDescriptor.getAllFields()[nextUnrocessedIndex];
                Class fieldType = fieldAndIDRecord._field.getType();
                record._fieldID = fieldAndIDRecord._id;
                IndexingRecord indexingRecord = IndexingRecord.findIndexingRecord(record._fieldID, _indexes);
View Full Code Here

            if (object!=null) {
                try {
                    object = field.get(object);
                } catch (Exception e) {
                    e.printStackTrace();
                    throw new JodbIOException(e);
                }
            }           
        }else if(object == null){
            return getCumulativeStatus();
        }
View Full Code Here

        if( fieldRecord!=null ){
            try {
                classDescriptor = _session.getDescriptorForClass(fieldRecord._fieldTypeID);
            } catch (Exception e) {
                e.printStackTrace();
                throw new JodbIOException(e);
            }
            if(fieldRecord._category == FIELD_CATEGORIES.PRIMITIVE){
                _constraints.evaluatePersistentCopy(classDescriptor, null, fieldRecord, context);
                return getCumulativeStatus();
            }
            objectOffset = fieldRecord._objectOffset;
        }else{
            if(objectOffset <= 0){
                throw new JodbIOException("illegal query state");
            }
        }

        if(objectOffset == 0){
            _constraints.evaluatePersistentCopy(classDescriptor, null, null, context);
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.