Package com.activesession.exceptions

Examples of com.activesession.exceptions.ActiveSessionException


      if(connect != null){
        connect.close();
      }
    } catch (SQLException e) {
      rollback();
      throw new ActiveSessionException(e.getMessage(), e);
    }
  }
View Full Code Here


        prepareteState.close();
      }
      close();
    } catch (Exception ex) {
      rollback();
      throw new ActiveSessionException(ex.getMessage(), ex);
    }
  }
View Full Code Here

  }
  
  protected String getTableName(Object entity) throws ClassNotFoundException {
    String tableName = getEntityTableName(entity);
    if (StringUtils.isBlank(tableName)) {
      throw new ActiveSessionException(ErrorMessageEnum.ILLIGAL_TABLE_ANNOTTAION_EXCEPTION);   
    }
    return tableName;
  }
View Full Code Here

    public boolean isTableExist(String tableName){
        DatabaseMetaData dbm = null;
        boolean result = false;
        try {
            if (connect == null ) {
                throw new ActiveSessionException(ErrorMessageEnum.CONNECTION_IS_INVALID);
            }

            dbm = connect.getMetaData();
            ResultSet tables = dbm.getTables(null, null, tableName, null);
            result = (tables.next()) ? true : false;
        } catch (SQLException e) {
            rollback();
            throw new ActiveSessionException(e.getMessage(), e);
        }
        return result;
    }
View Full Code Here

            createTableBuilder.deleteCharAt(createTableBuilder.length() - 1);
            String query = "CREATE TABLE " + tableName + "( " + createTableBuilder.toString() + " )";

            NativeQueryExecutor(query);
        } catch (Exception e) {
            throw new ActiveSessionException(e.getMessage(), e);
        }
    }
View Full Code Here

TOP

Related Classes of com.activesession.exceptions.ActiveSessionException

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.