|
Oracle Data-aware Controls Reference | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.dacf.dataset.DacObject
oracle.dacf.dataset.ProducerObject
oracle.dacf.dataset.InfoObject
oracle.dacf.dataset.SessionInfo
The SessionInfo represents the database transaction context on the
client. It maps to a root BC4J AppModule which in turn establishes the
connection to the database. The SessionInfo class instances
contain metadata regarding the BC4J AppModule, connection details, and
deployment platform. The SessionInfo is also the parent object in
the DAC runtime object containment hierarchy; it also as a parent of
all other data producers such as RowSetInfo
and
LOVRowSetInfo
which represent database queries. The individual
query columns or attributes are represented by AttributeInfo
and
LOVAttributeInfo
objects.
To use this class, instantiate it, then identify:
The following figure illustrates the containment hierarchy for SessionInfo.
RowSetInfo
,
LOVRowSetInfo
,
AttributeInfo
,
LOVAttributeInfo
Field Summary | |
protected java.lang.Object |
_connectLock
|
static java.lang.String |
BIND_STRING
String constant to indicate use BIND connection mode. |
static int |
COLOCATE
Integer constant to indicate client and server in the same JVM, communicating using CORBA and Visigenics ORB. |
static java.lang.String |
COLOCATE_STRING
String constant to indicate client and server in the same JVM, communicating using CORBA and Visigenics ORB. |
static java.lang.String |
DEFAULT_INFOBUS_NAME
|
static java.lang.String |
DEFAULT_MODULENAME
String constant for default module name. |
static int |
DEFAULT_TIMEOUT
Default time out value for communication with the server. |
static java.lang.String |
EJB_PLATFORM
String constant for the EJB deployment platform. |
static java.lang.String |
EJB_STRING
String constant for the EJB deployment platform. |
static java.lang.String |
ERR_PROD_CODE
|
static java.lang.String |
IOR_STRING
String constant used to specify the use of the universal Inter-ORB connection protocol. |
static java.lang.String |
LOCAL_PLATFORM
String constant for the Local deployment platform. |
static java.lang.String |
LOCAL_STRING
String constant for the Local deployment platform. |
static java.lang.String |
LOCK_NONE
String constant for the locking mode "none": do not attempt to lock the row at all. |
static java.lang.String |
LOCK_OPTIMISTIC
String constant for the locking mode "optimistic": attempt to lock the row at commit. |
static java.lang.String |
LOCK_PESSIMISTIC
String constant for the locking mode "pessimistic": attempt to lock the row at update. |
static int |
MODULE
Integer constant for the module type. |
static java.lang.String |
MODULE_STRING
String constant for the module type. |
static java.lang.String |
O8I_PLATFORM
String constant for the Oracle8i deployment platform. |
static java.lang.String |
O8I_STRING
String constant for the Oracle8i deployment platform. |
static int |
OCI7
Integer constant for Oracle JDBC OCI7 driver type. |
static java.lang.String |
OCI7_STRING
String constant for Oracle JDBC OCI7 driver type. |
static int |
OCI8
Integer constant for Oracle JDBC OCI8 driver type. |
static java.lang.String |
OCI8_STRING
String constant for Oracle JDBC OCI8 driver type. |
static int |
PACKAGE
Integer constant for the module type. |
static java.lang.String |
PACKAGE_STRING
String constant for the module type. |
static int |
REMOTE
Integer constant to indicate use naming service. |
static java.lang.String |
REMOTE_STRING
String constant to indicate use naming service. |
static int |
THIN
Integer constant for Oracle JDBC Thin driver type. |
static java.lang.String |
THIN_STRING
String constant for Oracle JDBC Thin driver type. |
static int |
UNKNOWN
Integer constant for an unknown driver type. |
static int |
USE_BIND
Integer constant to indicate use BIND connection mode. |
static int |
USE_IOR
Integer constant used to specify the use of the universal Inter-ORB connection protocol. |
static java.lang.String |
VISIBROKER_PLATFORM
String constant for the Visibroker deployment platform. |
static java.lang.String |
VISIBROKER_STRING
String constant for the Visibroker deployment platform. |
Fields inherited from class oracle.dacf.dataset.InfoObject |
_updateMode, LEVEL_APPLICATION, LEVEL_ATTRIBUTE, LEVEL_COLUMN, LEVEL_QUERY_VIEW, LEVEL_ROOT, LEVEL_ROW, LEVEL_ROWSET, LEVEL_SESSION, PROPERTIES_COLUMN_NAME, UPDATEABLE_FALSE, UPDATEABLE_MAX_VAL, UPDATEABLE_TRUE, UPDATEABLE_UNDEFINED |
Fields inherited from class oracle.dacf.dataset.ProducerObject |
_openLock |
Fields inherited from class oracle.dacf.dataset.DacObject |
EMPTY_PREFIX, INITIAL_CAPACITY, ITEMNAME_DELIMITER |
Fields inherited from interface oracle.jbo.ConnectionModeConstants |
LOCAL |
Constructor Summary | |
|
SessionInfo()
Default constructor. |
protected |
SessionInfo(java.lang.String name)
Constructor requiring a session bind name. |
protected |
SessionInfo(java.lang.String name,
oracle.jbo.ApplicationModule appModule)
Constructor requiring a session bind name and an Application Module. |
Method Summary | |
void |
addRowSet(ResultSetInfo resultSetInfo)
Adds a ResultSetInfo to the SessionInfo. |
void |
cacheSingleValue(java.lang.String name,
java.lang.Object s)
Adds a single object and its name to the cache. |
void |
clearDirty()
Clears the dirty state of the DataItem. |
protected void |
closeCheck()
Internal: Applications should not use this method. |
protected void |
closeChildren()
Internal: Applications should not use this method. |
protected void |
closeDataItems()
Internal: Applications should not use this method. |
protected void |
closeProducerObject()
Internal: Applications should not use this method. |
protected void |
connect()
Internal: Applications should not use this method. |
protected javax.infobus.DataItem |
findDataItem(java.lang.String name)
Finds the DataItem indicated by name. |
void |
finishedProcessingPiggyback(java.lang.Exception[] exArray)
|
java.applet.Applet |
getAppletInstance()
Gets the Applet context. |
oracle.jbo.ApplicationModule |
getApplicationModule()
Returns the value of the Application Module property. |
java.lang.String |
getApplicationModuleClass()
Returns the value of the ApplicationModuleClass property: this is the fully-qualified name of the class that implements the ApplicationModule object on the server. |
java.lang.String |
getApplicationModuleName()
Deprecated. Use getName() instead. |
AppModuleInfo |
getAppModuleInfo()
Returns the JboLocation information (Application Module and Package name). |
SessInfoDescriptor |
getConnection()
Deprecated. Use getConnectionInfo() instead. |
ConnectionInfo |
getConnectionInfo()
Returns the connection definition defining all elements of the connection deployment choice. |
int |
getConnectionMode()
Returns the value of the ConnectionMode property which determines the relationship between the client and server portions of the application. |
java.lang.String |
getConnectionName()
Deprecated. Use getConnectionInfo() instead. |
java.lang.String |
getConnectionURL()
Deprecated. Use these methods instead:
|
CustomConnect |
getCustomConnect()
Deprecated. Use ConnectionInfo.setCustomConnection(CustomConnection) instead |
java.lang.String |
getDatabaseURL()
Returns the value of the URL connection string property, which identifies the database being used. |
protected javax.infobus.DataItem |
getDataItem()
Returns the DbAccess DataItem that is asscociated with this SessionInfo. |
javax.infobus.DbAccess |
getDbAccess()
Returns a javax.infobus.DbAccess interface. |
java.lang.String |
getDeploymentPlatform()
Deprecated. Use getConnectionInfo() instead. |
java.lang.String |
getDriverClass()
Deprecated. This method is ignored. |
int |
getDriverType()
Deprecated. Use these methods instead:
|
java.util.Hashtable |
getEnvironment()
Returns the environment hashtable used when creating the Application Module. |
java.lang.String |
getIIOPConnectionName()
Deprecated. Use getConnectionInfo() instead. |
javax.infobus.InfoBusDataProducer |
getInfoBusDataProducer()
Gets the InfoBusDataProducer that services the DataItem requests. |
java.lang.String |
getInfoBusName()
Gets the name of the bus being used for publishing the DataItems created under this session. |
java.lang.String |
getJBOSessionClass()
Deprecated. Superceded by getApplicationModuleClass() . |
java.util.Locale |
getLocale()
Returns the locale for this SessionInfo. |
java.lang.String |
getLockingMode()
Returns the value of the LockingMode property, which identifies which lockmode is currently being used. |
java.lang.String |
getModulePackage()
Returns the name of the Package that includes the Application Module. |
java.lang.String |
getName()
Returns the name of the DacObject. |
java.lang.String |
getPassword()
Deprecated. Use these methods instead:
|
java.lang.String |
getRemoteApplicationPath()
Deprecated. Use getConnectionInfo() instead. |
java.lang.String |
getRemoteHost()
Deprecated. Use getConnectionInfo() instead |
int |
getRemoteHostPort()
Deprecated. Use getConnectionInfo() instead. |
ResultSetInfo |
getRowSet(java.lang.String name)
Returns the named rowset Identifies a ResultSetInfo based upon the name (bindname) of the ResultSetInfo. |
int |
getRowSetCount()
Return the number ResultSetInfo objects within the SessionInfo. |
int |
getServerTimeout()
Returns the timeout threshold value for communications with the middle-tier server. |
java.lang.String |
getUserName()
Deprecated. Use these methods instead:
|
void |
handleException(java.lang.Exception ex,
boolean lastEntryInPiggyback)
Catches an exception thrown by the middle tier. |
void |
handleWarning(oracle.jbo.JboWarning warn)
Catches a warning thrown by the middle tier. |
protected void |
internalValidation(int eventLevel)
Internal: Applications should not use this method. |
protected void |
openChildren()
Internal: Applications should not use this method. |
protected void |
openDataItems()
Internal: Applications should not use this method. |
protected void |
openProducerObject()
Internal: Applications should not use this method. |
void |
publishSession()
Publishes the session and its child items on the InfoBus. |
void |
publishSession(boolean activate)
|
void |
removeRowSet(ResultSetInfo resultSetInfo)
Removes a ResultSetInfo from a SessionInfo. |
void |
revokeSession()
Revokes the session and its child items on the InfoBus. |
void |
revokeSession(boolean force)
Ignores all objections when revoking the session and its child items on the InfoBus. |
void |
setAppletInstance(java.applet.Applet appletInstance)
Sets the Applet context. |
protected void |
setApplicationModule(oracle.jbo.ApplicationModule applicationModule)
Sets the Application Module property to use in this session. |
void |
setApplicationModuleClass(java.lang.String nuApplicationModuleClass)
Sets the ApplicationModuleClass property: the fully-qualified name of the class that implements the Application Module object on the server. |
void |
setApplicationModuleName(java.lang.String applicationModuleName)
Deprecated. Use ProducerObject.setName(String) instead. |
void |
setAppModuleInfo(AppModuleInfo jboLoc)
Specifies the Java Bussiness Object location and Project by using an AppModuleInfo MetaData class. |
void |
setBoLocationInfo(AppModuleInfo jboLoc)
Deprecated. Use setAppModuleInfo(AppModuleInfo jboLoc) instead. |
void |
setConnection(SessInfoDescriptor sDesc)
Deprecated. Use setConnectionInfo(ConnectionInfo con) instead. |
void |
setConnectionInfo(ConnectionInfo conn)
Sets a connection defining all elements of the connection deployment choice. |
void |
setConnectionMode(int nuConnectionMode)
Sets the ConnectionMode property which determines the relationship between the client and server portions of the application. |
void |
setConnectionName(java.lang.String connectionName)
Deprecated. Use setConnectionInfo(ConnectionInfo) instead. |
void |
setConnectionURL(java.lang.String URL)
Deprecated. Use these methods instead:
|
void |
setCustomConnect(CustomConnect customConnect)
Deprecated. Use ConnectionInfo.setCustomConnection(CustomConnection) instead |
void |
setDatabaseURL(java.lang.String nuDatabaseURL)
Deprecated. Use any of the following instead:
|
void |
setDeploymentPlatform(java.lang.String nuDeploymentPlatform)
Deprecated. Use setConnectionInfo(ConnectionInfo) instead. |
protected void |
setDirty(boolean dirty)
Determines whether this DataItem is dirty and needs to be validated. |
void |
setDriverClass(java.lang.String DriverClass)
Deprecated. This method is ignored. |
void |
setDriverType(int nuDriverType)
Deprecated. Use these methods instead:
|
void |
setIIOPConnectionName(java.lang.String connectionName)
Deprecated. Use setConnectionInfo(ConnectionInfo) instead. |
void |
setInfoBusName(java.lang.String busName)
Sets the name of the bus to be used for publishing the DataItems created under this session. |
void |
setJBOSessionClass(java.lang.String nuApplicationModuleClass)
Deprecated. Superceded by setApplicationModuleClass(java.lang.String) . |
void |
setLocale(java.util.Locale nuLocale)
Sets the locale for this SessionInfo and all of the child objects. |
void |
setLockingMode(java.lang.String lockingMode)
Sets the value of the LockingMode property, which identifies which lockmode is to be used. |
void |
setModuleInfo(ModuleDescriptor mDesc)
Deprecated. Use setAppModuleInfo(AppModuleInfo jboLoc) instead. |
void |
setPassword(java.lang.String nuPassword)
Deprecated. Use these methods instead:
|
void |
setRemoteApplicationPath(java.lang.String path)
Deprecated. Use setConnectionInfo(ConnectionInfo) instead. |
void |
setRemoteHost(java.lang.String remoteHost)
Deprecated. Use setConnectionInfo(ConnectionInfo) instead. |
void |
setRemoteHostPort(int port)
Deprecated. Use setConnectionInfo(ConnectionInfo) instead. |
void |
setServerTimeout(int nuTimeOut)
Sets the timeout threshold value for communications with the middle-tier server. |
void |
setUserName(java.lang.String nuUserName)
Deprecated. Use these methods instead:
|
void |
validate()
Internal: Applications should not use this method. |
Methods inherited from class oracle.dacf.dataset.InfoObject |
addChangeListener, addValidationListener, areParentsValid, clone, createChild, fireValidationEvent, forceValid, getChangeListeners, getUpdateMode, getValidationListeners, isActive, isDirty, isUpdateable, isValid, processValidationEvent, removeChangeListener, removeValidationListener, setActive, setUpdateable, setValid, toString, validate, validate |
Methods inherited from class oracle.dacf.dataset.ProducerObject |
addChild, addClonedDataItem, close, findProducerObject, findProducerObject, getClonedDataItems, getDataItemImpl, getDataProducer, getDataSourceName, getFullName, isAClonedDataItem, isOpen, open, publishDataItem, publishDataItem, removeChild, removeClonedDataItem, revokeDataItem, setClonedDataItems, setDataItem, setDataSourceName, setName, setOpen |
Methods inherited from class oracle.dacf.dataset.DacObject |
addChild, findDescendant, genCloneName, getChild, getChildIndex, getChildren, getNumOfChildren, getParent, getPrefix, insertChildAt, removeChild, removeChildren, setChildren, setParent, setPrefix |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int UNKNOWN
setDriverType(int)
,
getDriverType()
,
Constant Field Valuespublic static final int OCI7
setDriverType(int)
,
getDriverType()
,
Constant Field Valuespublic static final int OCI8
setDriverType(int)
,
getDriverType()
,
Constant Field Valuespublic static final int THIN
setDriverType(int)
,
getDriverType()
,
Constant Field Valuespublic static final java.lang.String OCI7_STRING
setDriverType(int)
,
getDriverType()
,
Constant Field Valuespublic static final java.lang.String OCI8_STRING
setDriverType(int)
,
getDriverType()
,
Constant Field Valuespublic static final java.lang.String THIN_STRING
setDriverType(int)
,
getDriverType()
,
Constant Field Valuespublic static final java.lang.String VISIBROKER_PLATFORM
setDeploymentPlatform(String platform)
,
getDeploymentPlatform()
,
Constant Field Valuespublic static final java.lang.String LOCAL_PLATFORM
setDeploymentPlatform(String platform)
,
getDeploymentPlatform()
,
Constant Field Valuespublic static final java.lang.String EJB_PLATFORM
setDeploymentPlatform(String platform)
,
getDeploymentPlatform()
,
Constant Field Valuespublic static final java.lang.String O8I_PLATFORM
setDeploymentPlatform(String platform)
,
getDeploymentPlatform()
,
Constant Field Valuespublic static final java.lang.String VISIBROKER_STRING
setDeploymentPlatform(String platform)
,
getDeploymentPlatform()
,
Constant Field Valuespublic static final java.lang.String LOCAL_STRING
setDeploymentPlatform(String platform)
,
getDeploymentPlatform()
,
Constant Field Valuespublic static final java.lang.String EJB_STRING
setDeploymentPlatform(String platform)
,
getDeploymentPlatform()
,
Constant Field Valuespublic static final java.lang.String O8I_STRING
setDeploymentPlatform(String platform)
,
getDeploymentPlatform()
,
Constant Field Valuespublic static final java.lang.String LOCK_NONE
setLockingMode(String mode)
,
getLockingMode()
,
Constant Field Valuespublic static final java.lang.String LOCK_PESSIMISTIC
setLockingMode(String mode)
,
getLockingMode()
,
Constant Field Valuespublic static final java.lang.String LOCK_OPTIMISTIC
setLockingMode(String mode)
,
getLockingMode()
,
Constant Field Valuespublic static final int COLOCATE
public static final java.lang.String COLOCATE_STRING
public static final int REMOTE
public static final java.lang.String REMOTE_STRING
public static final int USE_IOR
public static final java.lang.String IOR_STRING
public static final int USE_BIND
public static final java.lang.String BIND_STRING
public static final int PACKAGE
public static final int MODULE
public static final java.lang.String PACKAGE_STRING
public static final java.lang.String MODULE_STRING
public static final java.lang.String DEFAULT_MODULENAME
#setModuleName(String name)
,
#getModuleName()
,
Constant Field Valuespublic static final int DEFAULT_TIMEOUT
setServerTimeout(int)
,
getServerTimeout()
,
Constant Field Valuespublic static java.lang.String DEFAULT_INFOBUS_NAME
protected transient java.lang.Object _connectLock
public static final java.lang.String ERR_PROD_CODE
Constructor Detail |
public SessionInfo()
protected SessionInfo(java.lang.String name)
name
- session bind name.protected SessionInfo(java.lang.String name, oracle.jbo.ApplicationModule appModule)
name
- session bind name.appModule
- an Application Module in the session.Method Detail |
public void cacheSingleValue(java.lang.String name, java.lang.Object s)
name
- the name of the object to cache.s
- the object to cache.public void setLocale(java.util.Locale nuLocale)
setLocale
in class InfoObject
nuLocale
- the new locale to be used.getLocale()
public java.util.Locale getLocale()
getLocale
in class InfoObject
setLocale(Locale nuLocale)
public void setDeploymentPlatform(java.lang.String nuDeploymentPlatform)
setConnectionInfo(ConnectionInfo)
instead.
The deployment platform can be one of:
nuDeploymentPlatform
- the deployment platform.getDeploymentPlatform()
public java.lang.String getDeploymentPlatform()
getConnectionInfo()
instead.
The deployment platform can be one of:
setDeploymentPlatform(String nuDeploymentPlatform)
public javax.infobus.InfoBusDataProducer getInfoBusDataProducer()
public java.lang.String getInfoBusName()
public void setInfoBusName(java.lang.String busName)
busName
- name of the bus.protected void setApplicationModule(oracle.jbo.ApplicationModule applicationModule)
applicationModule
- the new Java Business Objects Application
Module to be used.public oracle.jbo.ApplicationModule getApplicationModule()
public void setApplicationModuleName(java.lang.String applicationModuleName)
ProducerObject.setName(String)
instead.
applicationModuleName
- the InfoBus bind name for this session.ProducerObject.setName(java.lang.String)
public java.lang.String getName()
DacObject
getName
in class DacObject
public java.lang.String getApplicationModuleName()
getName()
instead.
public void setRemoteHost(java.lang.String remoteHost)
setConnectionInfo(ConnectionInfo)
instead.
Used to define which host machine will be executing the business and data access logic. This only applies when the Deployment Platform is not LOCAL.
public java.lang.String getRemoteHost()
getConnectionInfo()
instead
public void setRemoteHostPort(int port)
setConnectionInfo(ConnectionInfo)
instead.
Used to define the connection port when executing remotely on an Oracle8i server.
public int getRemoteHostPort()
getConnectionInfo()
instead.
public void setRemoteApplicationPath(java.lang.String path)
setConnectionInfo(ConnectionInfo)
instead.
Used to define the application path when executing remotely on an Oracle8i server.
public java.lang.String getRemoteApplicationPath()
getConnectionInfo()
instead.
public void setApplicationModuleClass(java.lang.String nuApplicationModuleClass)
nuApplicationModuleClass
- the fully-qualified name of the
Application Module's class.public java.lang.String getApplicationModuleClass()
public java.lang.String getModulePackage()
public void setJBOSessionClass(java.lang.String nuApplicationModuleClass)
setApplicationModuleClass(java.lang.String)
.
nuApplicationModuleClass
- name of the Application Module class.public java.lang.String getJBOSessionClass()
getApplicationModuleClass()
.
public void setConnectionMode(int nuConnectionMode)
nuConnectionMode
- the connection mode to be used.REMOTE
,
COLOCATE
public int getConnectionMode()
REMOTE
,
COLOCATE
public void setUserName(java.lang.String nuUserName)
setConnectionInfo(ConnectionInfo con)
Connection
,
VBConnection
,
Oracle8iConnection
,
LocalConnection
NamedConnection.setUserName(String name)
The username is used to establish the "identity" of the person using the application.
nuUserName
- the name to be used.public java.lang.String getUserName()
getConnectionInfo()
Connection
,
VBConnection
,
Oracle8iConnection
,
LocalConnection
NamedConnection.getUserName()
The username is used to establish the "identity" of the person using the application.
public void setPassword(java.lang.String nuPassword)
setConnectionInfo(ConnectionInfo)
Connection
,
VBConnection
,
Oracle8iConnection
,
LocalConnection
NamedConnection.setPassWord(String password)
The password is used to verify the "identity" of the person using the application.
nuPassword
- the password to be used.public java.lang.String getPassword()
getConnectionInfo()
Connection
,
VBConnection
,
Oracle8iConnection
,
LocalConnection
NamedConnection.getPassWord()
The password is used to verify the "identity" of the person using the application.
public void setDatabaseURL(java.lang.String nuDatabaseURL)
setConnectionInfo(ConnectionInfo)
Connection
,
VBConnection
,
Oracle8iConnection
,
LocalConnection
NamedConnection
public java.lang.String getDatabaseURL()
public void setLockingMode(java.lang.String lockingMode)
lockingMode
- the lockmode type.LOCK_NONE
,
LOCK_PESSIMISTIC
,
LOCK_OPTIMISTIC
public java.lang.String getLockingMode()
LOCK_NONE
,
LOCK_PESSIMISTIC
,
LOCK_OPTIMISTIC
public void setDriverType(int nuDriverType)
setConnectionInfo(ConnectionInfo)
Connection
,
VBConnection
,
Oracle8iConnection
,
LocalConnection
nuDriverType
- the driver type. Can be one of OCI7,
OCI8, or THIN.OCI7
,
OCI8
,
THIN
,
getDriverType()
,
setDatabaseURL(java.lang.String)
,
setDriverClass(java.lang.String)
public int getDriverType()
getConnectionInfo()
Connection
,
VBConnection
,
Oracle8iConnection
,
LocalConnection
NamedConnection.getConnectionURL()
OCI7
,
OCI8
,
THIN
,
setDriverType(int)
public void setDriverClass(java.lang.String DriverClass)
DriverClass
- the driver class,
for example, "oracle.jdbc.driver.OracleDriver".getDriverClass()
public java.lang.String getDriverClass()
setDriverClass(java.lang.String)
public void setConnectionURL(java.lang.String URL)
setConnectionInfo(ConnectionInfo conn)
Connection
,
VBConnection
,
Oracle8iConnection
,
LocalConnection
NamedConnection.setConnectionURL(String url)
URL
- a connection URL,
for example, "jdbc:oracle:thin@machine:1521:ORCL".getConnectionURL()
,
setUserName(java.lang.String)
,
setPassword(java.lang.String)
public java.lang.String getConnectionURL()
getConnectionInfo()
Connection
,
VBConnection
,
Oracle8iConnection
,
LocalConnection
NamedConnection.getConnectionURL()
setConnectionURL(java.lang.String)
,
getUserName()
,
getPassword()
public void setServerTimeout(int nuTimeOut)
publishSession()
is
called.
nuTimeOut
- the new time out value in milliseconds.publishSession()
public int getServerTimeout()
public void publishSession()
setInfoBusName(java.lang.String busName)
,
publishSession(boolean activate)
public void publishSession(boolean activate)
public void revokeSession()
This method causes all published DataItems to be invalid. All consumers must relinquish any held references to DataItems.
setInfoBusName(java.lang.String busName)
,
publishSession(boolean activate)
public void revokeSession(boolean force)
This method causes all published DataItems to be invalid. All consumers must relinquish any held references to DataItems.
force
- if true, ignore all objections regarding pending changes.setInfoBusName(java.lang.String busName)
,
publishSession(boolean activate)
public void validate() throws ValidationException
InfoObject
validate
in class InfoObject
ValidationException
protected void internalValidation(int eventLevel) throws ValidationException
internalValidation
in class InfoObject
ValidationException
public void addRowSet(ResultSetInfo resultSetInfo)
ResultSetInfo.setSession(SessionInfo sessInfo)
public void removeRowSet(ResultSetInfo resultSetInfo)
resultSetInfo
- the ResultSetInfo to be removed from the
SessionInfo.public ResultSetInfo getRowSet(java.lang.String name)
name
- A string identifying a rowset.public int getRowSetCount()
public void setConnection(SessInfoDescriptor sDesc)
setConnectionInfo(ConnectionInfo con)
instead.
SessInfoDescriptor
object. This is an alternate
way to specify connection information.
sDesc
- the connection information.#setConnectionInfo(Connection)
,
SessInfoDescriptor
public SessInfoDescriptor getConnection()
getConnectionInfo()
instead.
SessInfoDescriptor
object. This is an alternate
way to get connection information.
SessInfoDescriptor
public void setConnectionInfo(ConnectionInfo conn)
conn
- the connection definition.Connection
public ConnectionInfo getConnectionInfo()
For Local platform, returns the connection name and applet instance.
For Visibroker platform, returns:
For Oracle8i and EJB platforms, returns the application module path, IIOP connection name, and applet instance.
Connection
public void setConnectionName(java.lang.String connectionName)
setConnectionInfo(ConnectionInfo)
instead.
connectionName
- name of the connection.public java.lang.String getConnectionName()
getConnectionInfo()
instead.
public void setIIOPConnectionName(java.lang.String connectionName)
setConnectionInfo(ConnectionInfo)
instead.
connectionName
- the name of the IIOP connection.public java.lang.String getIIOPConnectionName()
getConnectionInfo()
instead.
public void setModuleInfo(ModuleDescriptor mDesc)
setAppModuleInfo(AppModuleInfo jboLoc)
instead.
ModuleDescriptor
object.
mDesc
- the module information.public void setBoLocationInfo(AppModuleInfo jboLoc)
setAppModuleInfo(AppModuleInfo jboLoc)
instead.
AppModuleInfo
MetaData class.
jboLoc
- the JboLocation information.public void setAppModuleInfo(AppModuleInfo jboLoc)
AppModuleInfo
MetaData class.
jboLoc
- the JboLocation information.public AppModuleInfo getAppModuleInfo()
public void setAppletInstance(java.applet.Applet appletInstance)
appletInstance
- the Applet instance.public java.applet.Applet getAppletInstance()
protected void connect()
Used by DbAccess to connect to a data source. DbAccess is a javax.infobus interface and represents the SessionInfo object on the control side. DbAccess is closely bound to the data producer SessionInfo, which provides this method for DbAccess to use. To use this method, aquire a DbAccess interface, then do a connect through that interface.
protected void openProducerObject()
Sets up the SessionInfo for use by creating the server-side session. This method throws an IllegalStateException exception if required properties are not set.
openProducerObject
in class ProducerObject
java.lang.IllegalStateException
- thrown if open()
is called
when required properties are missing.protected void openChildren()
Opens all of the child Rowsets. This method executes the underlying query and places the current row on the first row.
openChildren
in class ProducerObject
protected void openDataItems()
Connects the DbAccess to the server-side session.
openDataItems
in class ProducerObject
protected void closeCheck()
Checks to see if the session can be closed. The session can be closed only when changes are saved and there are no changes pending.
closeCheck
in class ProducerObject
DataSourceOperationException
- thrown when changes are
pending and unsaved.protected void closeProducerObject()
A subclass-specific method for disconnecting the client object from the appropriate server objects.
closeProducerObject
in class ProducerObject
protected void closeChildren()
A subclass-specific method for disconnecting the child objects from their server objects counterparts.
closeChildren
in class ProducerObject
protected void closeDataItems()
A subclass-specific method for disconnecting and revoking DataItems.
closeDataItems
in class ProducerObject
public javax.infobus.DbAccess getDbAccess()
This interface allows the application to control the various aspects of the trasaction such as commit and rollback.
public java.util.Hashtable getEnvironment()
public void handleException(java.lang.Exception ex, boolean lastEntryInPiggyback)
handleException
in interface oracle.jbo.JboExceptionHandler
ex
- an exception.lastEntryInPiggyback
- true if ex is the last of a
batch of exceptions and warnings generated by a transaction.public void handleWarning(oracle.jbo.JboWarning warn)
handleWarning
in interface oracle.jbo.JboExceptionHandler
warn
- a warning message.public void finishedProcessingPiggyback(java.lang.Exception[] exArray)
finishedProcessingPiggyback
in interface oracle.jbo.JboExceptionHandler
exArray
- public void setCustomConnect(CustomConnect customConnect)
ConnectionInfo.setCustomConnection(CustomConnection)
instead
When a "custom connect" object is specified, the SessionInfo creates the Application Module and expects the "custom connect" object to connect to the database. The "custom connect" object can do any specific processing, such as changing/deriving a new user/password.
customConnect
- the custom connect object.public CustomConnect getCustomConnect()
ConnectionInfo.setCustomConnection(CustomConnection)
instead
protected javax.infobus.DataItem findDataItem(java.lang.String name)
The name is generally of the form: /Session/Iterator/Column and will contain that portion that has yet to be resolved.
findDataItem
in class ProducerObject
name
- the name of the DataItem.
protected javax.infobus.DataItem getDataItem()
getDataItem
in class ProducerObject
getDbAccess()
protected void setDirty(boolean dirty)
setDirty
in class InfoObject
dirty
- true if the DataItem is dirty and needs to be
validated; false otherwise.InfoObject.isDirty()
public void clearDirty()
clearDirty
in class InfoObject
InfoObject.isDirty()
|
Oracle Data-aware Controls Reference | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2003, Oracle. All rights reserved.