net.sourceforge.blogentis.utils
Class DateSpecification

java.lang.Object
  extended bynet.sourceforge.blogentis.utils.DateSpecification

public class DateSpecification
extends java.lang.Object

Author:
abas

Field Summary
protected  int day
           
protected  java.util.Calendar endCal
           
protected  int month
           
protected  java.util.Calendar startCal
           
protected  int year
           
 
Constructor Summary
DateSpecification(java.util.Calendar c)
           
DateSpecification(java.util.Date date)
           
DateSpecification(int year)
           
DateSpecification(int year, int month)
           
DateSpecification(int year, int month, int day)
           
 
Method Summary
 void addToCriteria(org.apache.torque.util.Criteria c, java.lang.String tableName)
           
 int getDay()
           
 java.util.Calendar getEnd()
           
 int getMonth()
           
 DateSpecification getNext()
           
 DateSpecification getPrev()
           
 java.util.Calendar getStart()
           
 int getYear()
           
 boolean hasDay()
           
 boolean hasMonth()
           
 void setDay(int day)
           
 void setMonth(int month)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

year

protected int year

month

protected int month

day

protected int day

startCal

protected java.util.Calendar startCal

endCal

protected java.util.Calendar endCal
Constructor Detail

DateSpecification

public DateSpecification(java.util.Calendar c)

DateSpecification

public DateSpecification(int year)

DateSpecification

public DateSpecification(int year,
                         int month)

DateSpecification

public DateSpecification(int year,
                         int month,
                         int day)

DateSpecification

public DateSpecification(java.util.Date date)
Method Detail

getDay

public int getDay()

getMonth

public int getMonth()

getYear

public int getYear()

hasMonth

public boolean hasMonth()

hasDay

public boolean hasDay()

getStart

public java.util.Calendar getStart()

getEnd

public java.util.Calendar getEnd()

getNext

public DateSpecification getNext()

getPrev

public DateSpecification getPrev()

setMonth

public void setMonth(int month)

setDay

public void setDay(int day)

addToCriteria

public void addToCriteria(org.apache.torque.util.Criteria c,
                          java.lang.String tableName)


Copyright © 2003-2004 SourceForge.net. All Rights Reserved.