Java Doc for GregorianCalendar.java in  » Database-ORM » JPOX » org » jpox » sco » 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 » Database ORM » JPOX » org.jpox.sco 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.util.GregorianCalendar
   org.jpox.sco.GregorianCalendar

All known Subclasses:   org.jpox.sco.GregorianCalendarJDK14,
GregorianCalendar
public class GregorianCalendar extends java.util.GregorianCalendar implements SCO(Code)
A mutable second-class GregorianCalendar object.
version:
   $Revision: 1.27 $



Constructor Summary
public  GregorianCalendar(StateManager ownerSM, String fieldName)
     Creates a GregorianCalendar object that represents the time at which it was allocated.

Method Summary
public  voidadd(int field, int amount)
    
public  voidattachCopy(Object value)
     Method to return an attached version for the passed StateManager and field, using the passed value.
public  Objectclone()
     Creates and returns a copy of this object.

Mutable second-class Objects are required to provide a public clone method in order to allow for copying PersistenceCapable objects.

public  ObjectdetachCopy(FetchPlanState state)
     Method to return a detached copy of the value object.
public  StringgetFieldName()
    
public  ObjectgetOwner()
     Accessor for the owner.
public  ObjectgetValue()
     Accessor for the unwrapped value that we are wrapping.
public  voidinitialise()
     Method to initialise the SCO for use.
public  voidinitialise(Object o, boolean forInsert, boolean forUpdate)
     Method to initialise the SCO from an existing value.
public  voidmakeDirty()
    
public  voidroll(int field, boolean up)
     Method to roll a field by 1.
public  voidroll(int field, int amount)
    
public  voidsetFirstDayOfWeek(int value)
    
public  voidsetGregorianChange(Date date)
    
public  voidsetLenient(boolean lenient)
    
public  voidsetMinimalDaysInFirstWeek(int value)
    
public  voidsetTimeInMillis(long millis)
    
public  voidsetTimeZone(TimeZone value)
    
public  voidunsetOwner()
     Utility to unset the owner.
protected  ObjectwriteReplace()
     The writeReplace method is called when ObjectOutputStream is preparing to write the object to the stream.


Constructor Detail
GregorianCalendar
public GregorianCalendar(StateManager ownerSM, String fieldName)(Code)
Creates a GregorianCalendar object that represents the time at which it was allocated. Assigns owning object and field name.
Parameters:
  ownerSM - the owning object
Parameters:
  fieldName - the owning field name




Method Detail
add
public void add(int field, int amount)(Code)
Method to add an amount to a field
Parameters:
  field - The field
Parameters:
  amount - The amount to add



attachCopy
public void attachCopy(Object value)(Code)
Method to return an attached version for the passed StateManager and field, using the passed value.
Parameters:
  value - The new value



clone
public Object clone()(Code)
Creates and returns a copy of this object.

Mutable second-class Objects are required to provide a public clone method in order to allow for copying PersistenceCapable objects. In contrast to Object.clone(), this method must not throw a CloneNotSupportedException. A clone of the object




detachCopy
public Object detachCopy(FetchPlanState state)(Code)
Method to return a detached copy of the value object.
Parameters:
  state - State for detachment process The detached copy



getFieldName
public String getFieldName()(Code)
Accessor for the field name The field name



getOwner
public Object getOwner()(Code)
Accessor for the owner. The owner



getValue
public Object getValue()(Code)
Accessor for the unwrapped value that we are wrapping. The unwrapped value



initialise
public void initialise()(Code)
Method to initialise the SCO for use.



initialise
public void initialise(Object o, boolean forInsert, boolean forUpdate)(Code)
Method to initialise the SCO from an existing value.
Parameters:
  o - The Object
Parameters:
  forInsert - Whether the object needs inserting in the datastore with this value
Parameters:
  forUpdate - Whether to update the datastore with this value



makeDirty
public void makeDirty()(Code)
Utility to mark the object as dirty



roll
public void roll(int field, boolean up)(Code)
Method to roll a field by 1.
Parameters:
  field - The field
Parameters:
  up - The whether to move it up



roll
public void roll(int field, int amount)(Code)
Method to roll the value of a field
Parameters:
  field - The field
Parameters:
  amount - The amount to roll by



setFirstDayOfWeek
public void setFirstDayOfWeek(int value)(Code)
Method to set the first day of the week
Parameters:
  value - The first day of the week



setGregorianChange
public void setGregorianChange(Date date)(Code)
Method to set the gregorian cal change date
Parameters:
  date - The new change date



setLenient
public void setLenient(boolean lenient)(Code)
Method to set the lenient setting
Parameters:
  lenient - Whether it is lenient



setMinimalDaysInFirstWeek
public void setMinimalDaysInFirstWeek(int value)(Code)
Method to set the minimal days in the week
Parameters:
  value - The minimal days in the week



setTimeInMillis
public void setTimeInMillis(long millis)(Code)
Method to set the time in milliseconds
Parameters:
  millis - The new time in millisecs



setTimeZone
public void setTimeZone(TimeZone value)(Code)
Method to set the timezone
Parameters:
  value - The new timezone



unsetOwner
public void unsetOwner()(Code)
Utility to unset the owner.



writeReplace
protected Object writeReplace() throws ObjectStreamException(Code)
The writeReplace method is called when ObjectOutputStream is preparing to write the object to the stream. The ObjectOutputStream checks whether the class defines the writeReplace method. If the method is defined, the writeReplace method is called to allow the object to designate its replacement in the stream. The object returned should be either of the same type as the object passed in or an object that when read and resolved will result in an object of a type that is compatible with all references to the object. the replaced object
throws:
  ObjectStreamException -



Fields inherited from java.util.GregorianCalendar
final public static int AD(Code)(Java Doc)
final public static int BC(Code)(Java Doc)

Methods inherited from java.util.GregorianCalendar
public void add(int field, int amount)(Code)(Java Doc)
public Object clone()(Code)(Java Doc)
protected void computeFields()(Code)(Java Doc)
protected void computeTime()(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
public int getActualMaximum(int field)(Code)(Java Doc)
public int getActualMinimum(int field)(Code)(Java Doc)
public int getGreatestMinimum(int field)(Code)(Java Doc)
final public Date getGregorianChange()(Code)(Java Doc)
public int getLeastMaximum(int field)(Code)(Java Doc)
public int getMaximum(int field)(Code)(Java Doc)
public int getMinimum(int field)(Code)(Java Doc)
public TimeZone getTimeZone()(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
public boolean isLeapYear(int year)(Code)(Java Doc)
public void roll(int field, boolean up)(Code)(Java Doc)
public void roll(int field, int amount)(Code)(Java Doc)
public void setGregorianChange(Date date)(Code)(Java Doc)
public void setTimeZone(TimeZone zone)(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.