|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectca.sqlpower.architect.profile.AbstractProfileResult<T>
T - The type of DatabaseObject this profile pertains to. For example,
SQLTable or SQLColumn.public abstract class AbstractProfileResult<T extends SQLObject>
Base class for storing profile results that relate to a database object. Provides mostly bookkeeping information and the infrastructure for event support. Subclasses extend this class by providing additional attributes that make sense for the type of object they profile.
| Constructor Summary | |
|---|---|
AbstractProfileResult(T profiledObject)
Creates a new ProfileResult which will hold profile data about the given SQL Object. |
|
| Method Summary | |
|---|---|
void |
addProfileResultListener(ProfileResultListener listener)
Add a ProfileResultListener that should be notified of changes in the status of this ProfileResult's progress during a profile operation |
int |
compareTo(AbstractProfileResult o)
Compares this Profile Result based on the following attributes, in the following priority: The profiled object's database name The profiled object's catalog name The profiled object's schema name The profiled object's table name The profiled object's column name The profile's createEndTime The profile's createStartTime If any of those attributes are null or not applicable, they will count as coming before any non-null value. |
boolean |
equals(java.lang.Object obj)
Tests for equality with obj. |
protected void |
fireProfileCancelled()
|
protected void |
fireProfileFinished()
|
protected void |
fireProfileStarted()
|
long |
getCreateEndTime()
Returns the date and time that this ProfileResult finished profiling the profiled object. |
long |
getCreateStartTime()
Returns the date and time that this ProfileResult started profiling the profiled object. |
java.lang.Exception |
getException()
Returns the Exception that occured during the profiling of the profiled object. |
T |
getProfiledObject()
Returns the SQLObject that is profiled by this ProfileResult. |
ProfileSettings |
getSettings()
|
long |
getTimeToCreate()
Returns the time it took to create this ProfileResult in milliseconds. |
int |
hashCode()
Generates a hash code consistent with the equals() method. |
void |
removeProfileResultListener(ProfileResultListener listener)
Remove a ProfileResultListener from this ProfileResult's collection of ProfileResultListeners |
void |
setCreateEndTime(long createEndTime)
|
void |
setCreateStartTime(long createStartTime)
|
void |
setException(java.lang.Exception ex)
If an exception is encountered while populating this profile result, it should be stored here for later inspection by client code. |
void |
setSettings(ProfileSettings settings)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractProfileResult(T profiledObject)
profiledObject - The object that this profile data refers to. Must not be null.| Method Detail |
|---|
public T getProfiledObject()
ProfileResult
getProfiledObject in interface ProfileResult<T extends SQLObject>public long getCreateStartTime()
ProfileResult
getCreateStartTime in interface ProfileResult<T extends SQLObject>public void setCreateStartTime(long createStartTime)
public long getTimeToCreate()
ProfileResult
getTimeToCreate in interface ProfileResult<T extends SQLObject>public void setCreateEndTime(long createEndTime)
public long getCreateEndTime()
ProfileResult
getCreateEndTime in interface ProfileResult<T extends SQLObject>public java.lang.Exception getException()
ProfileResult
getException in interface ProfileResult<T extends SQLObject>public void setException(java.lang.Exception ex)
public final int compareTo(AbstractProfileResult o)
compareTo in interface java.lang.Comparable<AbstractProfileResult>o - Another ProfileResult to compare with.
public final boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic final int hashCode()
hashCode in class java.lang.Objectpublic ProfileSettings getSettings()
public void setSettings(ProfileSettings settings)
public void addProfileResultListener(ProfileResultListener listener)
ProfileResult
addProfileResultListener in interface ProfileResult<T extends SQLObject>public void removeProfileResultListener(ProfileResultListener listener)
ProfileResult
removeProfileResultListener in interface ProfileResult<T extends SQLObject>protected final void fireProfileStarted()
protected final void fireProfileFinished()
protected final void fireProfileCancelled()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||