Examples of asDate()


Examples of com.workingdogs.village.Value.asDate()

                    {
                        obj2 = value.asBytes();
                    }
                    if (value.isDate())
                    {
                        obj2 = value.asDate();
                    }
                    if (value.isShort())
                    {
                        obj2 = new Short(value.asShort());
                    }
View Full Code Here

Examples of com.workingdogs.village.Value.asDate()

                    {
                        obj2 = value.asBytes();
                    }
                    if (value.isDate())
                    {
                        obj2 = value.asDate();
                    }
                    if (value.isShort())
                    {
                        obj2 = new Short(value.asShort());
                    }
View Full Code Here

Examples of com.workingdogs.village.Value.asDate()

                    Object obj2 = null;
                    Value value = row.getValue(j+1);
                    if (value.isByte()) obj2 = new Byte(value.asByte());
                    if (value.isBigDecimal()) obj2 = value.asBigDecimal();
                    if (value.isBytes()) obj2 = value.asBytes();
                    if (value.isDate()) obj2 = value.asDate();
                    if (value.isShort()) obj2 = new Short(value.asShort());
                    if (value.isInt()) obj2 = new Integer(value.asInt());
                    if (value.isLong()) obj2 = new Long(value.asLong());
                    if (value.isDouble()) obj2 = new Double(value.asDouble());
                    if (value.isFloat()) obj2 = new Float(value.asFloat());
View Full Code Here

Examples of com.workingdogs.village.Value.asDate()

                Object obj2 = null;
                Value value = row.getValue(j+1);
                if (value.isByte()) obj2 = new Byte(value.asByte());
                if (value.isBigDecimal()) obj2 = value.asBigDecimal();
                if (value.isBytes()) obj2 = value.asBytes();
                if (value.isDate()) obj2 = value.asDate();
                if (value.isShort()) obj2 = new Short(value.asShort());
                if (value.isInt()) obj2 = new Integer(value.asInt());
                if (value.isLong()) obj2 = new Long(value.asLong());
                if (value.isDouble()) obj2 = new Double(value.asDouble());
                if (value.isFloat()) obj2 = new Float(value.asFloat());
View Full Code Here

Examples of com.workingdogs.village.Value.asDate()

                    Object obj2 = null;
                    Value value = row.getValue(j+1);
                    if (value.isByte()) obj2 = new Byte(value.asByte());
                    if (value.isBigDecimal()) obj2 = value.asBigDecimal();
                    if (value.isBytes()) obj2 = value.asBytes();
                    if (value.isDate()) obj2 = value.asDate();
                    if (value.isShort()) obj2 = new Short(value.asShort());
                    if (value.isInt()) obj2 = new Integer(value.asInt());
                    if (value.isLong()) obj2 = new Long(value.asLong());
                    if (value.isDouble()) obj2 = new Double(value.asDouble());
                    if (value.isFloat()) obj2 = new Float(value.asFloat());
View Full Code Here

Examples of isi.pasco2.parser.time.FileTime.asDate()

    long high = 29744990;
    FileTime ft = new FileTime(low, high);
    long millis = ft.getTimeAsMillis();
    //assertEquals(1130902272657L, millis);
   
    Date d = ft.asDate();
    assertEquals("Wed Nov 02 13:31:12 EST 2005", d.toString());
    assertEquals("2005-11-02T03:31:12.657Z", ft.toString());
  }
 
  public void testBitStuff() {
View Full Code Here

Examples of net.helipilot50.stocktrade.framework.BooleanData.asDate()

            } else if (pValue instanceof BooleanData) {
              BooleanData value = (BooleanData) pValue;
              cachedRowSet.updateBoolean(pColOrdinal, value.getBooleanValue());
            } else if (pValue instanceof DateTimeData) {
              DateTimeData value = (DateTimeData) pValue;
              cachedRowSet.updateDate(pColOrdinal, new Date(value.asDate().getTime()));
            } else if (pValue instanceof BinaryData) {
              BinaryData value = (BinaryData) pValue;
              cachedRowSet.updateBinaryStream(pColOrdinal, new ByteArrayInputStream(value.getValue()), value.getActualSize());
            }
          } catch (SQLException e) {
View Full Code Here

Examples of net.helipilot50.stocktrade.framework.DateTimeData.asDate()

            } else if (pValue instanceof BooleanData) {
              BooleanData value = (BooleanData) pValue;
              cachedRowSet.updateBoolean(pColOrdinal, value.getBooleanValue());
            } else if (pValue instanceof DateTimeData) {
              DateTimeData value = (DateTimeData) pValue;
              cachedRowSet.updateDate(pColOrdinal, new Date(value.asDate().getTime()));
            } else if (pValue instanceof BinaryData) {
              BinaryData value = (BinaryData) pValue;
              cachedRowSet.updateBinaryStream(pColOrdinal, new ByteArrayInputStream(value.getValue()), value.getActualSize());
            }
          } catch (SQLException e) {
View Full Code Here

Examples of net.helipilot50.stocktrade.framework.DateTimeData.asDate()

    }

    protected String dataValueToString(DataValue value)
    {
        DateTimeData dateTimeValue = (DateTimeData) value;
        return format.format(dateTimeValue.asDate());
    }
}
View Full Code Here

Examples of net.helipilot50.stocktrade.framework.DateTimeNullable.asDate()

         * if it is set to the beginning of the Gregorian calendar
         * the mask should contain '*'
         */
        if (DateTimeNullable.class.isAssignableFrom(vc)){
          DateTimeNullable dtn = (DateTimeNullable)value;
          if (dtn.asDate().getTime()==DateTimeData.GREGORIAN_START_AS_LONG){
            return super.valueToString(null);
          }
        }
       
        if (dataValue.isNullable() && dataValue.isNull()) {
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.