Package org.infoglue.cms.util

Examples of org.infoglue.cms.util.ConstraintExceptionBuffer.throwIfNotEmpty()


            //add validation here if needed
            serviceDefinition = getServiceDefinitionWithId(serviceDefinitionVO.getServiceDefinitionId(), db);
            serviceDefinition.setValueObject(serviceDefinitionVO);

            //If any of the validations or setMethods reported an error, we throw them up now before create.
            ceb.throwIfNotEmpty();
           
            commitTransaction(db);
        }
        catch(ConstraintException ce)
        {
View Full Code Here


    try
    {
      beginTransaction(db);
     
      ConstraintExceptionBuffer ceb = interceptorVO.validate();
      ceb.throwIfNotEmpty();
     
      Interceptor interceptor = this.getInterceptorWithId(interceptorVO.getInterceptorId(), db);

      interceptor.setValueObject(interceptorVO);
     
View Full Code Here

        beginTransaction(db);

        try
        {
          contentTypeDefinition = create(db, parentContentTypeDefinitionId, contentTypeDefinitionVO);
            ceb.throwIfNotEmpty();
           
            commitTransaction(db)
        }
        catch(ConstraintException ce)
        {
View Full Code Here

      //repository = RepositoryController.getController().getRepositoryWithId(repositoryVO.getRepositoryId(), db);
            //repository.setValueObject(repositoryVO);
            repository.setRepositoryLanguages(repositoryLanguageList);
     
            //If any of the validations or setMethods reported an error, we throw them up now before create.
            ceb.throwIfNotEmpty();
           
            commitTransaction(db);
        }
        catch(ConstraintException ce)
        {
View Full Code Here

          }
        }
      }
         
      //If any of the validations or setMethods reported an error, we throw them up now before create.
      ceb.throwIfNotEmpty();
           
      commitTransaction(db);
    }
    catch(ConstraintException ce)
    {
View Full Code Here

          beginTransaction(db);

        repositoryLanguage = getRepositoryLanguageWithId(repositoryLanguageId, db);
       
            //If any of the validations or setMethods reported an error, we throw them up now before create.
            ceb.throwIfNotEmpty();
           
            commitTransaction(db);
        }
        catch(ConstraintException ce)
        {
View Full Code Here

            }

      results.close();
      oql.close();

            ceb.throwIfNotEmpty();
            commitTransaction(db);
        }
        catch(Exception e)
        {
            logger.error("An error occurred so we should not completes the transaction:" + e, e);
View Full Code Here

              //if(repositoryLanguageList != null)
              //{
              //    CacheController.cacheObject("repositoryLanguageListCache", repositoryLanguageListKey, repositoryLanguageList);
              //}
             
              ceb.throwIfNotEmpty();
              commitTransaction(db);
          }
          catch(Exception e)
          {
              logger.error("An error occurred so we should not completes the transaction:" + e, e);
View Full Code Here

              //if(repositoryLanguageList != null)
              //{
              //    CacheController.cacheObject("repositoryLanguageListCache", repositoryLanguageListKey, repositoryLanguageList);
              //}
             
              ceb.throwIfNotEmpty();
              commitTransaction(db);
          }
          catch(Exception e)
          {
              logger.error("An error occurred so we should not completes the transaction:" + e, e);
View Full Code Here

          repositoryLanguageVOList.add(repositoryLanguage.getLanguage().getValueObject());
        }
     
                CacheController.cacheObject("repositoryLanguageListCache", repositoryLanguageListKey, repositoryLanguageVOList);
       
        ceb.throwIfNotEmpty();
              commitTransaction(db);
          }
          catch(Exception e)
          {
              logger.error("An error occurred so we should not completes the transaction:" + e, 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.