|
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 SubSystem com.ibm.etools.iseries.subsystems.qsys.QSYSAbstractSubSystem com.ibm.etools.iseries.subsystems.qsys.objects.QSYSObjectSubSystem
public class QSYSObjectSubSystem
Subsystem implementation for QSYS library file subsystem.
Field Summary | |
---|---|
static String |
copyright
|
Constructor Summary | |
---|---|
protected |
QSYSObjectSubSystem(IHost host,
IConnectorService connectorService)
Create a QSYSObjectSubSystem. |
Method Summary | |
---|---|
protected void |
addResolvedFilterStringObjects(Vector allChildrenSoFar,
Object[] childrenForThisFilterString,
String[] allFilterStrings,
int currFilterStringIndex)
|
boolean |
checkAuthority(String library,
String object,
String objectType,
String authorityList)
Check object authorities |
boolean |
checkAuthority(String library,
String object,
String objectType,
String authorityList,
boolean cacheResults)
Check object authorities |
boolean |
copyLibrary(Shell shell,
IQSYSLibrary srcLibrary,
String newName,
boolean processCmdLineParm,
IProgressMonitor monitor)
Copy a given library to a new library of the given name in the given connection |
boolean |
copyMember(Shell shell,
IQSYSMember srcMember,
IQSYSObject tgtFile,
String newName,
boolean processCmdLineParm)
Copy a given member to the given file |
boolean |
copyObject(Shell shell,
IQSYSObject srcObject,
IQSYSLibrary tgtLibrary,
String newName,
boolean processCmdLineParm)
Copy a given object to the given library |
IQSYSFile |
createFileWithAbsoluteName(String path,
int recordLength)
Create a new src physical file with the specified path and record length |
IQSYSLibrary |
createLibraryWithAbsoluteName(String libraryName)
Find or create a new library with the specified path |
IQSYSMember |
createMemberWithAbsoluteName(String path,
String memberType,
int recordLength)
Create a new member with the specified path and member type |
boolean |
doesFilterStringListContentsOf(ISystemFilterString filterString,
String remoteObjectAbsoluteName)
|
boolean |
doesFilterStringMatch(String filterString,
String remoteObjectAbsoluteName,
boolean caseSensitive)
|
QSYSObjectCacheHandler |
getCacheHandler()
Returns cache handler for this subsystem |
ICacheManager |
getCacheManager()
|
IQSYSDatabaseFile |
getDatabaseFileDetails(IQSYSDatabaseFile file,
IProgressMonitor monitor)
Retrieve details for the specified physical file object |
IQSYSDatabaseFileRecordFormat |
getDatabaseFileRecord(IQSYSDatabaseFile file,
IProgressMonitor monitor)
Retrieves the first database record for the specified physical file |
IQSYSDatabaseFileRecordFormat |
getDatabaseFileRecord(IQSYSDatabaseFile file,
String record,
IProgressMonitor monitor)
Retrieves the specified database record for the specified physical file |
IISeriesHostRecordDevice[] |
getDeviceRecords(IQSYSFile file)
Retrieve the records for the deviceFile. |
int |
getEditingCCSID(IQSYSMember member)
Query the CCSID used to translate files from EBCDIC to UTF-8 for editing in the Workbench. |
ISeriesFileOverrideInformation |
getFileOverride(String filename)
Check if the specified file is an override file. |
IQSYSMember |
getMemberDetails(IQSYSMember member,
IProgressMonitor monitor)
Retrieve details for specified member object |
ISubSystem |
getObjectSubSystem()
Return the objects subsystem ("iSeries Objects") for accessing remote QSYS libs, objs, mbrs, etc. |
Object |
getObjectWithAbsoluteName(String key)
|
Object |
getObjectWithAbsoluteName(String key,
IProgressMonitor monitor)
|
com.ibm.etools.iseries.services.qsys.internal.QSYSProgramInformation |
getProgramInformation(IQSYSObject program)
|
QSYSCommandSubSystem |
getQSYSCommandSubSystem()
Get QSYSCommnadSubSystem instance. |
protected IQSYSFactory |
getQSYSFactory()
Get factory which supports additional information. |
void |
initializeSubSystem(IProgressMonitor monitor)
|
Object[] |
internalResolveFilterString(Object parent,
String filterString,
IProgressMonitor monitor)
|
Object[] |
internalResolveFilterString(String filterString,
boolean additionalDetails,
IProgressMonitor monitor)
|
Object[] |
internalResolveFilterString(String filterString,
IProgressMonitor monitor)
|
protected boolean |
isBriefFilterString(String filterString)
Check if the filter string is for brief information or not. |
IQSYSDatabaseField[] |
listDatabaseFields(IQSYSFileRecordFormat record,
IProgressMonitor monitor)
List all fields matching for the specified record |
IQSYSDatabaseField[] |
listDatabaseFields(IQSYSFileRecordFormat record,
String fieldFilter,
IProgressMonitor monitor)
List the database fields matching the specified field name filter for the specified record |
IISeriesHostKeyField[] |
listKeyFields(IQSYSDatabaseFile file,
String recordName)
Retrieve the key fields for the iSeries Database file. |
String[] |
listLibraryNames(String nameFilter,
IProgressMonitor monitor)
This is a high performance way to query library names only, optionally subset by library name. |
List<ISeriesHostObjectLock> |
listMemberLocks(IQSYSMember member)
Retrieve the list of locks for the specified IBM i member |
String[] |
listMemberNames(String library,
String file,
String nameFilter,
String[] typeFilters,
IProgressMonitor monitor)
This is a high performance way to query the members names only in this file, optionally subset by member name and type. |
IQSYSMessageDescription[] |
listMessageDescriptions(IQSYSMessageFile file,
IProgressMonitor monitor)
List all message descriptions for the specified message file. |
IQSYSMessageDescription[] |
listMessageDescriptions(IQSYSMessageFile file,
String msgID,
IProgressMonitor monitor)
List message descriptions for the specified message file. |
String[] |
listObjectNames(String library,
String nameFilter,
String[] typeFilters,
IProgressMonitor monitor)
This is a high performance way to query the object names only in a given library, optionally subset by object name and type. |
List<ISeriesHostProcedure> |
listProceduresInModule(String libraryName,
String moduleName)
|
boolean |
moveMember(Shell shell,
IQSYSMember srcMember,
IQSYSObject tgtFile,
String newName,
boolean processCmdLineParm)
Move a given member to the given file |
boolean |
moveObject(Shell shell,
IQSYSObject srcObject,
IQSYSLibrary tgtLibrary,
String newName,
boolean processCmdLineParm)
Move a given object to the given library |
protected String |
stripFilterStringAdditionalFlag(String filterString)
Strip out the IQSYSFilterTypes.FILTERTYPE_ADDITIONAL at the end of filter string. |
boolean |
supportsCaching()
|
IISeriesSQLStatementHeader |
syntaxCheckSQL(String sqlStmt,
int stmtLen,
int numRec,
String language,
int numKeys,
String options)
Syntax Check SQL statements |
Methods inherited from class com.ibm.etools.iseries.subsystems.qsys.QSYSAbstractSubSystem |
---|
checkIsConnected, checkIsConnected, checkIsConnected, getCmdSubSystem, processListRetrieveError, verifyConnected |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static String copyright
Constructor Detail |
---|
protected QSYSObjectSubSystem(IHost host, IConnectorService connectorService)
host
- connectorService
- Method Detail |
---|
public void initializeSubSystem(IProgressMonitor monitor)
public Object[] internalResolveFilterString(String filterString, IProgressMonitor monitor) throws InvocationTargetException, InterruptedException
InvocationTargetException
InterruptedException
public Object[] internalResolveFilterString(String filterString, boolean additionalDetails, IProgressMonitor monitor) throws InvocationTargetException, InterruptedException
InvocationTargetException
InterruptedException
public Object[] internalResolveFilterString(Object parent, String filterString, IProgressMonitor monitor) throws InvocationTargetException, InterruptedException
InvocationTargetException
InterruptedException
protected IQSYSFactory getQSYSFactory()
protected boolean isBriefFilterString(String filterString)
protected String stripFilterStringAdditionalFlag(String filterString)
filterString:
- filter string with IQSYSFilterTypes.FILTERTYPE_ADDITIONAL at the end.
public String[] listObjectNames(String library, String nameFilter, String[] typeFilters, IProgressMonitor monitor) throws SystemMessageException, InterruptedException
SystemMessageException
InterruptedException
public String[] listLibraryNames(String nameFilter, IProgressMonitor monitor) throws SystemMessageException, InterruptedException
SystemMessageException
InterruptedException
public String[] listMemberNames(String library, String file, String nameFilter, String[] typeFilters, IProgressMonitor monitor) throws SystemMessageException, InterruptedException
SystemMessageException
InterruptedException
public IQSYSDatabaseFileRecordFormat getDatabaseFileRecord(IQSYSDatabaseFile file, IProgressMonitor monitor) throws SystemMessageException, InterruptedException
SystemMessageException
InterruptedException
public IQSYSDatabaseFileRecordFormat getDatabaseFileRecord(IQSYSDatabaseFile file, String record, IProgressMonitor monitor) throws SystemMessageException, InterruptedException
SystemMessageException
InterruptedException
public IQSYSDatabaseField[] listDatabaseFields(IQSYSFileRecordFormat record, IProgressMonitor monitor) throws SystemMessageException, InterruptedException
SystemMessageException
InterruptedException
public IQSYSDatabaseField[] listDatabaseFields(IQSYSFileRecordFormat record, String fieldFilter, IProgressMonitor monitor) throws SystemMessageException, InterruptedException
SystemMessageException
InterruptedException
public IQSYSMessageDescription[] listMessageDescriptions(IQSYSMessageFile file, IProgressMonitor monitor) throws SystemMessageException, InterruptedException
file
- The message file to retrieve message descriptions from.
SystemMessageException
InterruptedException
public IQSYSMessageDescription[] listMessageDescriptions(IQSYSMessageFile file, String msgID, IProgressMonitor monitor) throws SystemMessageException, InterruptedException
file
- The message file to retrieve message descriptions from.msgID
- The ID of the message description to retrieve or * to retrieve all message descriptions.
SystemMessageException
InterruptedException
public QSYSCommandSubSystem getQSYSCommandSubSystem()
getQSYSCommandSubSystem
in interface IQSYSObjectSubSystem
public boolean copyLibrary(Shell shell, IQSYSLibrary srcLibrary, String newName, boolean processCmdLineParm, IProgressMonitor monitor) throws Exception
Exception
public boolean copyObject(Shell shell, IQSYSObject srcObject, IQSYSLibrary tgtLibrary, String newName, boolean processCmdLineParm) throws Exception
Exception
public boolean moveObject(Shell shell, IQSYSObject srcObject, IQSYSLibrary tgtLibrary, String newName, boolean processCmdLineParm) throws Exception
Exception
public boolean copyMember(Shell shell, IQSYSMember srcMember, IQSYSObject tgtFile, String newName, boolean processCmdLineParm) throws Exception
Exception
public boolean moveMember(Shell shell, IQSYSMember srcMember, IQSYSObject tgtFile, String newName, boolean processCmdLineParm) throws Exception
Exception
public Object getObjectWithAbsoluteName(String key) throws Exception
Exception
public Object getObjectWithAbsoluteName(String key, IProgressMonitor monitor) throws Exception
Exception
public IQSYSMember getMemberDetails(IQSYSMember member, IProgressMonitor monitor) throws SystemMessageException, InterruptedException
SystemMessageException
InterruptedException
public IQSYSDatabaseFile getDatabaseFileDetails(IQSYSDatabaseFile file, IProgressMonitor monitor) throws SystemMessageException, InterruptedException
SystemMessageException
InterruptedException
public boolean checkAuthority(String library, String object, String objectType, String authorityList) throws SystemMessageException
SystemMessageException
public boolean checkAuthority(String library, String object, String objectType, String authorityList, boolean cacheResults) throws SystemMessageException
SystemMessageException
public IQSYSFile createFileWithAbsoluteName(String path, int recordLength)
path
- the qualified path of the filerecordLength
- the record length for the file
public IQSYSLibrary createLibraryWithAbsoluteName(String libraryName)
libraryName
- the name of the library
public IQSYSMember createMemberWithAbsoluteName(String path, String memberType, int recordLength)
path
- the qualified path of the membermemberType
- the type of the member
public ISubSystem getObjectSubSystem()
IISeriesSubSystem
getObjectSubSystem
in interface IISeriesSubSystem
getObjectSubSystem
in class QSYSAbstractSubSystem
public boolean doesFilterStringMatch(String filterString, String remoteObjectAbsoluteName, boolean caseSensitive)
public boolean doesFilterStringListContentsOf(ISystemFilterString filterString, String remoteObjectAbsoluteName)
public int getEditingCCSID(IQSYSMember member) throws SystemMessageException
SystemMessageException
public ISeriesFileOverrideInformation getFileOverride(String filename) throws SystemMessageException
ISeriesFileOverrideInformation
for the override or null if no override
is currently set for the file.
SystemMessageException
public List<ISeriesHostObjectLock> listMemberLocks(IQSYSMember member) throws SystemMessageException
SystemMessageException
public IISeriesHostKeyField[] listKeyFields(IQSYSDatabaseFile file, String recordName) throws SystemMessageException
SystemMessageException
public IISeriesHostRecordDevice[] getDeviceRecords(IQSYSFile file) throws SystemMessageException
SystemMessageException
public IISeriesSQLStatementHeader syntaxCheckSQL(String sqlStmt, int stmtLen, int numRec, String language, int numKeys, String options) throws SystemMessageException
SQL
- statementsLength
- of each SQL statementNumber
- of RecordsLanguage
- in which the SQL statements are codedNumber
- of KeysString
- for Options
SystemMessageException
- with ID = ISystemMessages.MSG_GENERIC_W_HELP if
the OS/400 api returns an error code.public com.ibm.etools.iseries.services.qsys.internal.QSYSProgramInformation getProgramInformation(IQSYSObject program) throws SystemMessageException
SystemMessageException
public List<ISeriesHostProcedure> listProceduresInModule(String libraryName, String moduleName) throws SystemMessageException
SystemMessageException
public QSYSObjectCacheHandler getCacheHandler()
public boolean supportsCaching()
public ICacheManager getCacheManager()
protected void addResolvedFilterStringObjects(Vector allChildrenSoFar, Object[] childrenForThisFilterString, String[] allFilterStrings, int currFilterStringIndex)
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |