Package com.dbxml.util

Examples of com.dbxml.util.dbXMLException


public abstract class SingletonBase extends CommandBase {
   public final void process() throws dbXMLException {
      CollectionClient col = (CollectionClient)cl.getProperty(CommandLine.COLLECTION);
      if ( col == null )
         throw new dbXMLException("Collection context required");

      if ( cl.hasMoreTokens() ) {
         String argument = cl.getNextToken();
         process(col, argument);
      }
      else
         throw new dbXMLException(getArgumentName()+" is required");
   }
View Full Code Here


   }

   public void setConfig(Configuration config) throws dbXMLException {
      super.setConfig(config);
      if ( Database.getInstance() != null )
         throw new dbXMLException("Only one Database instance allowed per Server");
   }
View Full Code Here

         root.appendChild(doc.createElement("extensions"));

         return col.createCollection(name, doc) != null;
      }
      catch ( Exception e ) {
         throw new dbXMLException(e);
      }
   }
View Full Code Here

      canonicalName = (String)info.get(ContentProxy.CANONICAL_NAME);
      Integer i = (Integer)info.get(ContentProxy.CONTENT_TYPE);
      if ( i != null )
         type = i.intValue();
      else
         throw new dbXMLException("This path does not point to a Document");

   }
View Full Code Here

      if ( parent == null ) {
         try {
            parent = new CollectionClientImpl(dbxmlClient, colName);
         }
         catch ( Exception e ) {
            throw new dbXMLException(e);
         }
      }
      return parent;
   }
View Full Code Here

      }
      catch ( dbXMLException e ) {
         throw e;
      }
      catch ( Exception e ) {
         throw new dbXMLException(e);
      }
   }
View Full Code Here

      }
      catch ( dbXMLException e ) {
         throw e;
      }
      catch ( Exception e ) {
         throw new dbXMLException(e);
      }
   }
View Full Code Here

TOP

Related Classes of com.dbxml.util.dbXMLException

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.