|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectca.sqlpower.wabit.AbstractWabitObject
ca.sqlpower.wabit.WabitJoin
public class WabitJoin
Wraps a SQLJoin and converts events on the join to WabitListener
events.
| Constructor Summary | |
|---|---|
WabitJoin(QueryCache query,
ca.sqlpower.query.SQLJoin delegate)
Constructs a WabitJoin that converts SQLJoin events to
WabitListener events. |
|
| Method Summary | |
|---|---|
void |
addJoinChangeListener(java.beans.PropertyChangeListener l)
|
boolean |
allowsChildren()
Returns true if this object may contain children. |
int |
childPositionOffset(java.lang.Class<? extends WabitObject> childType)
Returns the position in the list that would be returned by getChildren() that the first object of type childClass is, or where it would be if there were any children of that type. |
CleanupExceptions |
cleanup()
Default cleanup method that does nothing. |
protected void |
firePropertyChangeEvent(java.beans.PropertyChangeEvent evt)
|
java.util.List<? extends WabitObject> |
getChildren()
Returns an unmodifiable list of the children in this WabitObject. |
java.lang.String |
getComparator()
|
ca.sqlpower.query.SQLJoin |
getDelegate()
Returns the SQLJoin delegate of this object. |
java.util.List<WabitObject> |
getDependencies()
Returns a list of all WabitObjects that this Wabit object is
dependent on. |
ca.sqlpower.query.Item |
getLeftColumn()
|
QueryCache |
getQuery()
XXX The query may be equivalent to the parent. |
ca.sqlpower.query.Item |
getRightColumn()
|
boolean |
isLeftColumnOuterJoin()
|
boolean |
isRightColumnOuterJoin()
|
void |
removeAllListeners()
This remove all the listeners inside this object's delegate to ensure that listeners do not remain attached to the join when it is removed. |
protected boolean |
removeChildImpl(WabitObject child)
This is the object specific implementation of removeChild. |
void |
removeDependency(WabitObject dependency)
Removes the given object as a dependency of this object. |
void |
removeJoinChangeListener(java.beans.PropertyChangeListener l)
|
void |
setComparator(java.lang.String comparator)
|
void |
setLeftColumnOuterJoin(boolean isOuterJoin)
|
void |
setRightColumnOuterJoin(boolean isOuterJoin)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface ca.sqlpower.query.Join |
|---|
getName, getUUID, setName, setUUID |
| Constructor Detail |
|---|
public WabitJoin(QueryCache query,
ca.sqlpower.query.SQLJoin delegate)
SQLJoin events to
WabitListener events.
query - The QueryCache this WabitJoin will be a part of. This
is passed in to find the appropriate WabitItem objects
for the left and right columns of the given SQLJoin.
If new WabitItems are created here their UUIDs would
not match the WabitItems in the QueryCache and be
considered different object.delegate - The SQLJoin to listen to.| Method Detail |
|---|
protected void firePropertyChangeEvent(java.beans.PropertyChangeEvent evt)
public CleanupExceptions cleanup()
AbstractWabitObject
cleanup in interface WabitObjectcleanup in class AbstractWabitObjectpublic QueryCache getQuery()
public ca.sqlpower.query.SQLJoin getDelegate()
SQLJoin delegate of this object.
XXX This method should be removed in the future to make its delegate a proper delegate.
protected boolean removeChildImpl(WabitObject child)
AbstractWabitObject
removeChildImpl in class AbstractWabitObjectAbstractWabitObject.removeChild(WabitObject)public boolean allowsChildren()
WabitObject
allowsChildren in interface WabitObjectWabitObject.childPositionOffset(Class)public int childPositionOffset(java.lang.Class<? extends WabitObject> childType)
WabitObject
childPositionOffset in interface WabitObjectpublic java.util.List<? extends WabitObject> getChildren()
WabitObject
getChildren in interface WabitObjectpublic java.util.List<WabitObject> getDependencies()
WabitObjectWabitObjects that this Wabit object is
dependent on. Children of a WabitObject are not dependencies and will not
be returned in this list. If there are no objects this Wabit object is
dependent on an empty list should be returned. These are only the
immediate dependencies of this object. If you want to find the
dependencies of this object's dependencies as well it may be useful to
look at WorkspaceGraphModel to make a full graph of all of the
dependencies.
getDependencies in interface WabitObjectpublic void removeDependency(WabitObject dependency)
WabitObject
removeDependency in interface WabitObjectpublic void setLeftColumnOuterJoin(boolean isOuterJoin)
setLeftColumnOuterJoin in interface ca.sqlpower.query.Joinpublic boolean isLeftColumnOuterJoin()
isLeftColumnOuterJoin in interface ca.sqlpower.query.Joinpublic void setRightColumnOuterJoin(boolean isOuterJoin)
setRightColumnOuterJoin in interface ca.sqlpower.query.Joinpublic boolean isRightColumnOuterJoin()
isRightColumnOuterJoin in interface ca.sqlpower.query.Joinpublic void setComparator(java.lang.String comparator)
setComparator in interface ca.sqlpower.query.Joinpublic java.lang.String getComparator()
getComparator in interface ca.sqlpower.query.Joinpublic void addJoinChangeListener(java.beans.PropertyChangeListener l)
addJoinChangeListener in interface ca.sqlpower.query.Joinpublic ca.sqlpower.query.Item getLeftColumn()
getLeftColumn in interface ca.sqlpower.query.Joinpublic ca.sqlpower.query.Item getRightColumn()
getRightColumn in interface ca.sqlpower.query.Joinpublic void removeAllListeners()
XXX This should be removed and objects adding listeners to a join should remove the joins appropriately when they are not needed.
removeAllListeners in interface ca.sqlpower.query.Joinpublic void removeJoinChangeListener(java.beans.PropertyChangeListener l)
removeJoinChangeListener in interface ca.sqlpower.query.Join
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||