Package railo.runtime.exp

Examples of railo.runtime.exp.DatabaseException


        this.type=type;
    }

    @Override
    public Object remove(int row) throws DatabaseException {
        throw new DatabaseException("can't remove "+columnName+" at row "+row+" value from Query",null,null,null);
    }
View Full Code Here


        return query.getAt(columnName,row,defaultValue);
    }

    @Override
    public Object set(int row, Object value) throws DatabaseException {
        throw new DatabaseException("can't change "+columnName+" value from Query",null,null,null);
    }
View Full Code Here

        return k;
    }

  @Override
  public Object remove(Collection.Key key) throws PageException {
    throw new DatabaseException("can't remove "+key+" from Query",null,null,null);
  }
View Full Code Here

        return get(query.getCurrentrow(pc.getId()),defaultValue);
    }

    @Override
    public Object removeRow(int row) throws DatabaseException {
        throw new DatabaseException("can't remove row from Query",null,null,null);
    }
View Full Code Here

  public Object get(PageContext pc, Collection.Key key) throws PageException {
    int row=Caster.toIntValue(key.getString(),Integer.MIN_VALUE);
    if(row==Integer.MIN_VALUE) {
      Object child=getChildElement(pc,key,NullSupportHelper.NULL());
        if(child!=NullSupportHelper.NULL()) return child;
            throw new DatabaseException("key ["+key+"] not found",null,null,null);
        }
      return QueryUtil.getValue(this,row);
  }
View Full Code Here

  }

    @Override
  public synchronized Object set(int row, Object value) throws DatabaseException {
        // query.disconnectCache();
        if(row<1) throw new DatabaseException("invalid row number ["+row+"]","valid row numbers a greater or equal to one",null,null);
      if(row>size) {
        if(size==0)throw new DatabaseException("cannot set a value to a empty query, you first have to add a row",null,null,null);
        throw new DatabaseException("invalid row number ["+row+"]","valid row numbers goes from 1 to "+size,null,null);
      }
     
      value=reDefineType(value);
      data[row-1]=value;
      return value;
View Full Code Here

  }

    public synchronized Object removeRow(int row) throws DatabaseException {
        // query.disconnectCache();
        if(row<1 || row>size)
            throw new DatabaseException("invalid row number ["+row+"]","valid rows goes from 1 to "+size,null,null);
        Object o=data[row-1];
        for(int i=row;i<size;i++) {
            data[i-1]=data[i];
        }
        size--;
View Full Code Here

    throwNotAllowedToAlter();
    //setEL(index+1, element);
  }

  private void throwNotAllowedToAlter() {
    throw new PageRuntimeException(new DatabaseException(
        "Query columns do not support methods that would alter the structure of a query column"
        ,"you must use an analogous method on the query"
        ,null
        ,null));
   
View Full Code Here

  public Object get(Key key) throws PageException {
    int row=Caster.toIntValue(key,Integer.MIN_VALUE);
    if(row==Integer.MIN_VALUE) {
      Object child=getChildElement(key,null);
        if(child!=null) return child;
            throw new DatabaseException("key ["+key+"] not found",null,null,null);
        }
      return get(row);
  }
View Full Code Here

    //stopwatch.start();
    long start=System.nanoTime();
      try {
            fillResult(null,result,maxrow,false,false,tz);
        } catch (SQLException e) {
            throw new DatabaseException(e,null);
        } catch (IOException e) {
            throw Caster.toPageException(e);
        }
    exeTime=System.nanoTime()-start;
    }
View Full Code Here

TOP

Related Classes of railo.runtime.exp.DatabaseException

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.