Package com.mobixess.jodb.core

Examples of com.mobixess.jodb.core.JodbIOException


    }
   
    public static PRIMITIVES_ENUMERATION getEnumeratedType(int primitiveTypeID, IOBase base) throws JodbIOException{
        String type = base.getClassTypeForID(primitiveTypeID);
        if(type == null){
            throw new JodbIOException("no type definition for ID "+primitiveTypeID);
        }
        return getEnumeratedType(type);
    }
View Full Code Here


   
    public static PRIMITIVES_ENUMERATION findMutuallyAcceptibleEnumeratedType(Class class1, Class class2) throws JodbIOException{
        PrimitiveTypeDataContainer data1 = _primitiveAccessoriesPool.get(class1.getName());
        PrimitiveTypeDataContainer data2 = _primitiveAccessoriesPool.get(class2.getName());
        if(data1 == null || data2 == null){
            throw new JodbIOException("can't find description for primitive "+class1+" "+class2);
        }
        if(data1._primitivesEnumeration.ordinal() > data2._primitivesEnumeration.ordinal()){
            return data1._primitivesEnumeration;
        }else{
            return data2._primitivesEnumeration;
View Full Code Here

            } else if (type.equals("float")) {
                byteBuffer.putFloat(field.getFloat(obj));
            } else if (type.equals("double")) {
                byteBuffer.putDouble(field.getDouble(obj));
            } else {
                throw new JodbIOException("Unknown primitive type");
            }
        } catch (IllegalAccessException e) {
            throw new JodbIOException();
        }       
    }
View Full Code Here

    }
   
    public static void primitiveWrapperToByteBuffer(Object wrapper, ByteBuffer byteBuffer) throws IOException{
        PrimitiveTypeDataContainer data = _primitiveAccessoriesPool.get(wrapper.getClass().getName());
        if(data == null){
            throw new JodbIOException("Unknown primitive type");
        }
        PRIMITIVES_ENUMERATION type = data._primitivesEnumeration;
        switch (type) {
            case _boolean:
                byteBuffer.put((byte) (((Boolean)wrapper).booleanValue() ? 1 : 0));
View Full Code Here

            break;
        case _float:
            result =  compare(((Float)primitiveWrapper).floatValue(), persistentFieldRecord._primitiveRawDataBuffer, fieldTypeEnum);
            break;
        default:
            throw new JodbIOException();   
        }
        if(result < 0){
            return COMPARE_RESULT.SMALLER;
        }else if (result > 0){
            return COMPARE_RESULT.GREATER;
View Full Code Here

        case _float:
            float float1 = val1;
            float float2 = rawPrimitiveData.getFloat(0)
            return Float.compare(float1, float2);
        default:
            throw new JodbIOException("Unknown primitive type"+rawPrimitiveDataType);
        }
    }
View Full Code Here

        case _float:
            float float1 = val1;
            float float2 = rawPrimitiveData.getFloat(0)
            return Float.compare(float1, float2);
        default:
            throw new JodbIOException("Unknown primitive type"+rawPrimitiveDataType);
        }
    }
View Full Code Here

        case _float:
            float float1 = val1;
            float float2 = rawPrimitiveData.getFloat(0)
            return Float.compare(float1, float2);
        default:
            throw new JodbIOException("Unknown primitive type"+rawPrimitiveDataType);
        }
    }
View Full Code Here

        case _float:
            float float1 = val1;
            float float2 = rawPrimitiveData.getFloat(0)
            return Float.compare(float1, float2);
        default:
            throw new JodbIOException("Unknown primitive type"+rawPrimitiveDataType);
        }
    }
View Full Code Here

        case _float:
            float float1 = val1;
            float float2 = rawPrimitiveData.getFloat(0)
            return Float.compare(float1, float2);
        default:
            throw new JodbIOException("Unknown primitive type"+rawPrimitiveDataType);
        }
    }
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.