Package org.infoglue.cms.util

Examples of org.infoglue.cms.util.ConstraintExceptionBuffer


   */
 
    public void delete(ServiceDefinitionVO vo) throws ConstraintException, SystemException
    {
      Database db = CastorDatabaseService.getDatabase();
        ConstraintExceptionBuffer ceb = new ConstraintExceptionBuffer();
   
        beginTransaction(db);

        try
        {
View Full Code Here


  }
 
    public ServiceDefinitionVO update(ServiceDefinitionVO serviceDefinitionVO) throws ConstraintException, SystemException
    {
        Database db = CastorDatabaseService.getDatabase();
        ConstraintExceptionBuffer ceb = new ConstraintExceptionBuffer();

        ServiceDefinition serviceDefinition = null;

        beginTransaction(db);

        try
        {
            //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

  public ServiceDefinitionVO getServiceDefinitionVOWithName(String name) throws SystemException, Bug
  {
    ServiceDefinitionVO serviceDefinitionVO = null;
   
    Database db = CastorDatabaseService.getDatabase();
    ConstraintExceptionBuffer ceb = new ConstraintExceptionBuffer();

    beginTransaction(db);

    try
    {
View Full Code Here

  private ConstraintExceptionBuffer ceb;
 
  public UpdateRolePropertiesAction()
  {
    rolePropertiesVO = new RolePropertiesVO();
    this.ceb = new ConstraintExceptionBuffer()
  }
View Full Code Here

  }
 
  public UpdateLanguageAction(LanguageVO languageVO)
  {
    this.languageVO = languageVO;
    this.ceb = new ConstraintExceptionBuffer()
  }
View Full Code Here

          this.languageVO.setName(name);
      }
      catch(ConstraintException ce)
      {
        this.name = name;
        this.ceb.add(new ConstraintExceptionBuffer(ce));
      }
    }
View Full Code Here

          this.languageVO.setLanguageCode(languageCode);
      }
      catch(ConstraintException ce)
      {
        this.languageCode = languageCode;
        this.ceb.add(new ConstraintExceptionBuffer(ce));
      }
    }
View Full Code Here

  public Collection getChildContainerNodes(Integer parentNode) throws SystemException, Exception
  {
    Timer timer = new Timer();
   
    Database db = CastorDatabaseService.getDatabase();
        ConstraintExceptionBuffer ceb = new ConstraintExceptionBuffer();

    ArrayList ret = new ArrayList();
    cacheLeafs = new ArrayList();
    //List children = null;
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

  }
 
  public CreateServiceDefinitionAction(ServiceDefinitionVO serviceDefinitionVO)
  {
    this.serviceDefinitionVO = serviceDefinitionVO;
    this.ceb = new ConstraintExceptionBuffer();
     
 
View Full Code Here

TOP

Related Classes of org.infoglue.cms.util.ConstraintExceptionBuffer

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.