Package com.mobixess.jodb.core

Examples of com.mobixess.jodb.core.JodbIOException


                return (val1 < floatVal2 ? -1 : (val1 == floatVal2 ? 0 : 1));
            default:
                throw new IOException("Unknown primitive type" + fieldDataType);
            }
        } catch (Exception e) {
            throw new JodbIOException(e);
        }  
    }
View Full Code Here


                return (val1 < floatVal2 ? -1 : (val1 == floatVal2 ? 0 : 1));
            default:
                throw new IOException("Unknown primitive type" + fieldDataType);
            }
        } catch (Exception e) {
            throw new JodbIOException(e);
        }       
    }
View Full Code Here

        }
           
        try {
            return classDescriptor.newInstance();
        } catch (IllegalClassTypeException e) {
            throw new JodbIOException(e);
        }
    }
View Full Code Here

            if (desc.isArray()) {
                return checkActiveArrayObjectUnchanged(context, value1, value2, desc);
            }
        } catch (IllegalClassTypeException e) {
            e.printStackTrace();
            throw new JodbIOException(e);
        }
        return equalToPersistentCopy(context, value1, value2, desc, fieldsToIgnore);
    }
View Full Code Here

//            }
            Object value;
            try {
                value = field.get(currentObject);
            } catch (Exception e) {
                throw new JodbIOException(e);
            }
            if(field.getType().isPrimitive()){
                if( PrimitiveJavaTypesUtil.comparePrimitives(value, fieldRecord._primitiveRawDataBuffer) != 0 ){
                    return false;
                }
View Full Code Here

                String type = _context.getBase().getClassTypeForID(classId);
                ClassDescriptor classDescriptor;
                try {
                    classDescriptor = _context.getSession().getDescriptorForClass(type);
                } catch (ClassNotFoundException e) {
                    throw new JodbIOException(e);
                }
                if(_classDescriptor.getType().isAssignableFrom(classDescriptor.getType())){
                    _acceptedClassIds.addElement(classId);
                }else{
                    _rejectedClassIds.addElement(classId);
View Full Code Here

                    for (int i = 0; i < indexingRecords.size(); i++) {
                        IndexingRecord record = indexingRecords.elementAt(i);
                        ByteBuffer currentValue = record.getPersistedDataBuffer();
                        JODBIndexingAgent indexingAgent = record.getIndexingAgent();
                        if (currentValue.limit() != 0 && !indexingAgent.removeIndex(offsetId, currentValue, null)) {
                            throw new JodbIOException("Illegal index state: can't remove index");
                        }
                        ByteBuffer pendingValue = record.getPendingDataBuffer();
                        if (pendingValue.limit() == 0) {
                            throw new JodbIOException(
                                    "indexing value unavailable for " + offsetId);
                        }
                        indexingAgent.insertIndex(offsetId, pendingValue, context);
                        if(!_agentsTransactionObjects.containsKey(indexingAgent)){
                            try {
                                set(indexingAgent, Integer.MAX_VALUE);
                            } catch (Exception e) {
                                throw new JodbIOException(e);
                            }
                        }
                    }
                }           
            }
View Full Code Here

                }
            }
            return new ChunkedBufferQueryList(acceptedIdsBuffer, session);
        } catch (Exception e) {
            // TODO log
            throw new JodbIOException(e);
        } finally {
            ticket.close();
        }
        //return null;
    }
View Full Code Here

                }
            }
            return new ChunkedBufferQueryList(acceptedIdsBuffer, session);
        } catch (Exception e) {
            // TODO log
            throw new JodbIOException(e);
        } finally {
            ticket.close();
        }
    }
View Full Code Here

                loader = _loadersCache.get(cacheKey);
                if(loader == null){
                    try {
                        loader = _nqLoaderClass.newInstance();// new NQLoader();
                    } catch (Exception e) {
                        throw new JodbIOException(e);
                    }
                    loader.registerPredicate(operationContext, predicate, comparator);
                    _loadersCache.put(cacheKey, loader);
                }
            }           
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.