org.databene.benerator.script
Class TimestampArithmetic

java.lang.Object
  extended by org.databene.benerator.script.TypeArithmetic<java.sql.Timestamp>
      extended by org.databene.benerator.script.TimestampArithmetic

public class TimestampArithmetic
extends TypeArithmetic<java.sql.Timestamp>

TypeArithmetic implementation for the Date type.

Created at 06.10.2009 10:31:14

Since:
0.6.0
Author:
Volker Bergmann

Field Summary
 
Fields inherited from class org.databene.benerator.script.TypeArithmetic
baseType
 
Constructor Summary
TimestampArithmetic()
           
 
Method Summary
 java.sql.Timestamp add(java.lang.Object summand1, java.lang.Object summand2)
           
 java.lang.Object divide(java.lang.Object quotient, java.lang.Object divisor)
           
 java.lang.Object multiply(java.lang.Object factor1, java.lang.Object factor2)
           
 java.lang.Object subtract(java.lang.Object minuend, java.lang.Object subtrahend)
           
 
Methods inherited from class org.databene.benerator.script.TypeArithmetic
getBaseType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimestampArithmetic

public TimestampArithmetic()
Method Detail

add

public java.sql.Timestamp add(java.lang.Object summand1,
                              java.lang.Object summand2)
Specified by:
add in class TypeArithmetic<java.sql.Timestamp>

subtract

public java.lang.Object subtract(java.lang.Object minuend,
                                 java.lang.Object subtrahend)
Specified by:
subtract in class TypeArithmetic<java.sql.Timestamp>

multiply

public java.lang.Object multiply(java.lang.Object factor1,
                                 java.lang.Object factor2)
Specified by:
multiply in class TypeArithmetic<java.sql.Timestamp>

divide

public java.lang.Object divide(java.lang.Object quotient,
                               java.lang.Object divisor)
Specified by:
divide in class TypeArithmetic<java.sql.Timestamp>


Copyright © 2011. All Rights Reserved.