com.ibm.as400.vaccess
Class AS400JDBCDataSourcePaneDataBean

java.lang.Object
  |
  +--com.ibm.as400.vaccess.AS400JDBCDataSourcePaneDataBean
All Implemented Interfaces:
DataBean

public class AS400JDBCDataSourcePaneDataBean
extends java.lang.Object
implements DataBean

The AS400JDBCDataSourcePaneDataBean class sets data in, and returns data from, the AS400JDBCDataSourcePane component.


Constructor Summary
AS400JDBCDataSourcePaneDataBean()
           
 
Method Summary
 java.lang.String getAccessTypeGroup()
          Returns the value of the "Access type" group on the Other tab.
 java.lang.String getAS400Server()
          Returns the value of the "AS/400 server" field on the General tab.
 Capabilities getCapabilities()
          Required by the framework.
 java.lang.Object getCommitMode()
          Returns the value of the "Commit mode" field on the Server tab.
 ChoiceDescriptor[] getCommitModeChoices()
          Returns the list of values in the "Commit mode" drop down list.
 java.lang.String getDataSourceName()
          Returns the value of the "Data source name" field on the General tab.
 java.lang.Object getDateFormat()
          Returns the value of the "Date format" field on the Format tab.
 ChoiceDescriptor[] getDateFormatChoices()
          Returns the list of values in the "Date format" drop down list.
 java.lang.Object getDateSeparator()
          Returns the value of the "Date separator" field on the Format tab.
 ChoiceDescriptor[] getDateSeparatorChoices()
          Returns the list of values in the "Date separator" drop down list.
 java.lang.Object getDecimalSeparator()
          Returns the value of the "Decimal separator" field on the Format tab.
 ChoiceDescriptor[] getDecimalSeparatorChoices()
          Returns the list of values in the "Decimal separator"" drop down list.
 java.lang.String getDefaultLibraries()
          Returns the value of the "Library list" field on the Server tab.
 java.lang.String getDefaultUserID()
          Returns the value of the "Default user ID" field on the Connection Options tab.
 java.lang.String getDescription()
          Returns the value of the "Description" field on the General tab.
 java.lang.Object getLanguage()
          Returns the value of the "Language" field on the Language tab.
 ChoiceDescriptor[] getLanguageChoices()
          Returns the list of values in the "Language"" drop down list.
 java.lang.Object getLOBThreshold()
          Returns the value of the "Large object threshold" field on the Performance tab.
 ChoiceDescriptor[] getLOBThresholdChoices()
          Returns the list of values in the "Large object threshold" drop down list.
 java.lang.Object getNamingConvention()
          Returns the value of the "Naming convention" field on the Format tab.
 ChoiceDescriptor[] getNamingConventionChoices()
          Returns the list of values in the "Naming convention"" drop down list.
 java.lang.String getPackage()
          Returns the value of the "Package" field on the Package tab.
 java.lang.String getPackageLibrary()
          Returns the value of the "Package library" field on the Package tab.
 java.lang.Object getRecordBlockingCriteria()
          Returns the value of the "Record blocking criteria" field on the Performance tab.
 ChoiceDescriptor[] getRecordBlockingCriteriaChoices()
          Returns the list of values in the "Record Blocking criteria"" drop down list.
 java.lang.Object getRecordBlockingSize()
          Returns the value of the "Record blocking size" field on the Performance tab.
 ChoiceDescriptor[] getRecordBlockingSizeChoices()
          Returns the list of values in the "Record Blocking size"" drop down list.
 java.lang.String getRemarksSourceGroup()
          Returns the value of the "Remarks source" group on the Other tab.
 java.lang.String getSortTable()
          Returns the value of the "Sort library/table name" field on the Language tab.
 java.lang.Object getSortType()
          Returns the value of the "Sort type" field on the Language tab.
 ChoiceDescriptor[] getSortTypeChoices()
          Returns the list of values in the "Sort type" drop down list.
 java.lang.String getSortWeightGroup()
          Returns the value of the "Sort weight" group on the Language tab.
 java.lang.String getSQLlibrary()
           
 java.lang.Object getTimeFormat()
          Returns the value of the "Time format" field on the Format tab.
 ChoiceDescriptor[] getTimeFormatChoices()
          Returns the list of values in the "Time format" drop down list.
 java.lang.Object getTimeSeparator()
          Returns the value of the "Time separator" field on the Format tab.
 ChoiceDescriptor[] getTimeSeparatorChoices()
          Returns the list of values in the "Time separator" drop down list.
 java.lang.String getUnusablePkgActionGroup()
          Returns the value of the "Unusable package" group on the Package tab.
 java.lang.String getUsageGroup()
          Returns the value of the "Usage" group on the Package tab.
 boolean isCachePackageLocally()
          Indicates whether the "Cache package locally" check box on the Package tab is checked.
 boolean isEnableDataCompression()
          Indicates whether the "Enable data compression" check box on the Performance tab is checked.
 boolean isEnableExtDynamic()
          Indicates whether the "Enable extended dynamic (package) support" check box on the Package tab is checked.
 boolean isEnableLazyClose()
          Indicates whether the "Enable lazy close support" check box on the Performance tab is checked.
 boolean isEnablePrefetch()
          Indicates whether the "Enable pre-fetch" check box on the Performance tab is checked.
 boolean isTranslate65535()
          Indicates whether the "Translate CCSID 65535" check box on the Translation tab is checked.
 boolean isUseSSL()
          Indicates whether the "SSL" check box on the Translation tab is checked.
 void load()
          Initializes this object.
 void save()
          Required by the framework.
 void setAccessTypeGroup(java.lang.String s)
          Sets the value of the "Access type" group on the Other tab.
 void setAS400Server(java.lang.String s)
          Sets the value of the "AS/400 server" field on the General tab.
 void setCachePackageLocally(boolean b)
          Sets the value of the "Cache package locally" check box on the Package tab.
 void setCommitMode(java.lang.Object o)
          Sets the value of the "Commit mode" field on the Server tab.
 void setDataSourceName(java.lang.String s)
          Sets the value of the "Data source name" field on the General tab.
 void setDateFormat(java.lang.Object o)
          Sets the value of the "Date format" field on the Format tab.
 void setDateSeparator(java.lang.Object o)
          Sets the value of the "Date separator" field on the Format tab.
 void setDecimalSeparator(java.lang.Object o)
          Sets the value of the "Decimal separator" field on the Format tab.
 void setDefaultLibraries(java.lang.String s)
          Sets the value of the "Library list" field on the Server tab.
 void setDefaultUserID(java.lang.String s)
          Sets the value of the "Default user ID" field on the Connection Options tab.
 void setDescription(java.lang.String s)
          Sets the value of the "Description" field on the General tab.
 void setEnableDataCompression(boolean b)
          Sets the value of the "Enable data compression" check box on the Performance tab.
 void setEnableExtDynamic(boolean b)
          Sets the value of the "Enable extended dynamic (package) support" check box on the Package tab.
 void setEnableLazyClose(boolean b)
          Sets the value of the "Enable lazy close support" check box on the Performance tab.
 void setEnablePrefetch(boolean b)
          Sets the value of the "Enable pre-fetch" check box on the Performance tab.
 void setLanguage(java.lang.Object o)
          Sets the value of the "Language" field on the Language tab.
 void setLOBThreshold(java.lang.Object o)
          Sets the value of the "Large object threshold" field on the Performance tab.
 void setNamingConvention(java.lang.Object o)
          Sets the value of the "Naming convention" field on the Format tab.
 void setPackage(java.lang.String s)
          Sets the value of the "Package" field on the Package tab.
 void setPackageLibrary(java.lang.String s)
          Sets the value of the "Package library" field on the Package tab.
 void setRecordBlockingCriteria(java.lang.Object o)
          Sets the value of the "Record Blocking criteria" field on the Performance tab.
 void setRecordBlockingSize(java.lang.Object o)
          Sets the value of the "Record Blocking size" field on the Performance tab.
 void setRemarksSourceGroup(java.lang.String s)
          Sets the value of the "Remarks source" group on the Other tab.
 void setSortTable(java.lang.String s)
          Sets the value of the "Sort library/table name" field on the Language tab.
 void setSortType(java.lang.Object o)
          Sets the value of the "Sort type" field on the Language tab.
 void setSortWeightGroup(java.lang.String s)
          Sets the value of the "Sort weight" group on the Language tab.
 void setSQLlibrary(java.lang.String s)
           
 void setTimeFormat(java.lang.Object o)
          Sets the value of the "Time format" field on the Format tab.
 void setTimeSeparator(java.lang.Object o)
          Sets the value of the "Time separator" field on the Format tab.
 void setTranslate65535(boolean b)
          Sets the value of the "Translate CCSID 65535" check box on the Translation tab.
 void setUnusablePkgActionGroup(java.lang.String s)
          Sets the value of the "Unusable package" group on the Package tab.
 void setUsageGroup(java.lang.String s)
          Sets the value of the "Usage" group on the Package tab.
 void setUseSSL(boolean b)
          Sets the value of the "SSL" check box on the Connection Options tab.
 void verifyChanges()
          Required by the framework.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AS400JDBCDataSourcePaneDataBean

public AS400JDBCDataSourcePaneDataBean()
Method Detail

getDataSourceName

public java.lang.String getDataSourceName()
Returns the value of the "Data source name" field on the General tab.
Returns:
The data source name.

setDataSourceName

public void setDataSourceName(java.lang.String s)
Sets the value of the "Data source name" field on the General tab.
Parameters:
s - The data source name.

getDescription

public java.lang.String getDescription()
Returns the value of the "Description" field on the General tab.
Returns:
The data source description.

setDescription

public void setDescription(java.lang.String s)
Sets the value of the "Description" field on the General tab.
Parameters:
s - The data source description.

getAS400Server

public java.lang.String getAS400Server()
Returns the value of the "AS/400 server" field on the General tab.
Returns:
The server name.

setAS400Server

public void setAS400Server(java.lang.String s)
Sets the value of the "AS/400 server" field on the General tab.
Parameters:
s - The server.

getSQLlibrary

public java.lang.String getSQLlibrary()

setSQLlibrary

public void setSQLlibrary(java.lang.String s)

getDefaultLibraries

public java.lang.String getDefaultLibraries()
Returns the value of the "Library list" field on the Server tab.
Returns:
The server name.

setDefaultLibraries

public void setDefaultLibraries(java.lang.String s)
Sets the value of the "Library list" field on the Server tab.
Parameters:
s - The library list.

getCommitMode

public java.lang.Object getCommitMode()
Returns the value of the "Commit mode" field on the Server tab.
Returns:
The commit mode.

setCommitMode

public void setCommitMode(java.lang.Object o)
Sets the value of the "Commit mode" field on the Server tab.
Parameters:
o - The commit mode.

getCommitModeChoices

public ChoiceDescriptor[] getCommitModeChoices()
Returns the list of values in the "Commit mode" drop down list.
Returns:
The list of values.

isEnableExtDynamic

public boolean isEnableExtDynamic()
Indicates whether the "Enable extended dynamic (package) support" check box on the Package tab is checked.
Returns:
True if the check box is checked

setEnableExtDynamic

public void setEnableExtDynamic(boolean b)
Sets the value of the "Enable extended dynamic (package) support" check box on the Package tab.
Parameters:
b - The check box state. True if it should be checked, false otherwise.

getPackage

public java.lang.String getPackage()
Returns the value of the "Package" field on the Package tab.
Returns:
The package name.

setPackage

public void setPackage(java.lang.String s)
Sets the value of the "Package" field on the Package tab.
Parameters:
s - The package name.

getPackageLibrary

public java.lang.String getPackageLibrary()
Returns the value of the "Package library" field on the Package tab.
Returns:
The package library.

setPackageLibrary

public void setPackageLibrary(java.lang.String s)
Sets the value of the "Package library" field on the Package tab.
Parameters:
s - The package library.

isCachePackageLocally

public boolean isCachePackageLocally()
Indicates whether the "Cache package locally" check box on the Package tab is checked.
Returns:
True if the check box is checked

setCachePackageLocally

public void setCachePackageLocally(boolean b)
Sets the value of the "Cache package locally" check box on the Package tab.
Parameters:
b - The check box state. True if it should be checked, false otherwise.

getUsageGroup

public java.lang.String getUsageGroup()
Returns the value of the "Usage" group on the Package tab.
Returns:
The selected radio button. AJDSP_USE_RADIOBUTTON returned when the "Use" radio button is selected. AJDSP_USEADD_RADIOBUTTON returned when the "Use and add" radio button is selected.

setUsageGroup

public void setUsageGroup(java.lang.String s)
Sets the value of the "Usage" group on the Package tab.
Parameters:
s - The radio button. AJDSP_USE_RADIOBUTTON if the "Use" radio button should be selected. AJDSP_USEADD_RADIOBUTTON if the "Use and add" radio button should be selected.

getUnusablePkgActionGroup

public java.lang.String getUnusablePkgActionGroup()
Returns the value of the "Unusable package" group on the Package tab.
Returns:
The selected radio button. AJDSP_SEND_EXCEP_RADIOBUTTON returned when the "Send exception" radio button is selected. AJDSP_POST_WARN_RADIOBUTTON returned when the "Post warning" radio button is selected. AJDSP_IGNORE_RADIOBUTTON returned when the "Ignore" radio button is selected.

setUnusablePkgActionGroup

public void setUnusablePkgActionGroup(java.lang.String s)
Sets the value of the "Unusable package" group on the Package tab.
Parameters:
s - The radio button. AJDSP_SEND_EXCEP_RADIOBUTTON if the "Send exception" radio button should be selected. AJDSP_POST_WARN_RADIOBUTTON if the "Post warning" radio button should be selected. AJDSP_IGNORE_RADIOBUTTON if the "Ignore" radio button should be selected.

isEnableLazyClose

public boolean isEnableLazyClose()
Indicates whether the "Enable lazy close support" check box on the Performance tab is checked.
Returns:
True if the check box is checked

setEnableLazyClose

public void setEnableLazyClose(boolean b)
Sets the value of the "Enable lazy close support" check box on the Performance tab.
Parameters:
b - The check box state. True if it should be checked, false otherwise.

isEnablePrefetch

public boolean isEnablePrefetch()
Indicates whether the "Enable pre-fetch" check box on the Performance tab is checked.
Returns:
True if the check box is checked

setEnablePrefetch

public void setEnablePrefetch(boolean b)
Sets the value of the "Enable pre-fetch" check box on the Performance tab.
Parameters:
b - The check box state. True if it should be checked, false otherwise.

isEnableDataCompression

public boolean isEnableDataCompression()
Indicates whether the "Enable data compression" check box on the Performance tab is checked.
Returns:
True if the check box is checked

setEnableDataCompression

public void setEnableDataCompression(boolean b)
Sets the value of the "Enable data compression" check box on the Performance tab.
Parameters:
b - The check box state. True if it should be checked, false otherwise.

getRecordBlockingCriteria

public java.lang.Object getRecordBlockingCriteria()
Returns the value of the "Record blocking criteria" field on the Performance tab.
Returns:
The record blocking criteria.

setRecordBlockingCriteria

public void setRecordBlockingCriteria(java.lang.Object o)
Sets the value of the "Record Blocking criteria" field on the Performance tab.
Parameters:
o - The record blocking criteria.

getRecordBlockingCriteriaChoices

public ChoiceDescriptor[] getRecordBlockingCriteriaChoices()
Returns the list of values in the "Record Blocking criteria"" drop down list.
Returns:
The list of values.

getRecordBlockingSize

public java.lang.Object getRecordBlockingSize()
Returns the value of the "Record blocking size" field on the Performance tab.
Returns:
The record blocking criteria.

setRecordBlockingSize

public void setRecordBlockingSize(java.lang.Object o)
Sets the value of the "Record Blocking size" field on the Performance tab.
Parameters:
o - The record blocking criteria.

getRecordBlockingSizeChoices

public ChoiceDescriptor[] getRecordBlockingSizeChoices()
Returns the list of values in the "Record Blocking size"" drop down list.
Returns:
The list of values.

getLOBThreshold

public java.lang.Object getLOBThreshold()
Returns the value of the "Large object threshold" field on the Performance tab.
Returns:
The large object threshold.

setLOBThreshold

public void setLOBThreshold(java.lang.Object o)
Sets the value of the "Large object threshold" field on the Performance tab.
Parameters:
o - The large object threshold.

getLOBThresholdChoices

public ChoiceDescriptor[] getLOBThresholdChoices()
Returns the list of values in the "Large object threshold" drop down list.
Returns:
The list of values.

getSortType

public java.lang.Object getSortType()
Returns the value of the "Sort type" field on the Language tab.
Returns:
The sort type.

setSortType

public void setSortType(java.lang.Object o)
Sets the value of the "Sort type" field on the Language tab.
Parameters:
o - The sort type.

getSortTypeChoices

public ChoiceDescriptor[] getSortTypeChoices()
Returns the list of values in the "Sort type" drop down list.
Returns:
The list of values.

getSortTable

public java.lang.String getSortTable()
Returns the value of the "Sort library/table name" field on the Language tab.
Returns:
The qualified sort table name.

setSortTable

public void setSortTable(java.lang.String s)
Sets the value of the "Sort library/table name" field on the Language tab.
Parameters:
s - The qualified sort table name.

getSortWeightGroup

public java.lang.String getSortWeightGroup()
Returns the value of the "Sort weight" group on the Language tab.
Returns:
The selected radio button. AJDSP_SHAREDWEIGHT_RADIOBUTTON returned when the "Shared" radio button is selected. AJDSP_UNIQUEWEIGHT_RADIOBUTTON returned when the "Unique" radio button is selected.

setSortWeightGroup

public void setSortWeightGroup(java.lang.String s)
Sets the value of the "Sort weight" group on the Language tab.
Parameters:
s - The radio button. AJDSP_SHAREDWEIGHT_RADIOBUTTON if the "Shared" radio button should be selected. AJDSP_UNIQUEWEIGHT_RADIOBUTTON if the "Unique" radio button should be selected.

getLanguage

public java.lang.Object getLanguage()
Returns the value of the "Language" field on the Language tab.
Returns:
The language.

setLanguage

public void setLanguage(java.lang.Object o)
Sets the value of the "Language" field on the Language tab.
Parameters:
o - The language.

getLanguageChoices

public ChoiceDescriptor[] getLanguageChoices()
Returns the list of values in the "Language"" drop down list.
Returns:
The list of values.

getAccessTypeGroup

public java.lang.String getAccessTypeGroup()
Returns the value of the "Access type" group on the Other tab.
Returns:
The selected radio button. AJDSP_ACCESSTYPE_RW returned when the "read/write" radio button is selected. AJDSP_ACCESSTYPE_RC returned when the "read/call" radio button is selected. AJDSP_ACCESSTYPE_RO returned when the "read only" radio button is selected.

setAccessTypeGroup

public void setAccessTypeGroup(java.lang.String s)
Sets the value of the "Access type" group on the Other tab.
Parameters:
s - The radio button. AJDSP_ACCESSTYPE_RW if the "read/write" radio button should be selected. AJDSP_ACCESSTYPE_RC if the "read/call" radio button should be selected. AJDSP_ACCESSTYPE_RO if the (read only) radio button should be selected.

getRemarksSourceGroup

public java.lang.String getRemarksSourceGroup()
Returns the value of the "Remarks source" group on the Other tab.
Returns:
The selected radio button. AJDSP_SQLDESC_RADIOBUTTON returned when the "SQL" radio button is selected. AJDSP_OS400DESC_RADIOBUTTON returned when the "OS/400" radio button is selected.

setRemarksSourceGroup

public void setRemarksSourceGroup(java.lang.String s)
Sets the value of the "Remarks source" group on the Other tab.
Parameters:
s - The radio button. AJDSP_SQLDESC_RADIOBUTTON if the "SQL" radio button should be selected. AJDSP_OS400DESC_RADIOBUTTON if the "OS/400" radio button should be selected.

isTranslate65535

public boolean isTranslate65535()
Indicates whether the "Translate CCSID 65535" check box on the Translation tab is checked.
Returns:
True if the check box is checked

setTranslate65535

public void setTranslate65535(boolean b)
Sets the value of the "Translate CCSID 65535" check box on the Translation tab.
Parameters:
b - The check box state. True if it should be checked, false otherwise.

getNamingConvention

public java.lang.Object getNamingConvention()
Returns the value of the "Naming convention" field on the Format tab.
Returns:
The naming convention.

setNamingConvention

public void setNamingConvention(java.lang.Object o)
Sets the value of the "Naming convention" field on the Format tab.
Parameters:
o - The naming convention.

getNamingConventionChoices

public ChoiceDescriptor[] getNamingConventionChoices()
Returns the list of values in the "Naming convention"" drop down list.
Returns:
The list of values.

getDecimalSeparator

public java.lang.Object getDecimalSeparator()
Returns the value of the "Decimal separator" field on the Format tab.
Returns:
The decimal separator.

setDecimalSeparator

public void setDecimalSeparator(java.lang.Object o)
Sets the value of the "Decimal separator" field on the Format tab.
Parameters:
o - The decimal separator.

getDecimalSeparatorChoices

public ChoiceDescriptor[] getDecimalSeparatorChoices()
Returns the list of values in the "Decimal separator"" drop down list.
Returns:
The list of values.

getTimeFormat

public java.lang.Object getTimeFormat()
Returns the value of the "Time format" field on the Format tab.
Returns:
The time format.

setTimeFormat

public void setTimeFormat(java.lang.Object o)
Sets the value of the "Time format" field on the Format tab.
Parameters:
o - The time format.

getTimeFormatChoices

public ChoiceDescriptor[] getTimeFormatChoices()
Returns the list of values in the "Time format" drop down list.
Returns:
The list of values.

getTimeSeparator

public java.lang.Object getTimeSeparator()
Returns the value of the "Time separator" field on the Format tab.
Returns:
The time separator.

setTimeSeparator

public void setTimeSeparator(java.lang.Object o)
Sets the value of the "Time separator" field on the Format tab.
Parameters:
o - The time separator.

getTimeSeparatorChoices

public ChoiceDescriptor[] getTimeSeparatorChoices()
Returns the list of values in the "Time separator" drop down list.
Returns:
The list of values.

getDateFormat

public java.lang.Object getDateFormat()
Returns the value of the "Date format" field on the Format tab.
Returns:
The date format.

setDateFormat

public void setDateFormat(java.lang.Object o)
Sets the value of the "Date format" field on the Format tab.
Parameters:
o - The date format.

getDateFormatChoices

public ChoiceDescriptor[] getDateFormatChoices()
Returns the list of values in the "Date format" drop down list.
Returns:
The list of values.

getDateSeparator

public java.lang.Object getDateSeparator()
Returns the value of the "Date separator" field on the Format tab.
Returns:
The date separator.

setDateSeparator

public void setDateSeparator(java.lang.Object o)
Sets the value of the "Date separator" field on the Format tab.
Parameters:
o - The date separator.

getDateSeparatorChoices

public ChoiceDescriptor[] getDateSeparatorChoices()
Returns the list of values in the "Date separator" drop down list.
Returns:
The list of values.

getDefaultUserID

public java.lang.String getDefaultUserID()
Returns the value of the "Default user ID" field on the Connection Options tab.
Returns:
The naming convention.

setDefaultUserID

public void setDefaultUserID(java.lang.String s)
Sets the value of the "Default user ID" field on the Connection Options tab.
Parameters:
s - The user ID.

isUseSSL

public boolean isUseSSL()
Indicates whether the "SSL" check box on the Translation tab is checked.
Returns:
True if the check box is checked

setUseSSL

public void setUseSSL(boolean b)
Sets the value of the "SSL" check box on the Connection Options tab.
Parameters:
b - The check box state. True if it should be checked, false otherwise.

getCapabilities

public Capabilities getCapabilities()
Required by the framework. Not used.
Specified by:
getCapabilities in interface DataBean
Following copied from interface: com.ibm.as400.ui.framework.java.DataBean
Returns:
a Capabilities object which reflects this object's capabilities
See Also:
Capabilities

verifyChanges

public void verifyChanges()
Required by the framework. Not used.
Specified by:
verifyChanges in interface DataBean

save

public void save()
Required by the framework. Not used.
Specified by:
save in interface DataBean

load

public void load()
Description copied from interface: DataBean
Initializes this object.

This method should be called prior to handing the DataBean off to the UI Framework. On return from this method the bean should be in a state where it is ready to return data on any of its accessor methods.

Specified by:
load in interface DataBean