public class ReservedProperty extends Property
Property
/es which may take part of a SQL record of a temporary table:
id
- the record identifier. FWD-specific;_multiplex
- the temp-table multiplexer. FWD-specific, allows multiple users
to store same-structure records in a single TEMP-TABLE;parent__id
- the foreign-key for composite table to its parent;list__index
- extent index for composite table;_errorFlag
, _originRowid
, _dataSourceRowid
, _errorString
,
_peerRowid
, and _rowState
- the before-table specific hidden fields.Modifier and Type | Field and Description |
---|---|
static ReservedProperty |
_DATASOURCEROWID
The
__datasource-rowid__ reserved (by P4GL) property. |
static ReservedProperty |
_ERRORFLAG
The
__error-flag__ reserved (by P4GL) property. |
static ReservedProperty |
_ERRORSTRING
The
_errorString reserved (by P4GL) property. |
static ReservedProperty |
_MULTIPLEX
The
_multiplex reserved (by FWD) property. |
static ReservedProperty |
_ORIGINROWID
The
__origin-rowid__ reserved (by P4GL) property. |
static ReservedProperty |
_PEERROWID
The
__after-rowid__ reserved (by P4GL) property. |
static ReservedProperty |
_ROWSTATE
The
__row-state__ reserved (by P4GL) property. |
private static java.util.Map<java.lang.String,ReservedProperty> |
HIDDEN_PROPERTIES
The map of reserved properties which exist in 4GL, but are hidden.
|
static ReservedProperty |
ID
The
id reserved (by FWD) property. |
static int |
ID_DATASOURCE_ROWID
The id of the
_datasource-rowid reserved property. |
static int |
ID_ERROR_FLAG
The id of the
_error_flag reserved property. |
static int |
ID_ERROR_STRING
The id of the
_error_string reserved property. |
static int |
ID_LIST__INDEX
The id of the
list__index reserved property. |
static int |
ID_MULTIPLEX
The id of the
_multiplex reserved property. |
static int |
ID_ORIGIN_ROWID
The id of the
_origin_rowid reserved property. |
static int |
ID_PARENT__ID
The id of the
parent__id reserved property. |
static int |
ID_PEER_ROWID
The id of the
_peer_rowid reserved property. |
static int |
ID_PRIMARY_KEY
The id of the
primary_key reserved property. |
static int |
ID_ROW_STATE
The id of the
_row_state reserved property. |
static ReservedProperty |
LIST__INDEX
The
list__index reserved (by FWD) property. |
static ReservedProperty |
PARENT__ID
The
list__index reserved (by FWD) property. |
_ablType, _fwdType, _isCharacter, _isDatetimeTz, annMethod, canRead, canWrite, caseSensitive, codePage, column, columnLabel, columnLabel_sa, desc, extent, format, format_sa, help, help_sa, id, index, initial, initial_sa, initialNull, label, label_sa, legacy, like, mandatory, name, order, original, position, scale, serializeHidden, serializeName, validateExpression, validateMessage, valmsg_sa, viewAs, width, xmlDataType, xmlNodeName, xmlNodeType
Constructor and Description |
---|
ReservedProperty(int id,
java.lang.String name,
java.lang.String legacy,
java.lang.String column,
boolean mandatory,
java.lang.Class<?> type,
boolean initialNull)
Creates a new
ReservedProperty object |
Modifier and Type | Method and Description |
---|---|
static ReservedProperty |
getByName(java.lang.String name)
Get the specified hidden property.
|
private static java.lang.reflect.Method |
getMethod(int id)
Get the method for the specified reserved property.
|
static boolean |
isReservedProperty(java.lang.String name)
Check whether the
name argument is the name of a reserved property. |
public static final int ID_PARENT__ID
parent__id
reserved property.public static final int ID_LIST__INDEX
list__index
reserved property.public static final int ID_ROW_STATE
_row_state
reserved property.public static final int ID_PEER_ROWID
_peer_rowid
reserved property.public static final int ID_ERROR_STRING
_error_string
reserved property.public static final int ID_DATASOURCE_ROWID
_datasource-rowid
reserved property.public static final int ID_ORIGIN_ROWID
_origin_rowid
reserved property.public static final int ID_ERROR_FLAG
_error_flag
reserved property.public static final int ID_MULTIPLEX
_multiplex
reserved property.public static final int ID_PRIMARY_KEY
primary_key
reserved property.public static final ReservedProperty ID
id
reserved (by FWD) property.public static final ReservedProperty _MULTIPLEX
_multiplex
reserved (by FWD) property.public static final ReservedProperty _ERRORFLAG
__error-flag__
reserved (by P4GL) property.public static final ReservedProperty _ORIGINROWID
__origin-rowid__
reserved (by P4GL) property.public static final ReservedProperty _DATASOURCEROWID
__datasource-rowid__
reserved (by P4GL) property.public static final ReservedProperty _ERRORSTRING
_errorString
reserved (by P4GL) property.public static final ReservedProperty _PEERROWID
__after-rowid__
reserved (by P4GL) property.public static final ReservedProperty _ROWSTATE
__row-state__
reserved (by P4GL) property.public static final ReservedProperty LIST__INDEX
list__index
reserved (by FWD) property.public static final ReservedProperty PARENT__ID
list__index
reserved (by FWD) property.private static final java.util.Map<java.lang.String,ReservedProperty> HIDDEN_PROPERTIES
public ReservedProperty(int id, java.lang.String name, java.lang.String legacy, java.lang.String column, boolean mandatory, java.lang.Class<?> type, boolean initialNull)
ReservedProperty
objectid
- The id of this field in the sequence of the fields of the buffer.name
- The name of the DMO property.legacy
- The name of the legacy field associated with the DMO property.column
- The name of the column in the SQL database, associated with the DMO property.mandatory
- Flag for not-null fields.type
- property typeinitialNull
- The property has null
as default value.public static ReservedProperty getByName(java.lang.String name)
name
- The name of the reserved property.ReservedProperty
instance for it.public static boolean isReservedProperty(java.lang.String name)
name
argument is the name of a reserved property.name
- The name to testtrue
if name
is the name of a reserved property.private static java.lang.reflect.Method getMethod(int id)
id
- The reserved property ID.null
if this is not one of the TempRecord
methods.java.lang.RuntimeException
- If the method can't be found, as this is a FWD error.