public abstract class ERClientApplication extends Object
Constructor and Description |
---|
ERClientApplication() |
Modifier and Type | Method and Description |
---|---|
protected void |
connectToServer() |
ERDistributedObjectStore |
distributedObjectStore() |
IOException |
distributionChannelShouldThrowIOException(com.webobjects.eodistribution.client.EODistributionChannel channel,
IOException ioException)
EODistributionChannel.Delegate
Gives the delegate an opportunity to handle an I/O exception which occurred while communicating with the server.
|
Throwable |
distributionChannelShouldThrowServerException(com.webobjects.eodistribution.client.EODistributionChannel channel,
Throwable clientExceptionForServerException,
String originalServerExceptionClassName,
String originalServerExceptionMessage)
EODistributionChannel.Delegate
Gives the delegate an opportunity to handle an exception that occurred on the server side.
|
void |
handleLostServerConnectionException(LostServerConnectionException e) |
protected abstract void |
handleMissingSession(IOException e)
Session timed out or server restarted.
You could show a message like: "Your session has timed out. |
protected abstract void |
handleNoInstanceAvailable(IOException e)
Should show a message and exit the app.
|
protected abstract String |
modelPackageName()
Should return the name of the package where your EOEnterpriseObject classes are located
|
protected void |
registerClassDescriptions(NSArray<com.webobjects.eocontrol.EOClassDescription> classDescriptions)
Note: assumes your entity names and your classes' simple-names are the same.
|
Preferences |
userDefaults() |
protected void connectToServer()
protected abstract String modelPackageName()
protected void registerClassDescriptions(NSArray<com.webobjects.eocontrol.EOClassDescription> classDescriptions)
classDescriptions
- public ERDistributedObjectStore distributedObjectStore()
public Preferences userDefaults()
public IOException distributionChannelShouldThrowIOException(com.webobjects.eodistribution.client.EODistributionChannel channel, IOException ioException)
public void handleLostServerConnectionException(LostServerConnectionException e)
protected abstract void handleNoInstanceAvailable(IOException e)
e
- protected abstract void handleMissingSession(IOException e)
e
- public Throwable distributionChannelShouldThrowServerException(com.webobjects.eodistribution.client.EODistributionChannel channel, Throwable clientExceptionForServerException, String originalServerExceptionClassName, String originalServerExceptionMessage)
Copyright © 2002 – 2020 Project Wonder.