PInfranetConnectionImpl
is deprecated
and replaced by PInfranetAppController
and PCachedContext
.public class PInfranetConnectionImpl extends PInfranetAppControllerImpl
PInfranetConnectionImpl
is the implementation portion of the
PInfranetConnection
distributed class. This class is imposed between
the client application and a PortalContext
so that the model cache may
be consulted prior to reads, and updated properly after writes.mCompMap
Constructor and Description |
---|
PInfranetConnectionImpl()
Deprecated.
Constructs an instance of
PInfranetConnectionImpl from the
login information stored in PortalUser.properties. |
PInfranetConnectionImpl(PInfranetConnectionImpl conn)
Deprecated.
Constructs an instance of
PInfranetConnectionImpl from another connection. |
PInfranetConnectionImpl(String name,
String password,
String connectInfo)
Deprecated.
Constructs an instance of
PInfranetConnectionImpl from
login information. |
Modifier and Type | Method and Description |
---|---|
void |
abortTransaction()
Deprecated.
Halts an Portal transaction and rolls back the logs.
|
FList |
callOpcode(int opcode,
FList in)
Deprecated.
Given an input flist, calls an opcode with a default value of "0" for
the opcode flags.
|
FList |
callOpcode(int opcode,
FList in,
int flags)
Deprecated.
Given an input flist, calls an opcode, using the opcode flag values passed in.
|
FList |
callOpcode(int opcode,
PModelHandle in)
Deprecated.
Given an input flist model, calls an opcode with a default value of "0" for
the opcode flags.
|
FList |
callOpcode(int opcode,
PModelHandle in,
int flags)
Deprecated.
Given an input flist model, calls an opcode, using the opcode flag
values passed in.
|
void |
commitTransaction()
Deprecated.
Commits an Portal transaction.
|
PModelHandle |
createModelFrom(FList fl)
Deprecated.
Creates a new model handle from an flist, and sets that flist in the
cache.
|
PModelHandle |
createModelFrom(Poid pd)
Deprecated.
Creates a new model handle from a
Poid . |
PModelHandle |
createModelFrom(SparseArray sa)
Deprecated.
Creates a new model handle from a
SparseArray . |
void |
discardModel(PModelHandle mh)
Deprecated.
Removes a model from the cache to free resources.
|
long |
getCurrentDB()
Deprecated.
Returns the database number that this context is connected to.
|
Object |
getField(FList list,
PDataFieldSpecification spec)
Deprecated.
Gets a field from an flist.
|
Object |
getField(PModelHandle mh,
PDataFieldSpecification spec)
Deprecated.
Gets a field from a model.
|
Object |
getModelField(FList data,
PFieldSpecification spec)
Deprecated.
Gets a field from an flist.
|
Object |
getModelField(PModelHandle data,
PFieldSpecification spec)
Deprecated.
Gets a field from a model.
|
PModelHandle |
getOrCreateModelFrom(FList fl)
Deprecated.
Creates a model for the specified flist, but does not put the flist
in the cache unless there is no match for the newly-created model handle.
|
Poid |
getUserID()
Deprecated.
Returns the current userid.
|
FList |
getWholeObject(PModelHandle mh)
Deprecated.
Forces the cache to be loaded with an entire storable class for
a given model handle.
|
void |
logCache()
Deprecated.
Serves as a debug function to dump the cache to the log file.
|
PComponentControllerImpl |
lookupController(PRemoteComponent comp)
Deprecated.
Looks up a controller for a given component.
|
Object |
lookupModel(PModelHandle modl)
Deprecated.
Gets the model from the cache for a model handle.
|
Poid |
lookupPoid(PModelHandle modl)
Deprecated.
Gets the POID from the cache for a model handle.
|
void |
openTransaction(int flags)
Deprecated.
Opens an Portal transaction.
|
void |
registerComponent(PRemoteComponent comp,
String controllerClass)
Deprecated.
Registers the client portion of a component with the Portal server.
|
PModelHandle[] |
search(int opcode,
FList in)
Deprecated.
Calls the search opcode, but returns an array of model handles.
|
void |
setField(FList list,
PDataFieldSpecification spec,
Object val)
Deprecated.
Sets a field in an flist.
|
void |
setField(PModelHandle modl,
PDataFieldSpecification spec,
Object val)
Deprecated.
Sets a field in a model.
|
void |
setModel(PModelHandle modl,
FList fl)
Deprecated.
Sets an flist model in the cache and associates it with a handle.
|
void |
setModel(PModelHandle modl,
Poid pd)
Deprecated.
Sets a POID model in the cache and associates it with a handle.
|
void |
setModel(PModelHandle modl,
SparseArray sa)
Deprecated.
Sets a
SparseArray model in the cache and associates it with a handle. |
void |
unregisterComponent(PRemoteComponent comp)
Deprecated.
Unregisters the client portion of a component with the Portal server.
|
close, cmreconnected, createController, createNewModel, duplicate, duplicate, getAccountHandle, getAppName, getClientLocale, getConnection, getContext, getEventListener, getModelField, getOtherData, getPermissionFor, getPermissions, getRestrictionOn, getServiceHandle, getUserPreferences, isBrandingEnabled, login, lookupController, postEventListener, registerApp, registerController, releaseConnection, releaseContext, removeEventListener, saveUserPreferences, setBrandContext, setConnection, setModelField, setUserPreferences, storeUserPrefs, throwInfranetException, unregisterController, unregisterControllers, unsetBrandContext, verifyAndSwitchToUser
public PInfranetConnectionImpl() throws RemoteException
PInfranetConnectionImpl
from the
login information stored in PortalUser.properties.RemoteException
- thrown for errorspublic PInfranetConnectionImpl(String name, String password, String connectInfo) throws RemoteException
PInfranetConnectionImpl
from
login information.name
- the user's login namepassword
- the user's passwordconnectInfo
- the hostname and portRemoteException
- thrown for errorspublic PInfranetConnectionImpl(PInfranetConnectionImpl conn) throws RemoteException
PInfranetConnectionImpl
from another connection.
This creates a separate connection that shares a cache with
the specified connection. Use this constructor when you need a separate connection, for
example, to use for long step searches.conn
- the existing connectionRemoteException
- thrown for errorspublic FList callOpcode(int opcode, FList in) throws RemoteException, EBufException
opcode
- the opcode to callin
- the input flistEBufException
- thrown for Portal errorsRemoteException
- thrown for remote errorspublic FList callOpcode(int opcode, PModelHandle in) throws RemoteException, EBufException
opcode
- the opcode to callin
- the input flist modelEBufException
- thrown for Portal errorsRemoteException
- thrown for remote errorspublic FList callOpcode(int opcode, PModelHandle in, int flags) throws RemoteException, EBufException
opcode
- the opcode to callin
- the input flist modelflags
- the opcode flagsEBufException
- thrown for Portal errorsRemoteException
- thrown for remote errorspublic FList callOpcode(int opcode, FList in, int flags) throws RemoteException, EBufException
opcode
- the opcode to callin
- the input flistflags
- the opcode flagsEBufException
- thrown for Portal errorsRemoteException
- thrown for remote errorspublic PModelHandle[] search(int opcode, FList in) throws RemoteException, EBufException
opcode
- an Portal search opcode
(SEARCH, STEP_SEARCH, STEP_NEXT
)in
- the input flistEBufException
- thrown for Portal errorsRemoteException
- thrown for remote errorspublic void openTransaction(int flags) throws RemoteException
flags
- the transaction flagsRemoteException
- thrown for remote errorspublic void abortTransaction() throws RemoteException
RemoteException
- thrown for remote errorspublic void commitTransaction() throws RemoteException
RemoteException
- thrown for remote errorspublic Poid getUserID() throws RemoteException
RemoteException
- thrown for errorspublic long getCurrentDB() throws RemoteException
RemoteException
- thrown for errorspublic void registerComponent(PRemoteComponent comp, String controllerClass) throws RemoteException
registerComponent
in interface PInfranetConnection
registerComponent
in class PInfranetAppControllerImpl
comp
- the remote component to registercontrollerClass
- the class name of the component controllerRemoteException
- thrown in case of failurepublic void unregisterComponent(PRemoteComponent comp) throws RemoteException
unregisterComponent
in interface PInfranetConnection
unregisterComponent
in class PInfranetAppControllerImpl
comp
- the remote component to unregisterRemoteException
- thrown for errorspublic PComponentControllerImpl lookupController(PRemoteComponent comp)
comp
- a PRemoteComponent
component stubpublic PModelHandle getOrCreateModelFrom(FList fl) throws RemoteException
fl
- the model to create a handle forRemoteException
- thrown for errorspublic PModelHandle createModelFrom(FList fl) throws RemoteException
fl
- the model to create a handle fromRemoteException
- thrown for errorspublic PModelHandle createModelFrom(SparseArray sa) throws RemoteException
SparseArray
.sa
- the model to create a handle fromRemoteException
- thrown for errorspublic PModelHandle createModelFrom(Poid pd) throws RemoteException
Poid
.pd
- the model to create a handle fromRemoteException
- thrown for errorspublic Poid lookupPoid(PModelHandle modl) throws RemoteException, EBufException
modl
- the model handle to look upEBufException
- thrown for Portal errorsRemoteException
- thrown for remote errorspublic Object lookupModel(PModelHandle modl) throws RemoteException, EBufException
modl
- the model handle to look upObject
, which is either an flist, a
SparseArray
, or a POID
.EBufException
- thrown for Portal errorsRemoteException
- thrown for remote errorspublic void setModel(PModelHandle modl, FList fl) throws RemoteException
modl
- the model handle to use as a keyfl
- the flist model to storeRemoteException
- thrown for errorspublic void setModel(PModelHandle modl, SparseArray sa) throws RemoteException
SparseArray
model in the cache and associates it with a handle.modl
- the model handle to use as a keysa
- the SparseArray
model to storeRemoteException
- thrown for errorspublic void setModel(PModelHandle modl, Poid pd) throws RemoteException
modl
- the POID's model handle to use as a keypd
- the POID model to storeRemoteException
- thrown for errorspublic void discardModel(PModelHandle mh) throws RemoteException
mh
- a model handleRemoteException
- thrown for errorspublic Object getModelField(FList data, PFieldSpecification spec) throws RemoteException
data
- the model to get a field fromspec
- a specification for which field(s) to getRemoteException
- thrown for errorspublic Object getModelField(PModelHandle data, PFieldSpecification spec) throws RemoteException
data
- the model to get a field fromspec
- a specification for which field(s) to getRemoteException
- thrown for errorspublic FList getWholeObject(PModelHandle mh) throws RemoteException, EBufException
mh
- a model handleFlist
object.EBufException
- thrown for Portal errorsRemoteException
- thrown for remote errorspublic Object getField(FList list, PDataFieldSpecification spec) throws RemoteException
list
- the flist to get a field fromspec
- a specification of which field to getRemoteException
- thrown for errorspublic Object getField(PModelHandle mh, PDataFieldSpecification spec) throws RemoteException
mh
- the model handle to get a field fromspec
- a specification of which field to getRemoteException
- thrown for errorspublic void setField(PModelHandle modl, PDataFieldSpecification spec, Object val) throws RemoteException
modl
- the model to set a field inspec
- a specification of which field to setval
- the new value to setRemoteException
- thrown for errorspublic void setField(FList list, PDataFieldSpecification spec, Object val) throws RemoteException
list
- the flist to set a field inspec
- a specification of which field to setval
- the new value to setRemoteException
- thrown for errorspublic void logCache()
Copyright © 2003, 2023, Oracle and/or its affiliates.