Package org.jpox.store.poid

Examples of org.jpox.store.poid.PoidBlock


            }
            if (JPOXLogger.POID.isDebugEnabled())
            {
                JPOXLogger.POID.debug(LOCALISER.msg("040004", "" + size));
            }
            return new PoidBlock(oid);
        }
        catch (SQLException e)
        {
            throw new PoidException(LOCALISER_RDBMS.msg("061001",e.getMessage()));
        }
View Full Code Here


     * @param number The number of additional ids required
     * @return the PoidBlock
     */
    protected PoidBlock obtainPoidBlock(int number)
    {
        PoidBlock block = null;

        // Try getting the block
        boolean repository_exists=true;
        try
        {
View Full Code Here

                {
                    nextId = rs.getString(1);
                    oid.add(nextId);
                }
            }
            return new PoidBlock(oid);
        }
        catch (SQLException e)
        {
            throw new PoidException(LOCALISER.msg("040008",e.getMessage()));
        }
View Full Code Here

            ps = sqlControl.getStatementForUpdate(connection, stmt, false);

            rs = sqlControl.executeStatementQuery(connection, stmt, ps);
            if (!rs.next())
            {
                return new PoidBlock(new Object[] { new Long(1) });
            }

            return new PoidBlock(new Object[] { new Long(rs.getLong(1) + 1)});
        }
        catch (SQLException e)
        {
            //TODO adds a message correspondent to the exception.
            //we need to work to create user friendly messages
View Full Code Here

            }
            if (JPOXLogger.POID.isDebugEnabled())
            {
                JPOXLogger.POID.debug(LOCALISER.msg("040004", "" + size));
            }
            return new PoidBlock(oid);
        }
        catch (SQLException e)
        {
            throw new PoidException(LOCALISER_RDBMS.msg("061001",e.getMessage()));
        }
View Full Code Here

TOP

Related Classes of org.jpox.store.poid.PoidBlock

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.