Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.services.qsys.objects
Class QSYSHostDatabaseFile

java.lang.Object
  extended by com.ibm.etools.iseries.comm.interfaces.ISeriesHostObjectNameOnly
      extended by com.ibm.etools.iseries.comm.interfaces.ISeriesHostObjectBrief
          extended by com.ibm.etools.iseries.comm.interfaces.ISeriesHostObjectBasic
              extended by com.ibm.etools.iseries.comm.interfaces.ISeriesHostObjectExhaustive
                  extended by com.ibm.etools.iseries.services.qsys.objects.QSYSHostObject
                      extended by com.ibm.etools.iseries.services.qsys.objects.QSYSHostFile
                          extended by com.ibm.etools.iseries.services.qsys.objects.QSYSHostDatabaseFile
All Implemented Interfaces:
IISeriesHostFileDefinition, IISeriesHostObjectBasic, IISeriesHostObjectBrief, IISeriesHostObjectExhaustive, IISeriesHostObjectNameOnly, IQSYSDatabaseFile, IQSYSFile, IQSYSObject, IQSYSResource
Direct Known Subclasses:
QSYSHostDDMFile, QSYSHostLogicalFile, QSYSHostPhysicalFile

public class QSYSHostDatabaseFile
extends QSYSHostFile
implements IQSYSDatabaseFile

Class representing an IBM i physical file.


Field Summary
static String copyright
           
 
Fields inherited from class com.ibm.etools.iseries.comm.interfaces.ISeriesHostObjectExhaustive
activeDate, allowChgByPgm, apar, auditingValue, auxPool, changedByPgm, compiler, compressionStatus, Copyright, daysUsed, domain, lastUsedDate, level, licPgm, overflowedASP, owner, primaryGroup, profile, ptf, resetDate, restoredDate, saveCmd, saveDate, saveDevice, saveFile, saveLabel, saveLib, saveSeqNbr, saveSize, saveVolumeId, srcDate, srcFile, srcLib, srcMbr, storage, systemCreated, systemLevel, usageInfoUpdated, userChanged, userDefinedAttribute
 
Fields inherited from class com.ibm.etools.iseries.comm.interfaces.ISeriesHostObjectBasic
changeDate, createDate, size
 
Fields inherited from class com.ibm.etools.iseries.comm.interfaces.ISeriesHostObjectBrief
file, subtype, type
 
Fields inherited from class com.ibm.etools.iseries.comm.interfaces.ISeriesHostObjectNameOnly
library, name
 
Fields inherited from interface com.ibm.etools.iseries.comm.interfaces.IISeriesHostObjectExhaustive
AUDITING_ALL, AUDITING_CHANGE, AUDITING_NONE, AUDITING_USRPRF, COMPRESSION_COMPRESSED, COMPRESSION_NOTCOMPRESSABLE, COMPRESSION_NOTCOMPRESSED, COMPRESSION_SAVEDFREED, COMPRESSION_TEMPORARILYCOMPRESSED, Copyright, DOMAIN_SYSTEM, DOMAIN_USER, STORAGE_FREE, STORAGE_KEEP
 
Fields inherited from interface com.ibm.etools.iseries.comm.interfaces.IISeriesHostObjectBrief
STATUS_DAMAGED, STATUS_LOCKED, STATUS_NOTAUTHORIZED, STATUS_OK, STATUS_PARTIALLYDAMAGED, STATUS_STRING_DAMAGED, STATUS_STRING_LOCKED, STATUS_STRING_NOTAUTHORIZED, STATUS_STRING_PARTIALLYDAMAGED
 
Fields inherited from interface com.ibm.etools.iseries.comm.interfaces.IISeriesHostFileDefinition
ARRIVAL_SEQ, Copyright, ENCODED_VECTOR_SEQ, KEYED_FCFO_SEQ, KEYED_FIFO_SEQ, KEYED_LIFO_SEQ, KEYED_NO_ORDER_SEQ, KEYED_UNIQUE_SEQ
 
Constructor Summary
QSYSHostDatabaseFile()
           
 
Method Summary
 void addBasedOnFile(String library, String file, String record)
          Add a based on file to the list of based on files for this logical file.
 String getAccessPathType()
          Get the access path type.
 boolean getAlternateSequence()
          Check whether this record format uses an alternate collating sequence (ALTSEQ)
 int getBasedOnCount()
          Get the number of files this file is based on.
 List<String> getBasedOnFiles()
          Return a list of the based on files
 boolean getDynamicSelect()
          Check whether this record format uses the dynamic selection indicator (DYNSLT).
 boolean getIGCField()
          Check whether this record format contains DBCS or Graphic data.
 boolean getIGCLiteral()
          Check whether this record format contains DBCS or Graphic literals.
 boolean getKeyedAccessPath()
          Check whether this record format has a keyed sequence access path.
 String getLangId()
          Get the language identifier
 IQSYSDatabaseFileRecordFormat getRecordFormat(IProgressMonitor monitor)
          This operation is not supported, use the QSYSObjectService directly instead.
 IQSYSDatabaseFileRecordFormat getRecordFormat(String record, IProgressMonitor monitor)
          This operation is not supported, use the QSYSObjectService directly instead.
 boolean getSelectOmitLF()
          Check whether this file is a select/omit logical file.
 boolean isJoinLogicalFile()
          Check whether this record format is a join logical file
 boolean isSourceFile()
          Check whether this record format is source file.
 void setAccessPathType(String accessPathType)
          Set the access path type for this record format.
 void setAlternateSequence(boolean altSeq)
          Set whether this record format uses an alternate collating sequence (ALTSEQ)
 void setBasedOnCount(int count)
          Set the number of files this file is based on.
 void setBasedOnFiles(List<String> files)
          Set the based on files
 void setDynamicSelect(boolean dynamicSelect)
          Set whether this record format uses the dynamic selection indicator (DYNSLT).
 void setIGCField(boolean igcField)
          Set whether this record format contains DBCS or Graphic data.
 void setIGCLiteral(boolean igcLiteral)
          Set whether this record format contains DBCS or Graphic literals.
 void setIsSourceFile(boolean sourceFile)
          Set whether this record format is source file or a data file.
 void setJoinLogicalFile(boolean jfile)
          Set whether this record format is a join logical file
 void setKeyedAccessPath(boolean keyed)
          Set whether this record format has a keyed sequence access path.
 void setLangId(String langId)
          Set the language identifier
 void setSelectOmitLF(boolean selectOmitLF)
          Set whether this file is a select/omit logical file.
 
Methods inherited from class com.ibm.etools.iseries.services.qsys.objects.QSYSHostFile
listRecordFormats
 
Methods inherited from class com.ibm.etools.iseries.services.qsys.objects.QSYSHostObject
clearCachedProperties, exists, getParent
 
Methods inherited from class com.ibm.etools.iseries.comm.interfaces.ISeriesHostObjectExhaustive
getAllowChangeByProgram, getAPAR, getAuxiliaryStoragePool, getChangedByProgram, getCompiler, getCompressionStatus, getCreatorUserProfile, getDaysUsedCount, getDomain, getLastUsedDate, getLicensedProgram, getObjectAuditingValue, getObjectLevel, getObjectOverflowedASP, getOwner, getPrimaryGroup, getPTF, getResetDate, getRestoredDate, getSaveActiveDate, getSaveCommand, getSavedDate, getSaveDevice, getSaveFileName, getSaveLabel, getSaveLibrary, getSaveSequenceNumber, getSaveSize, getSaveVolumeId, getSourceChangedDate, getSourceFile, getSourceLibrary, getSourceMember, getStorage, getSystemLevel, getSystemWhereCreated, getUsageInformationUpdated, getUserChanged, getUserDefinedAttribute, setAllowChangeByProgram, setAPAR, setAuxiliaryStoragePool, setChangedByProgram, setCompiler, setCompressionStatus, setCreatorUserProfile, setDaysUsedCount, setDomain, setLastUsedDate, setLicensedProgram, setObjectAuditingValue, setObjectLevel, setObjectOverflowedASP, setOwner, setPrimaryGroup, setPTF, setResetDate, setRestoredDate, setSaveActiveDate, setSaveCommand, setSavedDate, setSaveDevice, setSaveFileName, setSaveLabel, setSaveLibrary, setSaveSequenceNumber, setSaveSize, setSaveVolumeId, setSourceChangedDate, setSourceFile, setSourceLibrary, setSourceMember, setStorage, setSystemLevel, setSystemWhereCreated, setUsageInformationUpdated, setUserChanged, setUserDefinedAttribute, writeObjectInfo
 
Methods inherited from class com.ibm.etools.iseries.comm.interfaces.ISeriesHostObjectBasic
equals, getAbsoluteName, getDateCreated, getDateModified, getFullName, getSize, hashCode, setDateCreated, setDateModified, setSize
 
Methods inherited from class com.ibm.etools.iseries.comm.interfaces.ISeriesHostObjectBrief
getDescription, getFile, getInformationStatus, getSubType, getType, setDescription, setFile, setInformationStatus, setSubType, setType, toString
 
Methods inherited from class com.ibm.etools.iseries.comm.interfaces.ISeriesHostObjectNameOnly
getLibrary, getName, setLibrary, setName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.ibm.etools.iseries.services.qsys.api.IQSYSFile
listRecordFormats
 
Methods inherited from interface com.ibm.etools.iseries.services.qsys.api.IQSYSObject
clearCachedProperties
 
Methods inherited from interface com.ibm.etools.iseries.comm.interfaces.IISeriesHostObjectExhaustive
getAllowChangeByProgram, getAPAR, getAuxiliaryStoragePool, getChangedByProgram, getCompiler, getCompressionStatus, getCreatorUserProfile, getDaysUsedCount, getDomain, getLastUsedDate, getLicensedProgram, getObjectAuditingValue, getObjectLevel, getObjectOverflowedASP, getOwner, getPrimaryGroup, getPTF, getResetDate, getRestoredDate, getSaveActiveDate, getSaveCommand, getSavedDate, getSaveDevice, getSaveFileName, getSaveLabel, getSaveLibrary, getSaveSequenceNumber, getSaveSize, getSaveVolumeId, getSourceChangedDate, getSourceFile, getSourceLibrary, getSourceMember, getStorage, getSystemLevel, getSystemWhereCreated, getUsageInformationUpdated, getUserChanged, getUserDefinedAttribute, setAllowChangeByProgram, setAPAR, setAuxiliaryStoragePool, setChangedByProgram, setCompiler, setCompressionStatus, setCreatorUserProfile, setDaysUsedCount, setDomain, setLastUsedDate, setLicensedProgram, setObjectAuditingValue, setObjectLevel, setObjectOverflowedASP, setOwner, setPrimaryGroup, setPTF, setResetDate, setRestoredDate, setSaveActiveDate, setSaveCommand, setSavedDate, setSaveDevice, setSaveFileName, setSaveLabel, setSaveLibrary, setSaveSequenceNumber, setSaveSize, setSaveVolumeId, setSourceChangedDate, setSourceFile, setSourceLibrary, setSourceMember, setStorage, setSystemLevel, setSystemWhereCreated, setUsageInformationUpdated, setUserChanged, setUserDefinedAttribute
 
Methods inherited from interface com.ibm.etools.iseries.comm.interfaces.IISeriesHostObjectBasic
getDateCreated, getDateModified, getSize, setDateCreated, setDateModified, setSize
 
Methods inherited from interface com.ibm.etools.iseries.comm.interfaces.IISeriesHostObjectBrief
getDescription, getFile, getInformationStatus, getSubType, getType, setDescription, setFile, setInformationStatus, setSubType, setType
 
Methods inherited from interface com.ibm.etools.iseries.comm.interfaces.IISeriesHostObjectNameOnly
getLibrary, getName, setLibrary, setName, toString, writeObjectInfo
 
Methods inherited from interface com.ibm.etools.iseries.services.qsys.api.IQSYSResource
exists, getAbsoluteName, getDateCreated, getDateModified, getDescription, getFullName, getLibrary, getName, getParent, getSize, getSubType, getType, setDescription, setLibrary, setName, setSubType, setType
 

Field Detail

copyright

public static String copyright
Constructor Detail

QSYSHostDatabaseFile

public QSYSHostDatabaseFile()
Method Detail

getRecordFormat

public IQSYSDatabaseFileRecordFormat getRecordFormat(IProgressMonitor monitor)
                                              throws SystemMessageException,
                                                     InterruptedException
This operation is not supported, use the QSYSObjectService directly instead. (non-Javadoc)

Specified by:
getRecordFormat in interface IQSYSDatabaseFile
Throws:
SystemMessageException
InterruptedException
See Also:
com.ibm.etools.iseries.services.qsys.api.IQSYSPhysicalFile#getRecordFormat(org.eclipse.core.runtime.IProgressMonitor)

getRecordFormat

public IQSYSDatabaseFileRecordFormat getRecordFormat(String record,
                                                     IProgressMonitor monitor)
                                              throws SystemMessageException,
                                                     InterruptedException
This operation is not supported, use the QSYSObjectService directly instead. (non-Javadoc)

Specified by:
getRecordFormat in interface IQSYSDatabaseFile
Specified by:
getRecordFormat in interface IQSYSFile
Overrides:
getRecordFormat in class QSYSHostFile
Throws:
SystemMessageException
InterruptedException
See Also:
com.ibm.etools.iseries.services.qsys.api.IQSYSPhysicalFile#getRecordFormat(java.lang.String, org.eclipse.core.runtime.IProgressMonitor)

getAccessPathType

public String getAccessPathType()
Description copied from interface: IISeriesHostFileDefinition
Get the access path type.

Specified by:
getAccessPathType in interface IISeriesHostFileDefinition
See Also:
IISeriesHostFileDefinition.getAccessPathType()

getLangId

public String getLangId()
Description copied from interface: IISeriesHostFileDefinition
Get the language identifier

Specified by:
getLangId in interface IISeriesHostFileDefinition

getAlternateSequence

public boolean getAlternateSequence()
Description copied from interface: IISeriesHostFileDefinition
Check whether this record format uses an alternate collating sequence (ALTSEQ)

Specified by:
getAlternateSequence in interface IISeriesHostFileDefinition
See Also:
IISeriesHostFileDefinition.getAlternateSequence()

getBasedOnCount

public int getBasedOnCount()
Description copied from interface: IISeriesHostFileDefinition
Get the number of files this file is based on.

Specified by:
getBasedOnCount in interface IISeriesHostFileDefinition
See Also:
IISeriesHostFileDefinition.getBasedOnCount()

getDynamicSelect

public boolean getDynamicSelect()
Description copied from interface: IISeriesHostFileDefinition
Check whether this record format uses the dynamic selection indicator (DYNSLT). If on, the selection and omission tests specified for the file are done when the file is read. If off, when the access path is updated.

Specified by:
getDynamicSelect in interface IISeriesHostFileDefinition
See Also:
IISeriesHostFileDefinition.getDynamicSelect()

getIGCLiteral

public boolean getIGCLiteral()
Description copied from interface: IISeriesHostFileDefinition
Check whether this record format contains DBCS or Graphic literals.

Specified by:
getIGCLiteral in interface IISeriesHostFileDefinition
See Also:
IISeriesHostFileDefinition.getIGCLiteral()

getKeyedAccessPath

public boolean getKeyedAccessPath()
Description copied from interface: IISeriesHostFileDefinition
Check whether this record format has a keyed sequence access path.

Specified by:
getKeyedAccessPath in interface IISeriesHostFileDefinition
See Also:
IISeriesHostFileDefinition.getKeyedAccessPath()

getSelectOmitLF

public boolean getSelectOmitLF()
Description copied from interface: IISeriesHostFileDefinition
Check whether this file is a select/omit logical file.

Specified by:
getSelectOmitLF in interface IISeriesHostFileDefinition
See Also:
IISeriesHostFileDefinition.getSelectOmitLF()

isJoinLogicalFile

public boolean isJoinLogicalFile()
Description copied from interface: IISeriesHostFileDefinition
Check whether this record format is a join logical file

Specified by:
isJoinLogicalFile in interface IISeriesHostFileDefinition
See Also:
IISeriesHostFileDefinition.isJoinLogicalFile()

setAccessPathType

public void setAccessPathType(String accessPathType)
Description copied from interface: IISeriesHostFileDefinition
Set the access path type for this record format.

Specified by:
setAccessPathType in interface IISeriesHostFileDefinition
See Also:
IISeriesHostFileDefinition.setAccessPathType(String)

setAlternateSequence

public void setAlternateSequence(boolean altSeq)
Description copied from interface: IISeriesHostFileDefinition
Set whether this record format uses an alternate collating sequence (ALTSEQ)

Specified by:
setAlternateSequence in interface IISeriesHostFileDefinition
See Also:
IISeriesHostFileDefinition.setAlternateSequence(boolean)

setBasedOnCount

public void setBasedOnCount(int count)
Description copied from interface: IISeriesHostFileDefinition
Set the number of files this file is based on.

Specified by:
setBasedOnCount in interface IISeriesHostFileDefinition
See Also:
IISeriesHostFileDefinition.setBasedOnCount(int)

setDynamicSelect

public void setDynamicSelect(boolean dynamicSelect)
Description copied from interface: IISeriesHostFileDefinition
Set whether this record format uses the dynamic selection indicator (DYNSLT).

Specified by:
setDynamicSelect in interface IISeriesHostFileDefinition
See Also:
IISeriesHostFileDefinition.setDynamicSelect(boolean)

setIGCLiteral

public void setIGCLiteral(boolean igcLiteral)
Description copied from interface: IISeriesHostFileDefinition
Set whether this record format contains DBCS or Graphic literals.

Specified by:
setIGCLiteral in interface IISeriesHostFileDefinition
See Also:
IISeriesHostFileDefinition.setIGCLiteral(boolean)

setKeyedAccessPath

public void setKeyedAccessPath(boolean keyed)
Description copied from interface: IISeriesHostFileDefinition
Set whether this record format has a keyed sequence access path.

Specified by:
setKeyedAccessPath in interface IISeriesHostFileDefinition
See Also:
IISeriesHostFileDefinition.setKeyedAccessPath(boolean)

setSelectOmitLF

public void setSelectOmitLF(boolean selectOmitLF)
Description copied from interface: IISeriesHostFileDefinition
Set whether this file is a select/omit logical file.

Specified by:
setSelectOmitLF in interface IISeriesHostFileDefinition
See Also:
IISeriesHostFileDefinition.setSelectOmitLF(boolean)

setJoinLogicalFile

public void setJoinLogicalFile(boolean jfile)
Description copied from interface: IISeriesHostFileDefinition
Set whether this record format is a join logical file

Specified by:
setJoinLogicalFile in interface IISeriesHostFileDefinition
See Also:
IISeriesHostFileDefinition.setJoinLogicalFile(boolean)

getIGCField

public boolean getIGCField()
Description copied from interface: IISeriesHostFileDefinition
Check whether this record format contains DBCS or Graphic data.

Specified by:
getIGCField in interface IISeriesHostFileDefinition
See Also:
IISeriesHostFileDefinition.getIGCField()

setIGCField

public void setIGCField(boolean igcField)
Description copied from interface: IISeriesHostFileDefinition
Set whether this record format contains DBCS or Graphic data.

Specified by:
setIGCField in interface IISeriesHostFileDefinition
See Also:
IISeriesHostFileDefinition.setIGCField(boolean)

isSourceFile

public boolean isSourceFile()
Description copied from interface: IISeriesHostFileDefinition
Check whether this record format is source file. If the file is not a source file then it must be a data file.

Specified by:
isSourceFile in interface IISeriesHostFileDefinition
See Also:
IISeriesHostFileDefinition.isSourceFile()

setIsSourceFile

public void setIsSourceFile(boolean sourceFile)
Description copied from interface: IISeriesHostFileDefinition
Set whether this record format is source file or a data file.

Specified by:
setIsSourceFile in interface IISeriesHostFileDefinition
See Also:
IISeriesHostFileDefinition.setIsSourceFile(boolean)

getBasedOnFiles

public List<String> getBasedOnFiles()
Description copied from interface: IISeriesHostFileDefinition
Return a list of the based on files

Specified by:
getBasedOnFiles in interface IISeriesHostFileDefinition
See Also:
IISeriesHostFileDefinition.getBasedOnFiles()

addBasedOnFile

public void addBasedOnFile(String library,
                           String file,
                           String record)
Description copied from interface: IISeriesHostFileDefinition
Add a based on file to the list of based on files for this logical file.

Specified by:
addBasedOnFile in interface IISeriesHostFileDefinition
See Also:
IISeriesHostFileDefinition.addBasedOnFile(String, String, String)

setLangId

public void setLangId(String langId)
Description copied from interface: IISeriesHostFileDefinition
Set the language identifier

Specified by:
setLangId in interface IISeriesHostFileDefinition

setBasedOnFiles

public void setBasedOnFiles(List<String> files)
Description copied from interface: IQSYSDatabaseFile
Set the based on files

Specified by:
setBasedOnFiles in interface IQSYSDatabaseFile

Rational Developer for Power Systems Software
V7.6

Copyright 2011 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.