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, suspendChangeManager
source
author, 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, titleName
INFOBUS_SOURCE
AUTHOR, 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, suspendChangeManager
addCommand, 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, setTitleName
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeArray, getPropertyChangeListenerArray, getPropertyChangeListenerArray, isPropertyChangeEventSuspended, removePropertyChangeListener, removePropertyChangeListener, suspendPropertyChangeEvents
getClassName, getPresentationString, getPresentationString, getTransferData, getTransferDataFlavors, isDataFlavorSupported, lostOwnership, setClassName, setCreationDate, toString
getNiceVersion
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
fireItemAdded, fireItemDeleted, fireItemRevoked, fireItemValueChanged, getProperty, getPropertyGroup, setProperty, setPropertyGroup, suspendChangeManager
getCommands, getPersistentObjectNames
destroyController
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeArray, getPropertyChangeListenerArray, getPropertyChangeListenerArray, isPropertyChangeEventSuspended, removePropertyChangeListener, removePropertyChangeListener, setSource, suspendPropertyChangeEvents
addVetoableChangeListener, addVetoableChangeListener, getVetoableChangeArray, getVetoableChangeListenerArray, getVetoableChangeListenerArray, removeVetoableChangeListener, removeVetoableChangeListener
getAuthor, 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, setTitleName
getTransferData, getTransferDataFlavors, isDataFlavorSupported
addCommand, addCommand, addToGroup, addToGroup, clearCommands, commandsAvailable, deleteGroup, getCommand, getCommands, getGroup, groupExists, removeCommand, removeFromGroup, setCommands
getPresentationString, getPresentationString
public static final java.lang.String version
protected java.lang.String dateOutputFormat
protected ElemResultSet[] elemRes
ElemResultSet
protected 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.ElemResultSet
public 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()
FwkInterface
getVersion
in interface FwkInterface
getVersion
in class FwkItem
public void setDateFormatString(java.lang.String formatString)
setDateFormatString
in interface FwkDescriptionInterface
setDateFormatString
in class FwkPersistence
formatString
- The format string.#java.text.SimpleDateFormat
,
FwkPersistence.getCreationDate()
public CommandInterface createdBy()
createdBy
in interface OdsxResultSetInterface
public void release()
release
in interface FwkInterface
release
in interface javax.infobus.DataItem
release
in class FwkItem
public void attach()
attach
in interface OdsxResultSetInterface
public java.lang.String[] listColumns(java.lang.String pattern)
listColumns
in interface OdsxResultSetInterface
pattern
- The pattern that must fulfill by the returned names.public int findColumn(java.lang.String name)
findColumn
in interface OdsxResultSetInterface
name
- the name of the column.public void sort(int colIdx, boolean asc)
sort
in interface OdsxResultSetInterface
colidx
- 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 OdsxResultSetInterface
name
- Column name to be the creteria.asc
- if true the order is ascending.public int getColumnDisplaySize(int column)
getColumnDisplaySize
in interface OdsxResultSetInterface
column
- The column index.public java.lang.String[] getRowStringValue(int row)
getRowStringValue
in interface OdsxResultSetInterface
row
- The row index.public java.lang.String getCellStringValue(int column, int row)
getCellStringValue
in interface OdsxResultSetInterface
column
- The column index.row
- The row index.public java.lang.String[] getColumnStringValue(int column)
getColumnStringValue
in interface OdsxResultSetInterface
column
- The column index.public java.lang.Object[] getAttributeValues(int column)
column
- The column index.public int getColumnCount()
getColumnCount
in interface OdsxResultSetInterface
public int getRowCount()
getRowCount
in interface OdsxResultSetInterface
public ResultColumnInterface[] getResultColumns()
getResultColumns
in interface OdsxResultSetInterface
public ElemResultSet[] getElemResultSet()
getElemResultSet
in interface OdsxResultSetInterface
ElemResultSet
public void setLocale(java.util.Locale locale)
setLocale
in interface OdsxResultSetInterface
locale
- the Locale object.