Examples of MDate


Examples of de.mhus.lib.MDate

  }

  @Override
  public MDate getDate(String name) {
    if ("modified".equals(name)) {
      return new MDate(file.lastModified(),TimeZone.getDefault());
    } else
      return null;
  }
View Full Code Here

Examples of de.mhus.lib.MDate

      con.getStatement("insert2").execute(attr);
      rows++;
     
      attr.put("text", "abc'");
      attr.put("int", Integer.MIN_VALUE);
      attr.put("date", new MDate());
      attr.put("bool", false);
      attr.put("blob", new ByteArrayInputStream("adsjansdjakdjajkhdkjhajkdhkjahdkjakjdkad".getBytes()));
      attr.put("float", Float.MIN_VALUE);
      attr.put("double", Double.MIN_VALUE);
      attr.put("long", Long.MIN_VALUE);
View Full Code Here

Examples of de.mhus.lib.MDate

    if (schemaPersistence != null) {
      String dbVersion = schemaPersistence.get(DATABASE_VERSION);
      if (dbVersion == null) {
        // init persistence
        schemaPersistence.set(DATABASE_VERSION,"0");
        schemaPersistence.set(DATABASE_CREATED,new MDate().toString());
        schemaPersistence.set(DATABASE_MANAGER_VERSION,MANAGER_VERSION);
        schema.doInitProperties(this);
       
        dbVersion = schemaPersistence.get(DATABASE_VERSION);
      }
View Full Code Here

Examples of de.mhus.lib.MDate

    return sth.getConnection();
  }

  @Override
  public MDate getMDate(String columnLabel) throws Exception {
    return new MDate(getTimestamp(columnLabel));
  }
View Full Code Here

Examples of de.mhus.lib.MDate

    else
    if ("double".equals(type))
      out.append(compiler.valueToString(MCast.todouble(value.toString(),0)));
    else
    if ("date".equals(type))
      out.append( compiler.toSqlDateValue(new MDate( value ) ) );
    else
    if ("raw".equals(type))
      out.append(compiler.valueToString(value));
    else
    if ("bool".equals(type))
View Full Code Here

Examples of de.mhus.lib.MDate

    return getMDate(columnLabel).toSqlDate();
  }

  @Override
  public MDate getMDate(String columnLabel) throws Exception {
    return new MDate(getString(columnLabel));
  }
View Full Code Here

Examples of de.mhus.lib.MDate

  }

  public void setDate(Date value) {
    if (!element.getFormControl().validate(element,this,value)) return;
    try {
      dataSource.setDate(name, new MDate(value));
      element.setErrorMessageDirect(null);
    } catch (DataValidationException dve) {
      dve.setErroMessage(element);
    } catch (Exception e) {
      element.setErrorMessageDirect(e.toString());
View Full Code Here

Examples of de.mhus.lib.MDate

    }
  }

  public MDate getDate(String name) {
    try {
      return new MDate(value.getDate());
    } catch (Exception e) {
      return null;
    }
  }
View Full Code Here

Examples of de.mhus.lib.MDate

        break;
      case DOUBLE:
        setDouble(d.getName(), value == null ? 0 : MCast.todouble(value.toString(), 0));
        break;
      case DATETIME:
        setDate(d.getName(), value == null ? null : new MDate(value) );
        break;
      case BOOLEAN:
        setBoolean(d.getName(), value == null ? false : MCast.toboolean(value.toString(), false) );
        break;
      case TEXT:
View Full Code Here

Examples of de.mhus.lib.MDate

  }

  @Override
  public MDate getDate(String name) {
    try {
      return new MDate( node.getProperty(name).getDate());
    } catch (Exception e) {
      return null;
    }
  }
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.