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 |
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 |
getResourceType()
Get the type of its associated handle.
|
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 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. |
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 logical isClass()
true
if the current program is a NEW-ly created object.public static character getCodePage()
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 getResourceType()
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.