|
|||||||||
| Home >> All >> [ PointOfView overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
PointOfView
Class DateInterval

java.lang.ObjectPointOfView.DimensionSubset
PointOfView.DateInterval
- All Implemented Interfaces:
- java.util.EventListener, java.beans.PropertyChangeListener, java.io.Serializable
- public class DateInterval
- extends DimensionSubset
- implements java.beans.PropertyChangeListener
- extends DimensionSubset
| Field Summary | |
private Date |
earliestDate
|
private Date |
latestDate
|
private static java.lang.String |
PROP_EARLIEST_DATE_PROPERTY
|
| Fields inherited from class PointOfView.DimensionSubset |
|
| Constructor Summary | |
DateInterval()
Creates a new instance of DateInterval |
|
| Method Summary | |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
|
void |
addToSearch(PointOfViewServer.Search theSearch)
|
void |
buildSubset()
Call this function to build SQL query. |
protected java.lang.Object |
clone()
Creates and returns a copy of this object. |
boolean |
equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one. |
protected void |
finalize()
Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. |
Date |
getEarliestDate()
|
Date |
getLatestDate()
|
long |
getLeftmostValue()
|
long |
getRightmostValue()
|
java.lang.String |
getSampleProperty()
|
java.lang.String |
getWhereClause()
|
int |
hashCode()
Returns a hash code value for the object. |
void |
propertyChange(java.beans.PropertyChangeEvent evt)
This method gets called when a bound property is changed. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
|
void |
setEarliestDate(Date date)
|
void |
setLatestDate(Date date)
|
void |
setSampleProperty(java.lang.String value)
|
long |
toLong(PointOfViewServer.Result theResult)
|
java.lang.String |
toString()
Returns a string representation of the object. |
| Methods inherited from class PointOfView.DimensionSubset |
getOrderNb, getSubsetQuery, setOrderNb, setSubsetQuery |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
PROP_EARLIEST_DATE_PROPERTY
private static final java.lang.String PROP_EARLIEST_DATE_PROPERTY
- See Also:
- Constant Field Values
earliestDate
private Date earliestDate
latestDate
private Date latestDate
| Constructor Detail |
DateInterval
public DateInterval()
- Creates a new instance of DateInterval
| Method Detail |
addPropertyChangeListener
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
clone
protected java.lang.Object clone() throws java.lang.CloneNotSupportedException
- Creates and returns a copy of this object. The precise meaning
of "copy" may depend on the class of the object. The general
intent is that, for any object x, the expression:
will be true, and that the expression:x.clone() != x
will be true, but these are not absolute requirements. While it is typically the case that:x.clone().getClass() == x.getClass()
will be true, this is not an absolute requirement.x.clone().equals(x)
By convention, the returned object should be obtained by calling super.clone. If a class and all of its superclasses (except Object) obey this convention, it will be the case that x.clone().getClass() == x.getClass().
By convention, the object returned by this method should be independent of this object (which is being cloned). To achieve this independence, it may be necessary to modify one or more fields of the object returned by super.clone before returning it. Typically, this means copying any mutable objects that comprise the internal "deep structure" of the object being cloned and replacing the references to these objects with references to the copies. If a class contains only primitive fields or references to immutable objects, then it is usually the case that no fields in the object returned by super.clone need to be modified.
The method clone for class Object performs a specific cloning operation. First, if the class of this object does not implement the interface Cloneable, then a CloneNotSupportedException is thrown. Note that all arrays are considered to implement the interface Cloneable. Otherwise, this method creates a new instance of the class of this object and initializes all its fields with exactly the contents of the corresponding fields of this object, as if by assignment; the contents of the fields are not themselves cloned. Thus, this method performs a "shallow copy" of this object, not a "deep copy" operation.
The class Object does not itself implement the interface Cloneable, so calling the clone method on an object whose class is Object will result in throwing an exception at run time.
equals
public boolean equals(java.lang.Object obj)
- Indicates whether some other object is "equal to" this one.
The
equalsmethod implements an equivalence relation:- It is reflexive: for any reference value
x,x.equals(x)should returntrue. - It is symmetric: for any reference values
xandy,x.equals(y)should returntrueif and only ify.equals(x)returnstrue. - It is transitive: for any reference values
x,y, andz, ifx.equals(y)returnstrueandy.equals(z)returnstrue, thenx.equals(z)should returntrue. - It is consistent: for any reference values
xandy, multiple invocations of x.equals(y) consistently returntrueor consistently returnfalse, provided no information used inequalscomparisons on the object is modified. - For any non-null reference value
x,x.equals(null)should returnfalse.
The equals method for class
Objectimplements the most discriminating possible equivalence relation on objects; that is, for any reference valuesxandy, this method returnstrueif and only ifxandyrefer to the same object (x==yhas the valuetrue).Note that it is generally necessary to override the hashCode method whenever this method is overridden, so as to maintain the general contract for the hashCode method, which states that equal objects must have equal hash codes.
- It is reflexive: for any reference value
finalize
protected void finalize()
throws java.lang.Throwable
- Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
A subclass overrides the
finalizemethod to dispose of system resources or to perform other cleanup.The general contract of finalize is that it is invoked if and when the JavaTM virtual machine has determined that there is no longer any means by which this object can be accessed by any thread that has not yet died, except as a result of an action taken by the finalization of some other object or class which is ready to be finalized. The finalize method may take any action, including making this object available again to other threads; the usual purpose of finalize, however, is to perform cleanup actions before the object is irrevocably discarded. For example, the finalize method for an object that represents an input/output connection might perform explicit I/O transactions to break the connection before the object is permanently discarded.
The finalize method of class Object performs no special action; it simply returns normally. Subclasses of Object may override this definition.
The Java programming language does not guarantee which thread will invoke the finalize method for any given object. It is guaranteed, however, that the thread that invokes finalize will not be holding any user-visible synchronization locks when finalize is invoked. If an uncaught exception is thrown by the finalize method, the exception is ignored and finalization of that object terminates.
After the finalize method has been invoked for an object, no further action is taken until the Java virtual machine has again determined that there is no longer any means by which this object can be accessed by any thread that has not yet died, including possible actions by other objects or classes which are ready to be finalized, at which point the object may be discarded.
The finalize method is never invoked more than once by a Java virtual machine for any given object.
Any exception thrown by the
finalizemethod causes the finalization of this object to be halted, but is otherwise ignored.
getSampleProperty
public java.lang.String getSampleProperty()
hashCode
public int hashCode()
- Returns a hash code value for the object. This method is
supported for the benefit of hashtables such as those provided by
java.util.Hashtable.The general contract of
hashCodeis:- Whenever it is invoked on the same object more than once during an execution of a Java application, the hashCode method must consistently return the same integer, provided no information used in equals comparisons on the object is modified. This integer need not remain consistent from one execution of an application to another execution of the same application.
- If two objects are equal according to the equals(Object)
method, then calling the
hashCodemethod on each of the two objects must produce the same integer result. - It is not required that if two objects are unequal
according to the Object.equals(java.lang.Object)>
Object.equals(java.lang.Object)55 method, then calling the hashCode method on each of the two objects must produce distinct integer results. However, the programmer should be aware that producing distinct integer results for unequal objects may improve the performance of hashtables.
As much as is reasonably practical, the hashCode method defined by class Object does return distinct integers for distinct objects. (This is typically implemented by converting the internal address of the object into an integer, but this implementation technique is not required by the JavaTM programming language.)
removePropertyChangeListener
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
setSampleProperty
public void setSampleProperty(java.lang.String value)
toString
public java.lang.String toString()
- Returns a string representation of the object. In general, the
toStringmethod returns a string that "textually represents" this object. The result should be a concise but informative representation that is easy for a person to read. It is recommended that all subclasses override this method.The
toStringmethod for classObjectreturns a string consisting of the name of the class of which the object is an instance, the at-sign character `@', and the unsigned hexadecimal representation of the hash code of the object. In other words, this method returns a string equal to the value of:getClass().getName() + '@' + Integer.toHexString(hashCode())
getEarliestDate
public Date getEarliestDate()
getLatestDate
public Date getLatestDate()
setEarliestDate
public void setEarliestDate(Date date)
setLatestDate
public void setLatestDate(Date date)
getWhereClause
public java.lang.String getWhereClause()
buildSubset
public void buildSubset()
- Description copied from class:
DimensionSubset - Call this function to build SQL query.
- Specified by:
buildSubsetin classDimensionSubset
addToSearch
public void addToSearch(PointOfViewServer.Search theSearch) throws java.rmi.RemoteException
- Specified by:
addToSearchin classDimensionSubset
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent evt)
- This method gets called when a bound property is changed.
- Specified by:
propertyChangein interfacejava.beans.PropertyChangeListener
getLeftmostValue
public long getLeftmostValue()
- Specified by:
getLeftmostValuein classDimensionSubset
getRightmostValue
public long getRightmostValue()
- Specified by:
getRightmostValuein classDimensionSubset
toLong
public long toLong(PointOfViewServer.Result theResult) throws java.rmi.RemoteException
- Specified by:
toLongin classDimensionSubset
|
|||||||||
| Home >> All >> [ PointOfView overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC