Examples of KunderaException


Examples of com.impetus.kundera.KunderaException

        }
        catch (Exception ex)
        {
            // onRollBack.
            doRollback();
            throw new KunderaException(ex);
        }
    }
View Full Code Here

Examples of com.impetus.kundera.KunderaException

        }
        catch (Exception ex)
        {
            // on Rollback
            doRollback();
            throw new KunderaException(ex);
        }
    }
View Full Code Here

Examples of com.impetus.kundera.KunderaException

        }
        catch (Exception ex)
        {
            // on rollback.
            doRollback();
            throw new KunderaException(ex);
        }
    }
View Full Code Here

Examples of com.impetus.kundera.KunderaException

                this.utx = (UserTransaction) ctx.lookup("java:comp/UserTransaction");

                if (this.utx == null)
                {
                    throw new KunderaException(
                            "Lookup for UserTransaction returning null for :{java:comp/UserTransaction}");
                }
                // TODO what is need to check?
                if (!(this.utx instanceof KunderaJTAUserTransaction))
                {
                    throw new KunderaException("Please bind [" + KunderaJTAUserTransaction.class.getName()
                            + "] for :{java:comp/UserTransaction} lookup" + this.utx.getClass());
                }

                if (!this.entityTransaction.isActive())
                {
                    this.entityTransaction.begin();
                    this.setFlushMode(FlushModeType.COMMIT);
                    ((KunderaJTAUserTransaction) this.utx).setImplementor(this);
                }

            }
            catch (NamingException e)
            {
                logger.error("Error during initialization of entity manager, Caused by:", e);
                throw new KunderaException(e);
            }

        }
    }
View Full Code Here

Examples of com.impetus.kundera.KunderaException

            onDelete(log);
            break;

        default:

            throw new KunderaException("Invalid event type:" + eventType);
        }

    }
View Full Code Here

Examples of com.impetus.kundera.KunderaException

                emf = createEntityManagerFactory(persistenceUnitName);
            }
            catch (Exception e)
            {
                log.error(e.getMessage(),e);
                throw new KunderaException(e);
            }
        }

    }
View Full Code Here

Examples of com.impetus.kundera.KunderaException

            if (results != null && !results.isEmpty()) {
                enhancedEntity = results.get(0);
            }
        } catch (IOException e) {
            log.error("Error during find by id, Caused by: .", e);
            throw new KunderaException(e);
        }
        return enhancedEntity;
    }
View Full Code Here

Examples of com.impetus.kundera.KunderaException

                    handler.readAll(entityMetadata.getSchema(), entityMetadata.getEntityClazz(), entityMetadata,
                        Arrays.asList(rowIds), entityMetadata.getRelationNames());
            }
        } catch (IOException ioex) {
            log.error("Error during find All , Caused by: .", ioex);
            throw new KunderaException(ioex);
        }

        return results;
    }
View Full Code Here

Examples of com.impetus.kundera.KunderaException

                        e = (E) results.get(0);
                    }
                } catch (IOException ioex) {
                    log.error("Error during find for embedded entities, Caused by: .", ioex);

                    throw new KunderaException(ioex);
                }

                Field columnFamilyField =
                    columnFamilyNameToFieldMap.get(columnFamilyName.substring(0, columnFamilyName.indexOf("|")));
                Object columnFamilyValue = PropertyAccessorHelper.getObject(e, columnFamilyField);
View Full Code Here

Examples of com.impetus.kundera.KunderaException

        try {
            results =
                fetchEntity(entityClass, null, entityMetadata, relationNames, tableName, results, filter, columns);
        } catch (IOException ioex) {
            log.error("Error during find by query, Caused by: .", ioex);
            throw new KunderaException(ioex);
        }
        return results != null ? results : new ArrayList();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.