public class OdsxResultSet extends FwkItem implements OdsxResultSetInterface
| Modifier and Type | Class and Description |
|---|---|
protected static class |
OdsxResultSet.ByteComparator |
protected static class |
OdsxResultSet.DateComparator |
protected static class |
OdsxResultSet.DoubleComparator |
protected static class |
OdsxResultSet.FloatComparator |
protected static class |
OdsxResultSet.IntComparator |
protected static class |
OdsxResultSet.LongLongComparator |
protected static class |
OdsxResultSet.ShortComparator |
protected static class |
OdsxResultSet.StringComparator |
| Modifier and Type | Field and Description |
|---|---|
protected int[] |
charWidth
The char width of the columns
|
protected CommandInterface |
command
The command that created the result set.
|
protected java.lang.String |
dateOutputFormat
The date output format string.
|
protected ElemResultSet[] |
elemRes
The ODS result set.
|
protected java.util.Locale |
locale
The locale
|
protected int |
refCount
A reference counter.
|
protected int[] |
sortIdx
The sort index.
|
protected java.lang.Object[] |
stringVal
The column string presentation.
|
static java.lang.String |
version |
changeManager, properties, suspendChangeManagersourceauthor, buildnr, className, company, copyright, creationDate, dateFormatString, description, eMail, FWK_ICON, FWK_ICON_ARRAY, FWK_ICON_BG, FWK_ICON_BG_ARRAY, FWK_ICON_BG_LARGE, FWK_ICON_BG_LARGE_ARRAY, FWK_ICON_LARGE, FWK_ICON_LARGE_ARRAY, icon, ICON, iconCount, iconKey, internetAddress, name, titleNameINFOBUS_SOURCEAUTHOR, BUILDNR, COMPANY, COPYRIGHT, DATE_FORMAT, DEFAULT_ICON, DESCRIPTION, INTERNET, LARGE_ICON, LARGE_KEY_EXT, LARGE_OPAQUE_ICON, LARGE_OPAQUE_KEY_EXT, OPAQUE_ICON, OPAQUE_KEY_EXT, RCS_DATE_FORMAT, SUPPORT_EMAIL, TITLE_NAME| Constructor and Description |
|---|
OdsxResultSet(java.lang.String name,
CommandInterface command)
The construtor receiving the ods result set.
|
OdsxResultSet(java.lang.String name,
CommandInterface command,
ElemResultSet[] res)
The construtor receiving the ods result set.
|
OdsxResultSet(java.lang.String name,
CommandInterface command,
java.lang.String[] res)
The construtor receiving the ods result set.
|
OdsxResultSet(java.lang.String name,
CommandInterface command,
java.util.Vector res)
The construtor receiving the ods result set.
|
| Modifier and Type | Method and Description |
|---|---|
void |
attach()
Increase the reference counter.
|
CommandInterface |
createdBy()
Return the command that created the result.
|
int |
findColumn(java.lang.String name)
Find a specific column.
|
java.lang.Object[] |
getAttributeValues(int column)
Get the attribute values.
|
java.lang.String |
getCellStringValue(int column,
int row)
Get the cell string value.
|
int |
getColumnCount()
Get the column count.
|
int |
getColumnDisplaySize(int column)
Indicates the designated column's normal maximum width in characters.
|
java.lang.String[] |
getColumnStringValue(int column)
Get the column string value.
|
ElemResultSet[] |
getElemResultSet()
Get the ODS Result set of a ODS query
|
ResultColumnInterface[] |
getResultColumns()
Get the result columns.
|
int |
getRowCount()
Get the row count.
|
java.lang.String[] |
getRowStringValue(int row)
Get the row string value.
|
java.lang.String |
getVersion()
Return the version string of the FWK component.
|
java.lang.String[] |
listColumns(java.lang.String pattern)
List attribute names belong to the result set.
|
void |
release()
Release the object.
|
void |
setDateFormatString(java.lang.String formatString)
Set the Date format string.
|
void |
setLocale(java.util.Locale locale)
Set the locale of for this resultset.
|
void |
sort(int colIdx,
boolean asc)
Order the rows by a special column.
|
void |
sort(java.lang.String name,
boolean asc)
Order the rows by a special column.
|
addDataItemChangeListener, fireItemAdded, fireItemDeleted, fireItemRevoked, fireItemValueChanged, getName, getProperty, getPropertyGroup, getSource, isChangeManagerSuspended, removeDataItemChangeListener, setName, setProperty, setPropertyGroup, suspendChangeManageraddCommand, addCommand, addToGroup, addToGroup, addVetoableChangeListener, addVetoableChangeListener, clearCommands, commandsAvailable, compareTo, deleteGroup, destroyController, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, getAuthor, getBuild, getCommand, getCommands, getCommands, getCompany, getCompanyInternetAddress, getCopyright, getCreationDate, getCreationDate, getDateFormatString, getDescription, getFwkMimeTypes, getGroup, getIcon, getIcon, getIconKey, getIconKey, getPersistentObjectNames, getSupportEMail, getTitle, getTitleName, getVetoableChangeArray, getVetoableChangeListenerArray, getVetoableChangeListenerArray, groupExists, removeCommand, removeFromGroup, removeVetoableChangeListener, removeVetoableChangeListener, setAuthor, setBuild, setCommands, setCompany, setCompanyInternetAddress, setCopyright, setCreationDate, setDescription, setDescriptor, setDescriptor, setIcon, setIcon, setIconKey, setIconKey, setSource, setSupportEMail, setTitleNameaddPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeArray, getPropertyChangeListenerArray, getPropertyChangeListenerArray, isPropertyChangeEventSuspended, removePropertyChangeListener, removePropertyChangeListener, suspendPropertyChangeEventsgetClassName, getPresentationString, getPresentationString, getTransferData, getTransferDataFlavors, isDataFlavorSupported, lostOwnership, setClassName, setCreationDate, toStringgetNiceVersionclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfireItemAdded, fireItemDeleted, fireItemRevoked, fireItemValueChanged, getProperty, getPropertyGroup, setProperty, setPropertyGroup, suspendChangeManagergetCommands, getPersistentObjectNamesdestroyControlleraddPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeArray, getPropertyChangeListenerArray, getPropertyChangeListenerArray, isPropertyChangeEventSuspended, removePropertyChangeListener, removePropertyChangeListener, setSource, suspendPropertyChangeEventsaddVetoableChangeListener, addVetoableChangeListener, getVetoableChangeArray, getVetoableChangeListenerArray, getVetoableChangeListenerArray, removeVetoableChangeListener, removeVetoableChangeListenergetAuthor, getBuild, getClassName, getCompany, getCompanyInternetAddress, getCopyright, getCreationDate, getCreationDate, getDateFormatString, getDescription, getIcon, getIcon, getIconKey, getIconKey, getName, getPresentationString, getPresentationString, getSupportEMail, getTitle, getTitleName, setAuthor, setBuild, setClassName, setCompany, setCompanyInternetAddress, setCopyright, setCreationDate, setCreationDate, setDescription, setDescriptor, setIcon, setIcon, setIconKey, setIconKey, setName, setSupportEMail, setTitleNamegetTransferData, getTransferDataFlavors, isDataFlavorSupportedaddCommand, addCommand, addToGroup, addToGroup, clearCommands, commandsAvailable, deleteGroup, getCommand, getCommands, getGroup, groupExists, removeCommand, removeFromGroup, setCommandsgetPresentationString, getPresentationStringpublic static final java.lang.String version
protected java.lang.String dateOutputFormat
protected ElemResultSet[] elemRes
ElemResultSetprotected int[] charWidth
protected java.lang.Object[] stringVal
protected CommandInterface command
protected int refCount
protected java.util.Locale locale
protected int[] sortIdx
public OdsxResultSet(java.lang.String name,
CommandInterface command)
name - the result name.command - The command that created the result.public OdsxResultSet(java.lang.String name,
CommandInterface command,
ElemResultSet[] res)
name - the result name.command - The command that created the result.res - The ods result set structure.ElemResultSetpublic OdsxResultSet(java.lang.String name,
CommandInterface command,
java.lang.String[] res)
name - the result name.command - The command that created the result.res - A string array result.public OdsxResultSet(java.lang.String name,
CommandInterface command,
java.util.Vector res)
name - the result name.command - The command that created the result.res - A vector containing the results.public java.lang.String getVersion()
FwkInterfacegetVersion in interface FwkInterfacegetVersion in class FwkItempublic void setDateFormatString(java.lang.String formatString)
setDateFormatString in interface FwkDescriptionInterfacesetDateFormatString in class FwkPersistenceformatString - The format string.#java.text.SimpleDateFormat,
FwkPersistence.getCreationDate()public CommandInterface createdBy()
createdBy in interface OdsxResultSetInterfacepublic void release()
release in interface FwkInterfacerelease in interface javax.infobus.DataItemrelease in class FwkItempublic void attach()
attach in interface OdsxResultSetInterfacepublic java.lang.String[] listColumns(java.lang.String pattern)
listColumns in interface OdsxResultSetInterfacepattern - The pattern that must fulfill by the returned names.public int findColumn(java.lang.String name)
findColumn in interface OdsxResultSetInterfacename - the name of the column.public void sort(int colIdx,
boolean asc)
sort in interface OdsxResultSetInterfacecolidx - Column index to be the creteria.
if the column doesn't exist for the given index, the sorting will be reseted.asc - if true the order is ascending.public void sort(java.lang.String name,
boolean asc)
sort in interface OdsxResultSetInterfacename - Column name to be the creteria.asc - if true the order is ascending.public int getColumnDisplaySize(int column)
getColumnDisplaySize in interface OdsxResultSetInterfacecolumn - The column index.public java.lang.String[] getRowStringValue(int row)
getRowStringValue in interface OdsxResultSetInterfacerow - The row index.public java.lang.String getCellStringValue(int column,
int row)
getCellStringValue in interface OdsxResultSetInterfacecolumn - The column index.row - The row index.public java.lang.String[] getColumnStringValue(int column)
getColumnStringValue in interface OdsxResultSetInterfacecolumn - The column index.public java.lang.Object[] getAttributeValues(int column)
column - The column index.public int getColumnCount()
getColumnCount in interface OdsxResultSetInterfacepublic int getRowCount()
getRowCount in interface OdsxResultSetInterfacepublic ResultColumnInterface[] getResultColumns()
getResultColumns in interface OdsxResultSetInterfacepublic ElemResultSet[] getElemResultSet()
getElemResultSet in interface OdsxResultSetInterfaceElemResultSetpublic void setLocale(java.util.Locale locale)
setLocale in interface OdsxResultSetInterfacelocale - the Locale object.