Package com.mobixess.jodb.core

Examples of com.mobixess.jodb.core.JodbIOException


                    return CONSTRAINT_EVALUATION_STATUS.ACCEPTED;
                }else{
                    return CONSTRAINT_EVALUATION_STATUS.REJECTED;
                }
            default:
                throw new JodbIOException();
            }
        }
View Full Code Here


        {
            if(field!=null && activeObject!=null){
                try {
                    activeObject = field.get(activeObject);
                } catch (Exception e) {
                    throw new JodbIOException(e);
                }
            }
            if(activeObject!=null){
                Evaluation evaluation = (Evaluation) getObject();
                CandidateImpl candidateImpl = _candidateImpl.get();
View Full Code Here

                    break;
                case TYPE_WITH_PREFFIX:
                    setSubstitutionToBuffer(_unresolvedTypes,new String(buffer,0,len,"utf8"), substID);
                    break;
                default:
                    throw new JodbIOException("unknown literal type");
                }
            }
            result._bytesInUsePending = result._bytesInUse = file.getCursorOffset()-result._entriesCounterOffset;
            _substTables.add(result);
            file.seek(result._entriesCounterOffset+result._totalTableLength);
View Full Code Here

            if(target._totalTableLength > 0){//TODO do not backup table length as it remains constant
                long bytesToTransfer = target._entriesCounterOffset-target._tableOffset+ target._bytesInUse;
                srcBuffer.seek(target._tableOffset);
                if(destinationBuffer.transferFrom(srcBuffer.getChannel(), totalTableLengthOffset, bytesToTransfer) != bytesToTransfer){
                    throw new JodbIOException("Unable to tansfer "+bytesToTransfer+" bytes");
                }
                destinationBuffer.seek(totalTableLengthOffset+bytesToTransfer);
            }else{//new table
                target._tableOffset = destinationBuffer.getCursorOffset();
                destinationBuffer.writeLong(0);//reserve space for total length
View Full Code Here

   

    public static Object getDefaultWrapperInstance(String type) throws JodbIOException{
        PrimitiveTypeDataContainer container = _primitiveAccessoriesPool.get(type);
        if(container==null){
            throw new JodbIOException("unknown primitive "+type);
        }
        return container._defaultWrapperInstance;
    }
View Full Code Here

    }
   
    public static Object getDefaultWrapperInstance(PRIMITIVES_ENUMERATION type) throws JodbIOException{
        PrimitiveTypeDataContainer container = _primitiveAccessoriesPool.get(type);
        if(container==null){
            throw new JodbIOException("unknown primitive "+type);
        }
        return container._defaultWrapperInstance;
    }
View Full Code Here

    }
   
    public static ByteBuffer getDefaultValueAsByteBuffer(Class clazz) throws JodbIOException{
        PrimitiveTypeDataContainer container = _primitiveAccessoriesPool.get(clazz);
        if(container==null){
            throw new JodbIOException("unknown primitive "+clazz);
        }
        return container._defaultValueAsByteBuffer;
    }
View Full Code Here

    }
   
    public static ByteBuffer getDefaultValueAsByteBuffer(String type) throws JodbIOException{
        PrimitiveTypeDataContainer container = _primitiveAccessoriesPool.get(type);
        if(container==null){
            throw new JodbIOException("unknown primitive "+type);
        }
        return container._defaultValueAsByteBuffer;
    }
View Full Code Here

    }
   
    public static int getDataOutputWriteLen(String primitiveClass) throws JodbIOException{
        PrimitiveTypeDataContainer data = _primitiveAccessoriesPool.get(primitiveClass);
        if(data == null){
            throw new JodbIOException("can't find description for primitive "+primitiveClass);
        }
        return data._size;
    }
View Full Code Here

    }
   
    public static PRIMITIVES_ENUMERATION getEnumeratedType(String primitiveClass) throws JodbIOException{
        PrimitiveTypeDataContainer data = _primitiveAccessoriesPool.get(primitiveClass);
        if(data == null){
            throw new JodbIOException("can't find description for primitive "+primitiveClass);
        }
        return data._primitivesEnumeration;
    }
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.