public class PDataFieldSpecification extends PFieldSpecification implements Serializable
PDataFieldSpecification
is a non-compound form of
PFieldSpecification
. PDataFieldSpecification
is used to
specify fields to include in an flist. It can be created from a string
description of the form "FldStartT" for a field in the root of the flist, or
"FldNameinfo[0].FldFirstName" for a field in a substruct or single array
element field of an flist. The form "FldNameinfo[all]" describes a whole array.
You can also access fields in other linked flists by using a POID
field of the form "FldAccount.FldNameinfo[any].FldLastName" (which also
shows how to access the first element of an array). This string is
broken down into a list of individual fields to be accessed in order.Modifier and Type | Class and Description |
---|---|
class |
PDataFieldSpecification.SpecIterator
Iterates through the list of of fields in the specification.
|
ELEM_ALL, ELEM_ANY
Modifier and Type | Method and Description |
---|---|
void |
append(PDataFieldSpecification spec)
Appends the specification to the current specification.
|
void |
destructor() |
Enumeration |
getArrayEnumeration(PCachedContext conn,
PModelHandle forModel)
Enumerates all the elements in an open array.
|
Enumeration |
getArrayEnumeration(PInfranetConnectionImpl conn,
PModelHandle forModel) |
PDataFieldSpecification |
getArrayPart()
Gets the specification of the array part of this specification
(the last field in the access list is the array).
|
PDataFieldSpecification |
getFieldSpecOfArray()
Gets a specification of the fields accessed in each element of the
array specified.
|
Field |
getLastField()
Gets the
Field object for the last field in the specification. |
PDataFieldSpecification.SpecIterator |
getLevelIterator()
Gets an iterator for each field in this specification.
|
PDataFieldSpecification |
getSpecForElement(int index)
Given a specific element, returns a field specification for that
element of the array specified by this specification.
|
PDataFieldSpecification |
getSpecForLastField()
Gets a specification object that represents just the last field.
|
PDataFieldSpecification |
getSpecLessLastField()
Gets a specification for the field before the final field of this
specification.
|
boolean |
isArray()
Determines whether one of the fields in the list is an open array.
|
boolean |
isSimple()
Determines whether the specification consists of a single field.
|
String |
toString()
Gets a
String representation of this specification. |
public void append(PDataFieldSpecification spec)
spec
- the specification to appendpublic PDataFieldSpecification getSpecLessLastField()
FieldSpecification
.public PDataFieldSpecification getSpecForLastField()
PDataFieldSpecification
.public Field getLastField()
Field
object for the last field in the specification.Field
object.public boolean isSimple()
public boolean isArray()
public Enumeration getArrayEnumeration(PCachedContext conn, PModelHandle forModel) throws PBadFieldDescriptionException, RemoteException, EBufException
conn
- an Portal connection objectforModel
- the model from which to get the
actual array to enumerateEnumeration
object
for the array elements.EBufException
- thrown for Portal errorsPBadFieldDescriptionException
- thrown if the array described
in this specification is not
actually presentRemoteException
- thrown for other errorspublic Enumeration getArrayEnumeration(PInfranetConnectionImpl conn, PModelHandle forModel) throws PBadFieldDescriptionException, RemoteException, EBufException
public PDataFieldSpecification getArrayPart()
PDataFieldSpecification
.public PDataFieldSpecification getFieldSpecOfArray()
public PDataFieldSpecification getSpecForElement(int index)
index
- the index to use in the specificationpublic PDataFieldSpecification.SpecIterator getLevelIterator()
SpecIterator
object.public String toString()
String
representation of this specification.public void destructor()
Copyright © 2003, 2023, Oracle and/or its affiliates.