Examples of ValueGenerationException


Examples of org.datanucleus.store.valuegenerator.ValueGenerationException

                {
                    allocationSize = Integer.parseInt((String)properties.get("key-increment-by"));
                }
                catch (Exception e)
                {
                    throw new ValueGenerationException(LOCALISER.msg("040006",properties.get("key-increment-by")));
                }
            }
            else if (properties.get("key-cache-size") != null)
            {
                // Not provided "key-increment-by" so use previous name of "key-cache-size"
                try
                {
                    allocationSize = Integer.parseInt((String)properties.get("key-cache-size"));
                }
                catch (Exception e)
                {
                    throw new ValueGenerationException(LOCALISER.msg("040006",properties.get("key-cache-size")));
                }
            }
            if (properties.get("sequence-name") == null)
            {
                throw new ValueGenerationException(LOCALISER.msg("040007",properties.get("sequence-name")));
            }
        }
    }
View Full Code Here

Examples of org.datanucleus.store.valuegenerator.ValueGenerationException

            }
            return new ValueGenerationBlock(oid);
        }
        catch (SQLException e)
        {
            throw new ValueGenerationException(LOCALISER_RDBMS.msg("061001",e.getMessage()));
        }
        finally
        {
            try
            {
View Full Code Here

Examples of org.datanucleus.store.valuegenerator.ValueGenerationException

            sqlControl.executeStatementUpdate(connection, stmt, ps, true);
        }
        catch (SQLException e)
        {
            NucleusLogger.DATASTORE.error(e);
            throw new ValueGenerationException(LOCALISER_RDBMS.msg("061000",e.getMessage()) + stmt);
        }
        finally
        {
            try
            {
View Full Code Here

Examples of org.datanucleus.store.valuegenerator.ValueGenerationException

                rs.close();
            }
        }
        catch (SQLException e)
        {
           throw new ValueGenerationException(LOCALISER.msg("061001", e.getMessage()),e);
        }
        finally
        {
            if (ps != null)
            {
View Full Code Here

Examples of org.datanucleus.store.valuegenerator.ValueGenerationException

                {
                    allocationSize = Integer.parseInt(properties.getProperty("key-cache-size"));
                }
                catch (Exception e)
                {
                    throw new ValueGenerationException(LOCALISER.msg("Sequence040006",properties.get("key-cache-size")));
                }
            }
            if (properties.get("key-initial-value") != null)
            {
                try
View Full Code Here

Examples of org.datanucleus.store.valuegenerator.ValueGenerationException

            }
            return new ValueGenerationBlock(oid);
        }
        catch (SQLException e)
        {
            throw new ValueGenerationException(LOCALISER_RDBMS.msg("061001",e.getMessage()));
        }
    }
View Full Code Here

Examples of org.datanucleus.store.valuegenerator.ValueGenerationException

            repositoryExists = true;
            return true;
        }
        catch (SQLException sqle)
        {
            throw new ValueGenerationException("Exception thrown calling table.exists() for " + sequenceTable, sqle);
        }
    }
View Full Code Here

Examples of org.datanucleus.store.valuegenerator.ValueGenerationException

            repositoryExists = true;
            return true;
        }
        catch (SQLException sqle)
        {
            throw new ValueGenerationException("Exception thrown calling table.exists() for " + sequenceTable, sqle);
        }
  }
View Full Code Here

Examples of org.datanucleus.store.valuegenerator.ValueGenerationException

                {
                    allocationSize = Integer.parseInt((String)properties.get("key-cache-size"));
                }
                catch (Exception e)
                {
                    throw new ValueGenerationException(LOCALISER.msg("040006",properties.get("key-cache-size")));
                }
            }
        }
    }
View Full Code Here

Examples of org.datanucleus.store.valuegenerator.ValueGenerationException

            }
            return new ValueGenerationBlock(oid);
        }
        catch (SQLException e)
        {
            throw new ValueGenerationException(LOCALISER.msg("040008",e.getMessage()));
        }
        finally
        {
            try
            {
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.