Java Doc for RecurrenceRule.java in  » ERP-CRM-Financial » SourceTap-CRM » org » ofbiz » service » calendar » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » ERP CRM Financial » SourceTap CRM » org.ofbiz.service.calendar 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.ofbiz.service.calendar.RecurrenceRule

RecurrenceRule
public class RecurrenceRule (Code)
Recurrence Rule Object
author:
   Andy Zeneski
version:
   $Revision: 1.5 $
since:
   2.0


Field Summary
final public static  intDAILY
    
final public static  intHOURLY
    
final public static  intMAX_HR
    
final public static  intMAX_MIN
    
final public static  intMAX_MTH
    
final public static  intMAX_MTH_DAY
    
final public static  intMAX_SEC
    
final public static  intMAX_WEEK_NO
    
final public static  intMAX_YEAR_DAY
    
final public static  intMINUTELY
    
final public static  intMIN_HR
    
final public static  intMIN_MIN
    
final public static  intMIN_MTH
    
final public static  intMIN_MTH_DAY
    
final public static  intMIN_SEC
    
final public static  intMIN_WEEK_NO
    
final public static  intMIN_YEAR_DAY
    
final public static  intMONTHLY
    
final public static  intSECONDLY
    
final public static  intWEEKLY
    
final public static  intYEARLY
    
protected  ListbyDayList
    
protected  ListbyHourList
    
protected  ListbyMinuteList
    
protected  ListbyMonthDayList
    
protected  ListbyMonthList
    
protected  ListbySecondList
    
protected  ListbySetPosList
    
protected  ListbyWeekNoList
    
protected  ListbyYearDayList
    
final public static  Stringmodule
    
protected  GenericValuerule
    

Constructor Summary
public  RecurrenceRule(GenericValue rule)
     Creates a new RecurrenceRule object from a RecurrenceInfo entity.

Method Summary
public  longgetCount()
     Get the number of times this recurrence will run (-1 until end time).
public  longgetEndTime()
     Gets the end time of the recurrence rule or 0 if none.
public  intgetFrequency()
     Returns the frequency of this recurrence.
public  StringgetFrequencyName()
     Returns the frequency name of the recurrence.
public  longgetInterval()
     Returns the interval of the frequency.
public  intgetIntervalInt()
     Returns the interval of the frequency as an int.
public  voidinit()
     Initializes the rules for this RecurrenceInfo object.
public  booleanisValid(Date startDate, Date date)
    
public  booleanisValid(long startTime, long dateTime)
    
public static  RecurrenceRulemakeRule(GenericDelegator delegator, int frequency, int interval, int count)
    
public static  RecurrenceRulemakeRule(GenericDelegator delegator, int frequency, int interval, long endTime)
    
public static  RecurrenceRulemakeRule(GenericDelegator delegator, int frequency, int interval, int count, long endTime)
    
public  longnext(long startTime, long fromTime, long currentCount)
     Returns the next recurrence of this rule.
Parameters:
  startTime - The time this recurrence first began.
Parameters:
  fromTime - The time to base the next recurrence on.
Parameters:
  currentCount - The total number of times the recurrence has run.
public  StringprimaryKey()
    
public  voidremove()
     Removes this rule from the persistant store.

Field Detail
DAILY
final public static int DAILY(Code)
Frequency DAILY



HOURLY
final public static int HOURLY(Code)
Frequency HOURLY



MAX_HR
final public static int MAX_HR(Code)



MAX_MIN
final public static int MAX_MIN(Code)



MAX_MTH
final public static int MAX_MTH(Code)



MAX_MTH_DAY
final public static int MAX_MTH_DAY(Code)



MAX_SEC
final public static int MAX_SEC(Code)



MAX_WEEK_NO
final public static int MAX_WEEK_NO(Code)



MAX_YEAR_DAY
final public static int MAX_YEAR_DAY(Code)



MINUTELY
final public static int MINUTELY(Code)
Frequency MINUTELY



MIN_HR
final public static int MIN_HR(Code)



MIN_MIN
final public static int MIN_MIN(Code)



MIN_MTH
final public static int MIN_MTH(Code)



MIN_MTH_DAY
final public static int MIN_MTH_DAY(Code)



MIN_SEC
final public static int MIN_SEC(Code)



MIN_WEEK_NO
final public static int MIN_WEEK_NO(Code)



MIN_YEAR_DAY
final public static int MIN_YEAR_DAY(Code)



MONTHLY
final public static int MONTHLY(Code)
Frequency MONTHLY



SECONDLY
final public static int SECONDLY(Code)
Frequency SECONDLY



WEEKLY
final public static int WEEKLY(Code)
Frequency WEEKLY



YEARLY
final public static int YEARLY(Code)
Frequency YEARLY



byDayList
protected List byDayList(Code)



byHourList
protected List byHourList(Code)



byMinuteList
protected List byMinuteList(Code)



byMonthDayList
protected List byMonthDayList(Code)



byMonthList
protected List byMonthList(Code)



bySecondList
protected List bySecondList(Code)



bySetPosList
protected List bySetPosList(Code)



byWeekNoList
protected List byWeekNoList(Code)



byYearDayList
protected List byYearDayList(Code)



module
final public static String module(Code)



rule
protected GenericValue rule(Code)




Constructor Detail
RecurrenceRule
public RecurrenceRule(GenericValue rule) throws RecurrenceRuleException(Code)
Creates a new RecurrenceRule object from a RecurrenceInfo entity.
Parameters:
  rule - GenericValue object defining this rule.




Method Detail
getCount
public long getCount()(Code)
Get the number of times this recurrence will run (-1 until end time). long The number of time this recurrence will run.



getEndTime
public long getEndTime()(Code)
Gets the end time of the recurrence rule or 0 if none. long The timestamp of the end time for this rule or 0 for none.



getFrequency
public int getFrequency()(Code)
Returns the frequency of this recurrence. int The reference value for the frequency



getFrequencyName
public String getFrequencyName()(Code)
Returns the frequency name of the recurrence. String The name of this frequency.



getInterval
public long getInterval()(Code)
Returns the interval of the frequency. long Interval value



getIntervalInt
public int getIntervalInt()(Code)
Returns the interval of the frequency as an int. The interval of this frequency as an integer.



init
public void init() throws RecurrenceRuleException(Code)
Initializes the rules for this RecurrenceInfo object.
throws:
  RecurrenceRuleException -



isValid
public boolean isValid(Date startDate, Date date)(Code)
Tests the date to see if it falls within the rules
Parameters:
  startDate - date object to test True if the date is within the rules



isValid
public boolean isValid(long startTime, long dateTime)(Code)
Tests the date to see if it falls within the rules
Parameters:
  startTime - date object to test True if the date is within the rules



makeRule
public static RecurrenceRule makeRule(GenericDelegator delegator, int frequency, int interval, int count) throws RecurrenceRuleException(Code)



makeRule
public static RecurrenceRule makeRule(GenericDelegator delegator, int frequency, int interval, long endTime) throws RecurrenceRuleException(Code)



makeRule
public static RecurrenceRule makeRule(GenericDelegator delegator, int frequency, int interval, int count, long endTime) throws RecurrenceRuleException(Code)



next
public long next(long startTime, long fromTime, long currentCount)(Code)
Returns the next recurrence of this rule.
Parameters:
  startTime - The time this recurrence first began.
Parameters:
  fromTime - The time to base the next recurrence on.
Parameters:
  currentCount - The total number of times the recurrence has run. long The next recurrence as a long.



primaryKey
public String primaryKey()(Code)



remove
public void remove() throws RecurrenceRuleException(Code)
Removes this rule from the persistant store.
throws:
  RecurrenceRuleException -



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.