Examples of EntityStoreException


Examples of org.qi4j.spi.entitystore.EntityStoreException

            throws Exception
    {
        Connection connection = getConnection();
        String schema = this.getConfiguredSchemaName( SQLs.DEFAULT_SCHEMA_NAME );
        if ( schema == null ) {
            throw new EntityStoreException( "Schema name must not be null." );
        } else {
            state.schemaName().set( schema );
            state.vendor().set( this.descriptor.metaInfo( SQLVendor.class ) );

            sqlStrings.init();
View Full Code Here

Examples of org.qi4j.spi.entitystore.EntityStoreException

                            e.printStackTrace( new PrintWriter( sb, true ) );
                            e = e.getNextException();
                        }
                        LOGGER.debug( sb.toString() );
                    }
                    throw new EntityStoreException( sqle );
                }
                catch( RuntimeException re )
                {
                    SQLUtil.rollbackQuietly( connection );
                    throw new EntityStoreException( re );
                }
                finally
                {
                    SQLUtil.closeQuietly( insertPS );
                    SQLUtil.closeQuietly( updatePS );
View Full Code Here

Examples of org.qi4j.spi.entitystore.EntityStoreException

                }
            }
        }
        catch( SQLException ex )
        {
            throw new EntityStoreException( ex );
        }
        finally
        {
            SQLUtil.closeQuietly( rs );
            SQLUtil.closeQuietly( ps );
View Full Code Here

Examples of org.qi4j.spi.entitystore.EntityStoreException

                                           EntityReference.parseEntityReference( identity ), status, entityDescriptor,
                                           properties, associations, manyAssociations, namedAssociations );
        }
        catch( JSONException e )
        {
            throw new EntityStoreException( e );
        }
    }
View Full Code Here

Examples of org.qi4j.spi.entitystore.EntityStoreException

            return result;
        }
        catch( SQLException sqle )
        {
            throw new EntityStoreException( "Unable to get Entity " + ref, sqle );
        }
        finally
        {
            SQLUtil.closeQuietly( rs );
            SQLUtil.closeQuietly( ps );
View Full Code Here

Examples of org.qi4j.spi.entitystore.EntityStoreException

            }
            namedAssociations.endObject().endObject();
        }
        catch( JSONException e )
        {
            throw new EntityStoreException( "Could not store EntityState", e );
        }
    }
View Full Code Here

Examples of org.qi4j.spi.entitystore.EntityStoreException

        BlobStore blobStore = storeContext.getBlobStore();
        if( !blobStore.containerExists( container ) )
        {
            if( !blobStore.createContainerInLocation( null, container ) )
            {
                throw new EntityStoreException( "Unable to create JClouds Blob Container, cannot continue." );
            }
            else
            {
                LOGGER.debug( "Created new container: {}", container );
            }
View Full Code Here

Examples of org.qi4j.spi.entitystore.EntityStoreException

            Inputs.byteBuffer( input, 4096 ).transferTo( Outputs.byteBuffer( baos ) );
            return new StringReader( baos.toString( "UTF-8" ) );
        }
        catch( IOException ex )
        {
            throw new EntityStoreException( "Unable to read entity state for: " + entityReference, ex );
        }
        finally
        {
            if( input != null )
            {
View Full Code Here

Examples of org.qi4j.spi.entitystore.EntityStoreException

            byte[] serializedState = fetch( f );
            return new StringReader( new String( serializedState, "UTF-8" ) );
        }
        catch( IOException e )
        {
            throw new EntityStoreException( e );
        }
    }
View Full Code Here

Examples of org.qi4j.spi.entitystore.EntityStoreException

                                receiver.receive( entityState );
                            }
                        }
                        catch( BackingStoreException e )
                        {
                            throw new EntityStoreException( e );
                        }
                    }
                } );
            }
        };
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.