public class RcodeInfoOps
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
private static class |
RcodeInfoOps.LegacyProgramInfo
Details about the r-code information for a legacy program or class.
|
private static class |
RcodeInfoOps.WorkArea
Stores global data relating to the state of the current context.
|
| Modifier and Type | Field and Description |
|---|---|
private static ContextLocal<RcodeInfoOps.WorkArea> |
local
Stores context-local state variables.
|
| Constructor and Description |
|---|
RcodeInfoOps() |
| Modifier and Type | Method and Description |
|---|---|
static handle |
asHandle()
Get the RCODE-INFO system handle.
|
static character |
getCodePage()
Get the CODEPAGE attribute referenced by the target r-code file.
|
static character |
getCrcVal()
Get the cyclic redundancy check (CRC) value for an r-code file.
|
static character |
getDbReferences()
Get the list of the databases, referenced by the target r-code file.
|
static character |
getFileName()
Get the name of the target r-code file.
|
static character |
getLanuages()
Get a comma-separated list of all languages compiled into the r-code file.
|
static character |
getMD5Val()
Get the MD5 value stored in an r-code file.
|
static character |
getRCodeDisplayType()
Get the type of display for an r-code file.
|
static character |
getTableCrcList()
Get a comma-separated list of the CRC value for each table referenced in the r-code file
|
static character |
getTableList()
Get the list of the tables, referenced by the r-code file.
|
static character |
getUndoThrowScope()
Check if UNDO, THROW has been set as the default error handling directive at either the
routine level or the block level
|
static java.lang.Long |
id()
Get this resource's ID.
|
static void |
id(long id)
Set this resource's ID.
|
static void |
initFileInfo(character fileName)
Set the name of the target r-code file.
|
static void |
initFileInfo(java.lang.String fileName)
Set the name of the target r-code file.
|
static logical |
isClass()
Definition of the IS-CLASS method.
|
static logical |
isLabelsHaveColons()
Check whether the r-code was compiled with the -nocolon startup parameter in effect.
|
static void |
readOnlyError(java.lang.String attribute)
API needed to implement read-only attribute assignment (a 4GL "feature").
|
static void |
readOnlyError(java.lang.String attribute,
java.lang.Object expr)
API needed to implement read-only attribute assignment (a 4GL "feature").
|
(package private) static java.lang.String |
resolveDbReferences(java.lang.Class<?> cls)
Read the
DatabaseReferences annotation from the Java class and get the list of the logical
database names or aliases. |
(package private) static boolean |
resolveIsClass(java.lang.Class<?> cls)
Check if the given Java class is compatible with legacy, converted classes - in other words, if it
implements the
_BaseObject_ interface. |
(package private) static java.lang.String |
resolveTableList(java.lang.Class<?> cls)
Read the
DatabaseReferences annotation from the Java class and get the list of tables. |
static character |
resourceType()
Get the type of its associated handle.
|
static void |
setCodePage(character cp)
Attempt to set the CODEPAGE attribute referenced by the target r-code file.
|
static boolean |
unknown()
Implementation for the
WrappedResource.unknown() API. |
static boolean |
valid()
Implementation for the
WrappedResource.valid() API. |
private static ContextLocal<RcodeInfoOps.WorkArea> local
public static handle asHandle()
public static character getFileName()
public static void initFileInfo(character fileName)
fileName - The name of the target r-code file.public static void initFileInfo(java.lang.String fileName)
fileName - The name of the target r-code file.public static character getDbReferences()
public static character getTableList()
schema.table),
referenced by the r-code file.public static logical isClass()
true if the current program is a NEW-ly created object.public static character getCodePage()
public static character getTableCrcList()
public static character getCrcVal()
public static character getRCodeDisplayType()
public static logical isLabelsHaveColons()
true if the r-code was compiled with the -nocolon startup parameter in effect.public static character getLanuages()
public static character getMD5Val()
public static character getUndoThrowScope()
public static void setCodePage(character cp)
cp - The current CODEPAGE to be set.public static void readOnlyError(java.lang.String attribute)
attribute - The attribute's name.handle.readOnlyError(handle, String)public static void readOnlyError(java.lang.String attribute,
java.lang.Object expr)
attribute - The attribute's name.expr - The value which is attempted to be assigned to the read-only attribute.handle.readOnlyError(handle, String, Object)public static character resourceType()
public static boolean valid()
WrappedResource.valid() API.public static java.lang.Long id()
public static void id(long id)
This is a no-op for system handles.
id - The resource's ID.public static boolean unknown()
WrappedResource.unknown() API.static boolean resolveIsClass(java.lang.Class<?> cls)
_BaseObject_ interface.cls - The type to check.static java.lang.String resolveDbReferences(java.lang.Class<?> cls)
DatabaseReferences annotation from the Java class and get the list of the logical
database names or aliases. If the annotation does not exist, return the empty string.cls - The Java class for a converted external program or legacy class.static java.lang.String resolveTableList(java.lang.Class<?> cls)
DatabaseReferences annotation from the Java class and get the list of tables.
If the annotation does not exist, return the empty string.cls - The Java class for a converted external program or legacy class.