| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.datatools.sqltools.result.internal.ui.view.ColumnAlignedResultItem
public class ColumnAlignedResultItem
When using single window text display mode, we use this class to generate the display string.
| Field Summary | |
|---|---|
| static int | PARAM_DATA_TYPE | 
| static java.lang.String[] | PARAM_HEADING | 
| static int | PARAM_NAME | 
| static int | PARAM_TYPE | 
| static int | PARAM_VALUE | 
| static int | PARAM_VALUE_OUT | 
| Constructor Summary | |
|---|---|
| ColumnAlignedResultItem() | |
| Method Summary | |
|---|---|
| static java.lang.String | getDisplayData(IResultSetObject result,
               IResultSetRow row,
               java.lang.String nullValue)Returns the display data of the given row | 
| static java.lang.String | getLineSeparator()Returns the platform independent line separator | 
| static java.lang.String | getParametersDsipalyStr(java.util.List params,
                        java.lang.String nullValue)Returns the display string of the given parameters (column aligned) | 
| static java.lang.String | getResultInstanceDispString(IResultInstance instance,
                            java.lang.String nullValue)Returns the display string of the whole result instance to for saving purpose | 
| static java.lang.String | getResultItemDisplayString(ResultItem item,
                           java.lang.String nullValue,
                           boolean showHeading,
                           boolean showRowCountMsg)Returns the item's display string when using text mode. | 
| static java.lang.String | getResultSetDisplayString(IResultSetObject rs,
                          java.lang.String nullValue,
                          boolean showHeading,
                          boolean showRowCountMsg)Returns the result set's display string when using text mode. | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static final int PARAM_NAME
public static final int PARAM_TYPE
public static final int PARAM_DATA_TYPE
public static final int PARAM_VALUE
public static final int PARAM_VALUE_OUT
public static final java.lang.String[] PARAM_HEADING
| Constructor Detail | 
|---|
public ColumnAlignedResultItem()
| Method Detail | 
|---|
public static java.lang.String getResultItemDisplayString(ResultItem item,
                                                          java.lang.String nullValue,
                                                          boolean showHeading,
                                                          boolean showRowCountMsg)
item - the result itemnullValue - when the value is NULL, display nullValueshowHeading - whether display the column headings or notshowRowCountMsg - whether display the row count message or not
public static java.lang.String getResultSetDisplayString(IResultSetObject rs,
                                                         java.lang.String nullValue,
                                                         boolean showHeading,
                                                         boolean showRowCountMsg)
rs - the result set objectnullValue - when the value is NULL, display nullValueshowHeading - whether display the column headings or notshowRowCountMsg - whether display the row count message or not
public static java.lang.String getDisplayData(IResultSetObject result,
                                              IResultSetRow row,
                                              java.lang.String nullValue)
result - row - 
public static java.lang.String getLineSeparator()
public static java.lang.String getParametersDsipalyStr(java.util.List params,
                                                       java.lang.String nullValue)
params - the given parameter listnullValue - the display string for null value
public static java.lang.String getResultInstanceDispString(IResultInstance instance,
                                                           java.lang.String nullValue)
instance - the given result instancenullValue - the display string for null value
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||