Package com.impetus.kundera

Examples of com.impetus.kundera.KunderaException


                results = handler.readDataByRange(tableName, entityClass, metadata, startRow, endRow, columns, filter);
            }

        } catch (IOException ioex) {
            log.error("Error during find by range, Caused by: .", ioex);
            throw new KunderaException(ioex);
        }
        return results;
    }
View Full Code Here


                return ((HBaseDataHandler) handler).scanData(f, m.getSchema(), entityClazz, m, columnFamilyName,
                    colName);
            }
        } catch (IOException ioe) {
            log.error("Error during find By Relation, Caused by: .", ioe);
            throw new KunderaException(ioe);
        } catch (InstantiationException ie) {
            log.error("Error during find By Relation, Caused by: .", ie);
            throw new KunderaException(ie);
        } catch (IllegalAccessException iae) {
            log.error("Error during find By Relation, Caused by: .", iae);
            throw new KunderaException(iae);
        }

        return output;
    }
View Full Code Here

        try {
            return handler.scanRowyKeys(filterList, schemaName, tableName, columnName + "_" + columnValue, m
                .getIdAttribute().getBindableJavaType());
        } catch (IOException e) {
            log.error("Error while executing findIdsByColumn(), Caused by: .", e);
            throw new KunderaException(e);
        }
    }
View Full Code Here

                ((HBaseDataHandler) handler).batch_insert(data);
            }
            return data.size();
        } catch (IOException ioex) {
            log.error("Error while executing batch insert/update, Caused by: .", ioex);
            throw new KunderaException(ioex);
        }

    }
View Full Code Here

            } else {
                return (latestCount - 1) * discriptor.getAllocationSize();
            }
        } catch (IOException ioex) {
            log.error("Error while generating id for entity, Caused by: .", ioex);
            throw new KunderaException(ioex);
        }
    }
View Full Code Here

                    columnFamilyObject = PropertyAccessorHelper.getObject(entity, columnFamilyField);
                }
                catch (PropertyAccessException paex)
                {
                    log.error("Error while getting {}, field from entity {} .", columnFamilyName, entity);
                    throw new KunderaException(paex);
                }

                if (columnFamilyObject != null)
                {
                    // continue;
View Full Code Here

                    m.getRelationNames(), results);
        }
        catch (IOException e)
        {
            log.error("Error during finding next record, Caused by: .", e);
            throw new KunderaException(e);
        }

        return output != null && !output.isEmpty() ? output.get(0) : output;
    }
View Full Code Here

                }
            }
        } catch (Exception e) {
            log.error("Error while retrieving records from database for entity {} and key {}, Caused by: . ",
                entityClass, entityId, e);
            throw new KunderaException(e);
        }
        return entities;
    }
View Full Code Here

                batchQueryBuilder.append(CQLTranslator.APPLY_BATCH);
                executeCQLQuery(batchQueryBuilder.toString(), isCql3Enabled);
            }
        } catch (Exception e) {
            log.error("Error while persisting record. Caused by: .", e);
            throw new KunderaException(e);
        } finally {
            clear();
            if (pooledConnection != null) {
                releaseConnection(pooledConnection);
            }
View Full Code Here

                getDataHandler()
                    .toThriftRow(entity, id, entityMetadata, columnFamily, getTtlValues().get(columnFamily));
        } catch (Exception e) {
            log.error("Error during persisting record for entity {}, Caused by: .", entityMetadata.getEntityClazz(),
                entityMetadata.getTableName(), e);
            throw new KunderaException(e);
        }

        Map<String, List<Mutation>> columnFamilyValues = new HashMap<String, List<Mutation>>();

        for (ThriftRow tf : tfRows) {
View Full Code Here

TOP

Related Classes of com.impetus.kundera.KunderaException

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.