Oracle Data-aware Controls Reference

oracle.dacf.control.swing.find
Class FindItemModelImpl

java.lang.Object
  extended byoracle.dacf.util.InfoBusMemberHelper
      extended byoracle.dacf.control.ConsumerSupport
          extended byoracle.dacf.control.DataItemAccessHelper
              extended byoracle.dacf.control.swing.find.FindItemModelImpl
All Implemented Interfaces:
oracle.dacf.rp.Consumer, java.util.EventListener, FindItemModel, javax.infobus.InfoBusDataConsumer, javax.infobus.InfoBusEventListener, javax.infobus.InfoBusMember, oracle.dacf.rp.Participant, java.beans.PropertyChangeListener

public class FindItemModelImpl
extends DataItemAccessHelper
implements FindItemModel

FindItemModelImpl implements the FindItemModel interface. It binds to a dataitem representing a column value and retrives the SQL type, value and display label.

Version:
INTERNAL
See Also:
FindItemModel, FindAction

Field Summary
static java.lang.String _defaultDateFormatString
          date format string used in date formatter
static java.lang.String _defaultSQLDateFormatString
          SQL date format
static java.lang.String _defaultSQLTimeFormatString
          SQL time format
 
Fields inherited from class oracle.dacf.util.InfoBusMemberHelper
m_infoBus, m_propListeners, m_sourceRef, m_syncLock, m_vetoListeners
 
Constructor Summary
FindItemModelImpl()
          Constructor
 
Method Summary
protected  java.lang.String _getColumnDisplayName(ColumnInfo attrInfo)
          get column display name
protected  java.lang.String _getColumnName(ColumnInfo attrInfo)
          get the column name
protected  java.lang.String _getColumnName(javax.infobus.DataItem di)
           
protected  ColumnInfo _getInfoObject()
          get the data object associated with the data item
protected  ColumnInfo _getInfoObjectFromParent()
          If the dataitem corresponding to column object is revoked because the result set has zero rows, attempt to get the dataitem from the parent rowset.
protected  java.lang.Object _getItemValue()
          get the item value
protected  java.lang.String _getLOVForeignKeyName(ColumnInfo colInfo)
          get the LOV Foriegn key name
protected  java.lang.String _getName(ColumnInfo attrInfo)
           
protected  int _getSQLType(ColumnInfo attrInfo)
          get SQL type for this column
protected  void _init()
           
protected  void dataItemPublished()
          override the derived class method inorder to initialize
 java.lang.String getColumnDisplayName()
          get column display name
 java.lang.String getColumnName()
          get the column name
 java.lang.String getFormatString()
          return the format string used.
 java.lang.Object getItemValue()
          get the column value
 java.lang.String getSQLFormatString()
          get the SQL format string
 int getSQLType()
          get SQL type for this column
 void setDataItemName(java.lang.String dataItemName)
          Sets the name of the InfoBus DataItem this object is bound to.
 void setInfoBusName(java.lang.String infoBusName)
          Sets the name of the InfoBus this transaction monitor is connected to.
 void setItemValue(java.lang.Object value)
          set the column value
 
Methods inherited from class oracle.dacf.control.DataItemAccessHelper
_setDataItem, dataItemAvailable, dataItemRevoked, getDataItem, getDataItemName, getInfoBusName, propertyChange
 
Methods inherited from class oracle.dacf.control.ConsumerSupport
available, revoked
 
Methods inherited from class oracle.dacf.util.InfoBusMemberHelper
addInfoBusPropertyListener, addInfoBusVetoableListener, clearRef, getInfoBus, joinInfoBus, joinInfoBus, leaveInfoBus, removeInfoBusPropertyListener, removeInfoBusVetoableListener, setInfoBus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_defaultSQLDateFormatString

public static java.lang.String _defaultSQLDateFormatString
SQL date format


_defaultSQLTimeFormatString

public static java.lang.String _defaultSQLTimeFormatString
SQL time format


_defaultDateFormatString

public static java.lang.String _defaultDateFormatString
date format string used in date formatter

Constructor Detail

FindItemModelImpl

public FindItemModelImpl()
Constructor

Method Detail

getItemValue

public java.lang.Object getItemValue()
get the column value

Specified by:
getItemValue in interface FindItemModel
Returns:
value to be used in the WHERE clause

setItemValue

public void setItemValue(java.lang.Object value)
set the column value

Specified by:
setItemValue in interface FindItemModel
Parameters:
value - value for the column

getColumnName

public java.lang.String getColumnName()
get the column name

Specified by:
getColumnName in interface FindItemModel
Returns:
name of the column to use in the query

getSQLType

public int getSQLType()
get SQL type for this column

Specified by:
getSQLType in interface FindItemModel

getColumnDisplayName

public java.lang.String getColumnDisplayName()
get column display name

Specified by:
getColumnDisplayName in interface FindItemModel

getFormatString

public java.lang.String getFormatString()
return the format string used. ( Special case used in association with Date datatype)

Specified by:
getFormatString in interface FindItemModel
Returns:
format string for this column

getSQLFormatString

public java.lang.String getSQLFormatString()
get the SQL format string

Specified by:
getSQLFormatString in interface FindItemModel
Returns:
SQL format string

setDataItemName

public void setDataItemName(java.lang.String dataItemName)
Sets the name of the InfoBus DataItem this object is bound to.

The DataItem with the given name is searched for on the InfoBus, and if found, is bound to this object.

If the object is already bound to a DataItem, it is unbound first.

Overrides:
setDataItemName in class DataItemAccessHelper
Parameters:
dataItemName - The name of the DataItem to bind to.
See Also:
DataItemAccessHelper.getDataItem()

setInfoBusName

public void setInfoBusName(java.lang.String infoBusName)
Sets the name of the InfoBus this transaction monitor is connected to.

By default, the it is connected to the default InfoBus, named Control.DEFAULT_INFOBUS_NAME.

If the named InfoBus does not exist, it is created automatically.

Overrides:
setInfoBusName in class DataItemAccessHelper
Parameters:
infoBusName - The name of the InfoBus to connect to.

dataItemPublished

protected void dataItemPublished()
override the derived class method inorder to initialize

Overrides:
dataItemPublished in class DataItemAccessHelper
See Also:
dataItemAvailable(), FindItemModelImpl

_init

protected void _init()

_getItemValue

protected java.lang.Object _getItemValue()
get the item value

Returns:
get the item value

_getName

protected java.lang.String _getName(ColumnInfo attrInfo)

_getColumnName

protected java.lang.String _getColumnName(ColumnInfo attrInfo)
get the column name

Returns:
name of the column to use in the query

_getColumnName

protected java.lang.String _getColumnName(javax.infobus.DataItem di)

_getLOVForeignKeyName

protected java.lang.String _getLOVForeignKeyName(ColumnInfo colInfo)
get the LOV Foriegn key name

Returns:
name of the foreign key to use in the query

_getSQLType

protected int _getSQLType(ColumnInfo attrInfo)
get SQL type for this column


_getColumnDisplayName

protected java.lang.String _getColumnDisplayName(ColumnInfo attrInfo)
get column display name


_getInfoObject

protected ColumnInfo _getInfoObject()
get the data object associated with the data item


_getInfoObjectFromParent

protected ColumnInfo _getInfoObjectFromParent()
If the dataitem corresponding to column object is revoked because the result set has zero rows, attempt to get the dataitem from the parent rowset.


Oracle Data-aware Controls Reference

 

Copyright © 1997, 2003, Oracle. All rights reserved.