Package railo.runtime.timer

Examples of railo.runtime.timer.Stopwatch.start()


 
  private void typeColumns(DatabaseMetaData metaData) throws PageException, SQLException {
    required("table",table);
   
    Stopwatch stopwatch=new Stopwatch(Stopwatch.UNIT_NANO);
    stopwatch.start();

    table=setCase(metaData, table);
    pattern=setCase(metaData, pattern);
    if(StringUtil.isEmpty(pattern,true)) pattern=null;
    String schema=null;
View Full Code Here


  }

  private void typeDBNames(DatabaseMetaData metaData) throws PageException, SQLException {

    Stopwatch stopwatch=new Stopwatch(Stopwatch.UNIT_NANO);
    stopwatch.start();
       
        railo.runtime.type.Query catalogs = new QueryImpl(metaData.getCatalogs(),"query",pageContext.getTimeZone());
        railo.runtime.type.Query scheme = new QueryImpl(metaData.getSchemas(),"query",pageContext.getTimeZone());
       
        Pattern p=null;
View Full Code Here

  private void typeForeignKeys(DatabaseMetaData metaData) throws PageException, SQLException {
    required("table",table);
   
    Stopwatch stopwatch=new Stopwatch(Stopwatch.UNIT_NANO);
    stopwatch.start();
        table=setCase(metaData, table);
        int index=table.indexOf('.');
    String schema=null;
        if(index>0) {
      schema=table.substring(0,index);
View Full Code Here

  private void typeIndex(DatabaseMetaData metaData) throws PageException, SQLException {
    required("table",table);
   
    Stopwatch stopwatch=new Stopwatch(Stopwatch.UNIT_NANO);
    stopwatch.start();
       
    table=setCase(metaData, table);
        int index=table.indexOf('.');
    String schema=null;
        if(index>0) {
View Full Code Here

    pageContext.setVariable(name, qry);
  }

  private void typeProcedures(DatabaseMetaData metaData) throws SQLException, PageException {
    Stopwatch stopwatch=new Stopwatch(Stopwatch.UNIT_NANO);
    stopwatch.start();
       
    String schema=null;
    pattern=setCase(metaData, pattern);
    if(StringUtil.isEmpty(pattern,true)) {
      pattern=null;
View Full Code Here

 
  private void typeProcedureColumns(DatabaseMetaData metaData) throws SQLException, PageException {
    required("procedure",procedure);
   
    Stopwatch stopwatch=new Stopwatch(Stopwatch.UNIT_NANO);
    stopwatch.start();
   
    procedure=setCase(metaData, procedure);   
    pattern=setCase(metaData, pattern);
    if(StringUtil.isEmpty(pattern,true)) pattern=null;
    String schema=null;
View Full Code Here

  private void typeTables(DatabaseMetaData metaData) throws PageException, SQLException {

   
   
    Stopwatch stopwatch=new Stopwatch(Stopwatch.UNIT_NANO);
    stopwatch.start();
       
    pattern=setCase(metaData, pattern);
   
        railo.runtime.type.Query qry = new QueryImpl(
            metaData.getTables(dbname, null, pattern, null),
View Full Code Here

  }

  private void typeVersion(DatabaseMetaData metaData) throws PageException, SQLException {

    Stopwatch stopwatch=new Stopwatch(Stopwatch.UNIT_NANO);
    stopwatch.start();
   
    Key[] columns=new Key[]{DATABASE_PRODUCTNAME,DATABASE_VERSION,DRIVER_NAME,DRIVER_VERSION,JDBC_MAJOR_VERSION,JDBC_MINOR_VERSION};
    String[] types=new String[]{"VARCHAR","VARCHAR","VARCHAR","VARCHAR","DOUBLE","DOUBLE"};
   
    railo.runtime.type.Query qry=new QueryImpl(columns,types,1,"query");
View Full Code Here

  }
 
  private void typeUsers(DatabaseMetaData metaData) throws PageException, SQLException {
   
    Stopwatch stopwatch=new Stopwatch(Stopwatch.UNIT_NANO);
    stopwatch.start();
       
    checkTable(metaData);
    ResultSet result = metaData.getSchemas();
    Query qry = new QueryImpl(result,"query",pageContext.getTimeZone());
   
View Full Code Here

     * @throws PageException
     * @throws PageException
     */
    public Query execute(PageContext pc, SQL sql, int maxrows, int fetchsize, int timeout) throws PageException {
        Stopwatch stopwatch=new Stopwatch(Stopwatch.UNIT_NANO);
    stopwatch.start();
    String prettySQL =null;
    Selects selects=null;
   
    // First Chance
        try {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.