com.bmc.mainview.nvbapi
Class DetailView

java.lang.Object
  extended by com.bmc.mainview.nvbapi.View
      extended by com.bmc.mainview.nvbapi.DetailView

Deprecated. It is more efficient to treat a detail view as a TabularView

public class DetailView
extends View

A view with one row of data.

Version:
2.0
Author:
F. Schneider

Field Summary
 
Fields inherited from class com.bmc.mainview.nvbapi.View
localDate, localTime
 
Constructor Summary
DetailView(java.lang.String name, Conversation conversation, boolean returnAll, java.lang.String where)
          Deprecated. Creates an object containing the data from a MAINVIEW tabular view
DetailView(java.lang.String name, Conversation conversation, boolean returnAll, java.lang.String where, ViewListener exit)
          Deprecated. Creates an object containing the data from a MAINVIEW tabular view
DetailView(ViewDefinition def, Conversation conversation, boolean returnAll, java.lang.String where)
          Deprecated. Creates an object containing the data from a MAINVIEW tabular view
 
Method Summary
 java.lang.String getRawValue(int r, Field field)
          Deprecated. Extract a field value from a row of a data record
 java.lang.String getValue(Field field)
          Deprecated. Extract a field value from a detail view
 java.lang.String getValue(java.lang.String field)
          Deprecated. Extract a field value from a detail view
 void refresh()
          Deprecated. Discards the cached view contents and gets new data from the host.
 
Methods inherited from class com.bmc.mainview.nvbapi.View
convertTime, fieldCount, getConversation, getField, getField, getQwhere, getRowMax, getValue, getValue, getWhere, setHyperlinks, setQwhere, setRowMax, setWhere, size, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DetailView

public DetailView(java.lang.String name,
                  Conversation conversation,
                  boolean returnAll,
                  java.lang.String where)
           throws java.io.IOException
Deprecated. 
Creates an object containing the data from a MAINVIEW tabular view

Parameters:
name - The name of the desired view
conversation - A conversation produced by HostServer.ConversationFactory
returnAll - True if all fields are desired, including hidden fields.
where - A MAINVIEW WHERE clause used to fiter the records.
Throws:
java.io.IOException - if the view cannot be obtained.

DetailView

public DetailView(ViewDefinition def,
                  Conversation conversation,
                  boolean returnAll,
                  java.lang.String where)
           throws java.io.IOException
Deprecated. 
Creates an object containing the data from a MAINVIEW tabular view

Parameters:
def - The definition of the desired view
conversation - A conversation produced by HostServer.ConversationFactory
returnAll - True if all fields are desired, including hidden fields.
where - A MAINVIEW WHERE clause used to fiter the records.
Throws:
java.io.IOException - if the view cannot be obtained.

DetailView

public DetailView(java.lang.String name,
                  Conversation conversation,
                  boolean returnAll,
                  java.lang.String where,
                  ViewListener exit)
           throws java.io.IOException
Deprecated. 
Creates an object containing the data from a MAINVIEW tabular view

Parameters:
name - The name of the desired view
conversation - A conversation produced by HostServer.ConversationFactory
returnAll - True if all fields are desired, including hidden fields.
where - A MAINVIEW WHERE clause used to filter the records.
exit - A ViewListener to be called during processing.
Throws:
java.io.IOException - if the view cannot be obtained.
Method Detail

refresh

public void refresh()
             throws java.io.IOException
Deprecated. 
Description copied from class: View
Discards the cached view contents and gets new data from the host.

Specified by:
refresh in class View
Throws:
java.io.IOException

getValue

public java.lang.String getValue(Field field)
                          throws java.io.IOException
Deprecated. 
Extract a field value from a detail view

Parameters:
field - The field
Returns:
A trimmed String with the value of the field in this row.
Throws:
java.io.IOException

getValue

public java.lang.String getValue(java.lang.String field)
                          throws java.io.IOException
Deprecated. 
Extract a field value from a detail view

Parameters:
field - The field name
Returns:
A trimmed String with the value of the field in this row.
Throws:
java.io.IOException

getRawValue

public java.lang.String getRawValue(int r,
                                    Field field)
                             throws java.io.IOException
Deprecated. 
Extract a field value from a row of a data record

Specified by:
getRawValue in class View
Parameters:
r - The row number (must be zero);
field - The field
Returns:
A trimmed String with the value of the field in this row.
Throws:
java.io.IOException