Package javax.jdo

Examples of javax.jdo.PersistenceManager.currentTransaction()


    public long getNbBuildResultsInSuccessForProject( int projectId, long fromDate )
    {
        PersistenceManager pm = getPersistenceManager();

        Transaction tx = pm.currentTransaction();

        try
        {
            tx.begin();
View Full Code Here


    public List<BuildResult> getBuildResultsForProjectWithDetails( int projectId, long fromDate, int tobuildResultId )
    {
        PersistenceManager pm = getPersistenceManager();

        Transaction tx = pm.currentTransaction();

        try
        {
            tx.begin();
View Full Code Here

    public List<BuildResult> getBuildResultsForProject( int projectId, long startIndex, long endIndex )
    {
        PersistenceManager pm = getPersistenceManager();

        Transaction tx = pm.currentTransaction();

        try
        {
            tx.begin();
View Full Code Here

    public List<BuildResult> getBuildResultsForProjectFromId( int projectId, long startId )
        throws ContinuumStoreException
    {
        PersistenceManager pm = getPersistenceManager();

        Transaction tx = pm.currentTransaction();

        pm.getFetchPlan().addGroup( BUILD_RESULT_WITH_DETAILS_FETCH_GROUP );

        try
        {
View Full Code Here

    public BuildResult getLatestBuildResultInSuccess( int projectId )
    {
        PersistenceManager pm = getPersistenceManager();

        Transaction tx = pm.currentTransaction();

        try
        {
            tx.begin();
View Full Code Here

    private int getPreviousBuildResultIdInSuccess( int projectId, int buildResultId )
    {
        PersistenceManager pm = getPersistenceManager();

        Transaction tx = pm.currentTransaction();

        try
        {
            tx.begin();
View Full Code Here

    public Map<Integer, BuildResult> getBuildResultsInSuccessByProjectGroupId( int projectGroupId )
    {
        PersistenceManager pm = getPersistenceManager();

        Transaction tx = pm.currentTransaction();

        try
        {
            tx.begin();
View Full Code Here

     * @return the object id of the persistent instance
     */
    protected Object makePersistent(Object pc) {
        addTearDownClass(pc.getClass());
        PersistenceManager pm = getPM();
        pm.currentTransaction().begin();
        pm.makePersistent(pc);
        Object result = JDOHelper.getObjectId(pc);
        pm.currentTransaction().commit();
        return result;
    }
View Full Code Here

        addTearDownClass(pc.getClass());
        PersistenceManager pm = getPM();
        pm.currentTransaction().begin();
        pm.makePersistent(pc);
        Object result = JDOHelper.getObjectId(pc);
        pm.currentTransaction().commit();
        return result;
    }
   
    protected boolean isTestToBePerformed() {
        int index = getClass().getName().lastIndexOf('.');
View Full Code Here

    /** */
    public void test() {
      Properties pmfProperties = loadPMF2Properties();
        PersistenceManagerFactory pmf2 = JDOHelper.getPersistenceManagerFactory(pmfProperties);
        PersistenceManager pm2 = pmf2.getPersistenceManager();
        Transaction tx2 = pm2.currentTransaction();
       
        pm = getPM();
        Transaction tx = pm.currentTransaction();
        try {
            tx.begin();
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.