|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.etools.iseries.comm.ISeriesAbstractHostAPIProcessor com.ibm.etools.iseries.comm.ISeriesRetrieveDatabaseFileDescription
public class ISeriesRetrieveDatabaseFileDescription
A class for retrieving the file definition template for an OS/400 file. This class uses the OS/400 Retrieve Database File Description (QDBRTVFD) system api to retrieve the information.
Nested Class Summary | |
---|---|
protected class |
ISeriesRetrieveDatabaseFileDescription.API_Output
A protected class to return the output from calling the AS400 API's. |
Nested classes/interfaces inherited from class com.ibm.etools.iseries.comm.ISeriesAbstractHostAPIProcessor |
---|
ISeriesAbstractHostAPIProcessor.HostAPIErrorCodeStructure |
Field Summary | |
---|---|
static String |
Copyright
|
Constructor Summary | |
---|---|
ISeriesRetrieveDatabaseFileDescription()
Constructor to use when you do not already have an AS400 object. |
|
ISeriesRetrieveDatabaseFileDescription(AS400 system)
Constructor for ISeriesListEditDescriptions. |
Method Summary | |
---|---|
static String |
convertDateTimeFormat(byte dattimfmt)
Convert the single byte representation of the date time format to the equivalent String representation |
static char |
convertDateTimeSeparator(byte dattimsep)
Convert the single byte representation of the date time separator to the equivalent String representation |
boolean |
isAllowOverrides()
Returns whether or not overrides are processed by the api. |
protected static String |
lookupKeyword(byte id)
|
List |
retrieveFieldList(String library,
String file,
String record,
String fieldFilter)
Retrieve a list of fields, returning objects created by a supplied object factory. |
int |
retrieveFileCCSID(String libraryName,
String fileName)
Specialized method for quickly retrieving the file's CCSID. |
IISeriesHostFileDefinition |
retrieveFileDefinition(String libraryName,
String fileName,
String recordName)
Retrieve the file definition for the file. |
IISeriesHostFormatDefinition |
retrieveFormatDefinition(String libraryName,
String fileName,
String recordName)
Retrieve the specified record format definition for file. |
IISeriesHostFormatDefinition |
retrieveFormatDefinition(String libraryName,
String fileName,
String recordName,
IISeriesHostDatabaseFileDescriptionFactory factory)
Retrieve the specified record format definition for file. |
IISeriesHostFormatDefinition |
retrieveFormatDefinition(String libraryName,
String fileName,
String recordName,
String fieldFilter,
IISeriesHostDatabaseFileDescriptionFactory factory,
boolean includeFormatData)
Retrieve the specified record format definition for file. |
IISeriesHostRecordFormatKeyInformation[] |
retrieveKeyInformation(String libraryName,
String fileName)
Method retrieveKeyInformation. |
IISeriesHostRecordFormatKeyInformation[] |
retrieveKeyInformation(String libraryName,
String fileName,
String record)
Method retrieveKeyInformation. |
void |
setAllowOverrides(boolean allowOverrides)
Sets whether or not overrides are to be processed by the api. |
void |
setDDMFile(boolean ddmFile)
Sets whether or not the api is being called for a DDM file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String Copyright
Constructor Detail |
---|
public ISeriesRetrieveDatabaseFileDescription()
public ISeriesRetrieveDatabaseFileDescription(AS400 system)
system
- AS400 Toolbox object used to connect to the iSeriesMethod Detail |
---|
public IISeriesHostFileDefinition retrieveFileDefinition(String libraryName, String fileName, String recordName) throws Exception
libraryName
- library where the file is located, can be either a library name, *CURLIB or *LIBLfileName
- name of the filerecordName
- record name or *FIRST to use the first record in the file
ISeriesAPIErrorCodeException
- if there was an error while running the OS/400 system api
IBM
- Toolbox for Java exceptions if there was a problem calling the OS/400 system api
Exception
public IISeriesHostFormatDefinition retrieveFormatDefinition(String libraryName, String fileName, String recordName) throws Exception
libraryName
- library where the file is located, can be either a library name, *CURLIB or *LIBLfileName
- name of the filerecordName
- record name or *FIRST to use the first record in the file
ISeriesAPIErrorCodeException
- if there was an error while running the OS/400 system api
IBM
- Toolbox for Java exceptions if there was a problem calling the OS/400 system api
Exception
public IISeriesHostFormatDefinition retrieveFormatDefinition(String libraryName, String fileName, String recordName, IISeriesHostDatabaseFileDescriptionFactory factory) throws Exception
libraryName
- library where the file is located, can be either a library name, *CURLIB or *LIBLfileName
- name of the filerecordName
- record name or *FIRST to use the first record in the file
ISeriesAPIErrorCodeException
- if there was an error while running the OS/400 system api
IBM
- Toolbox for Java exceptions if there was a problem calling the OS/400 system api
Exception
public IISeriesHostFormatDefinition retrieveFormatDefinition(String libraryName, String fileName, String recordName, String fieldFilter, IISeriesHostDatabaseFileDescriptionFactory factory, boolean includeFormatData) throws Exception
libraryName
- library where the file is located, can be either a library name, *CURLIB or *LIBLfileName
- name of the filerecordName
- record name or *FIRST to use the first record in the filefieldFilter
- Name filter for extracting a subset of the fields (or a single field)includeFormatData
- Pass true if record format information should be included, false if you are only
interested in field information
ISeriesAPIErrorCodeException
- if there was an error while running the OS/400 system api
IBM
- Toolbox for Java exceptions if there was a problem calling the OS/400 system api
Exception
public IISeriesHostRecordFormatKeyInformation[] retrieveKeyInformation(String libraryName, String fileName) throws Exception
libraryName
- library where the file is located, can be either a library name, *CURLIB or *LIBLfileName
- name of the file
ISeriesAPIErrorCodeException
- if there was an error while running the OS/400 system api
IBM
- Toolbox for Java exceptions if there was a problem calling the OS/400 system api
Exception
public IISeriesHostRecordFormatKeyInformation[] retrieveKeyInformation(String libraryName, String fileName, String record) throws Exception
libraryName
- library where the file is located, can be either a library name, *CURLIB or *LIBLfileName
- name of the file
ISeriesAPIErrorCodeException
- if there was an error while running the OS/400 system api
IBM
- Toolbox for Java exceptions if there was a problem calling the OS/400 system api
Exception
public static String convertDateTimeFormat(byte dattimfmt)
public static char convertDateTimeSeparator(byte dattimsep)
public int retrieveFileCCSID(String libraryName, String fileName) throws Exception
libraryName
- library where the file is located, can be either a library name, *CURLIB or *LIBLfileName
- name of the file
ISeriesAPIErrorCodeException
- if there was an error while running the OS/400 system api
IBM
- Toolbox for Java exceptions if there was a problem calling the OS/400 system api
Exception
public boolean isAllowOverrides()
public void setAllowOverrides(boolean allowOverrides)
allowOverrides
- true if overrides should be processed, false if they should not be processedpublic void setDDMFile(boolean ddmFile)
ddmFile
- true if the api is being called on a DDM file, false if it is being called on any other database file type.protected static String lookupKeyword(byte id)
public List retrieveFieldList(String library, String file, String record, String fieldFilter) throws Exception
Note this API does not yet support multi-generic lists. Explicit names must be provided for the library, file and record parameters.
library
- The library where the database file is located.file
- The file for which to retrieve field information.record
- The record for which to retrieve field information.factory
- An object implementing the
IISeriesHostListDatabaseFieldFactory
interface. This interface prescribes one method for creating instances of IISeriesHostDatabaseField
Exception
IISeriesHostDatabaseField
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |