Package com.baasbox.dao.exception

Examples of com.baasbox.dao.exception.CollectionAlreadyExistsException


   */
  public ODocument create(String collectionName) throws OpenTransactionException, CollectionAlreadyExistsException, InvalidCollectionException, InvalidModelException, Throwable {
    if (DbHelper.isInTransaction()) throw new OpenTransactionException("Cannot create a collection within an open transaction");
    if (Logger.isTraceEnabled()) Logger.trace("Method Start");
    try {
      if (existsCollection(collectionName)) throw new CollectionAlreadyExistsException("Collection " + collectionName + " already exists");
    }catch (SqlInjectionException e){
      throw new InvalidCollectionException(e);
    }
    if (Character.isDigit(collectionName.charAt(0))){
      throw new InvalidCollectionException("Collection names cannot start by a digit");
View Full Code Here

TOP

Related Classes of com.baasbox.dao.exception.CollectionAlreadyExistsException

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.