|
||||||||||
| 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.report.chart.ChartColumn
public class ChartColumn
This class handles some of the generic methods to the ColumnIdentifier. This will not store the specific object that makes the column be uniquely identified.
| Nested Class Summary | |
|---|---|
static class |
ChartColumn.DataType
Enumeration of the data types a chart column can have. |
| Constructor Summary | |
|---|---|
ChartColumn(java.lang.String columnName,
ChartColumn.DataType dataType)
Creates a new chart column descriptor for the given name simplified SQL data type. |
|
ChartColumn(java.lang.String columnName,
int jdbcType)
Creates a new chart column descriptor for the given name and JDBC data type. |
|
| Method Summary | |
|---|---|
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. |
boolean |
equals(java.lang.Object obj)
Two identifiers for the same column name are considered equal. |
java.util.List<? extends WabitObject> |
getChildren()
Returns an unmodifiable list of the children in this WabitObject. |
java.lang.String |
getColumnName()
|
ChartColumn.DataType |
getDataType()
|
java.util.List<WabitObject> |
getDependencies()
Returns a list of all WabitObjects that this Wabit object is
dependent on. |
ColumnRole |
getRoleInChart()
|
ChartColumn |
getXAxisIdentifier()
|
int |
hashCode()
|
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 |
setRoleInChart(ColumnRole dataType)
|
void |
setXAxisIdentifier(ChartColumn xAxisIdentifier)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ChartColumn(@Nonnull
java.lang.String columnName,
int jdbcType)
columnName - The column's name (generally case sensitive)jdbcType - The java.sql.Types type code.
public ChartColumn(@Nonnull
java.lang.String columnName,
@Nonnull
ChartColumn.DataType dataType)
columnName - The column's name (generally case sensitive)jdbcType - The java.sql.Types type code.| Method Detail |
|---|
public ColumnRole getRoleInChart()
public void setRoleInChart(ColumnRole dataType)
public ChartColumn getXAxisIdentifier()
public void setXAxisIdentifier(ChartColumn xAxisIdentifier)
public ChartColumn.DataType getDataType()
public boolean allowsChildren()
WabitObject
WabitObject.childPositionOffset(Class)public int childPositionOffset(java.lang.Class<? extends WabitObject> childType)
WabitObject
public java.util.List<? extends WabitObject> getChildren()
WabitObject
public 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.
public void removeDependency(WabitObject dependency)
WabitObject
public java.lang.String getColumnName()
public boolean equals(java.lang.Object obj)
equals in class AbstractWabitObjectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class AbstractWabitObjectprotected boolean removeChildImpl(WabitObject child)
AbstractWabitObject
removeChildImpl in class AbstractWabitObjectAbstractWabitObject.removeChild(WabitObject)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||