SybaseContext
Inherits from: EOAdaptorContext : NSObject
Package: com.apple.yellow.sybaseeoadaptor
Class Description
A SybaseContext represents a single transaction scope on the database server to which its adaptor object is connected. Since a Sybase server supports multiple concurrent transaction sessions, the adaptor may have several adaptor contexts. A SybaseContext may in turn have a SybaseChannel, which handles actual access to the data on the server.
The SybaseContext can have a delegate, which gives you access to all messages returned from the Sybase client library or from the Sybase Server. See the SybaseContext.Delegate interface specification for a complete description.
Method Types
- Setting the login time out interval
- loginTimeOutInterval
- setLoginTimeOutInterval
- Setting the time out interval
- setTimeOutInterval
- timeOutInterval
- Managing the connection
- connect
- currentChannel
- disconnect
- isConnected
- setMaximumConnections
- maximumConnections
- Setting the max text size default
- maxTextSizeDefault
- setMaxTextSizeDefault
- Setting the current exception
- raiseCurrentException
- setCurrentException
Static Methods
maximumConnections
public static int maximumConnections()
loginTimeOutInterval
public static int loginTimeOutInterval()
See Also: setLoginTimeOutInterval
setLoginTimeOutInterval
public static void setLoginTimeOutInterval(int seconds)
See Also: loginTimeOutInterval
setMaximumConnections
public static boolean setMaximumConnections(int value)
setTimeOutInterval
public static void setTimeOutInterval(int seconds)
See Also: timeOutInterval
timeOutInterval
public static int timeOutInterval()
Instance Methods
connect
public void connect()
See Also: disconnect
currentChannel
public SybaseChannel currentChannel()
disconnect
public void disconnect()
See Also: connect
isConnected
public boolean isConnected()
See Also: connect, disconnect
maxTextSizeDefault
public int maxTextSizeDefault()
raiseCurrentException
public void raiseCurrentException()
See Also: setCurrentException
setCurrentException
public void setCurrentException(Throwable exception)
When the SybaseAdaptor encounters an error, it uses the error message to build an NSException and stores the exception in the SybaseContext using this method. The exception can then be reviewed by other components to determine if the error is fatal.
See Also: raiseCurrentException
setMaxTextSizeDefault
public void setMaxTextSizeDefault(int textSize)