WebObjects 5.4.2

com.webobjects.eogeneration
Class EOControllerFactory

java.lang.Object
  extended by com.webobjects.eogeneration.EOControllerFactory
All Implemented Interfaces:
NSDisposable

public class EOControllerFactory
extends Object
implements NSDisposable


Nested Class Summary
static class EOControllerFactory.ControllerTaskAdaptor
           
static interface EOControllerFactory.ControllerTaskCallback
           
static interface EOControllerFactory.Delegate
           
static interface EOControllerFactory.Insert
           
static interface EOControllerFactory.List
           
static interface EOControllerFactory.Open
           
static interface EOControllerFactory.Query
           
static interface EOControllerFactory.Select
           
static interface EOControllerFactory.SelectByInserting
           
 
Field Summary
static String ActionsQuestion
           
static int AlwaysReuseController
           
static String AvailableSpecificationsQuestion
           
static String CacheSizeParameter
           
static String ControllerQuestion
           
static String DefaultSpecificationsQuestion
           
static String EditorTask
           
static String EntitySpecification
           
static String FormTask
           
static String IdentifyTask
           
static String ListTask
           
static String LocalesSpecification
           
static int NeverReuseController
           
static String PlatformsSpecification
           
static String PropertyKeysQuestion
           
static String QueryTask
           
static String QuestionSpecification
           
static int ReuseControllerAfterSave
           
static int ReuseControllerIfInvisible
           
static int ReuseControllerIfNotEdited
           
static String ReuseModeParameter
           
static String SelectTask
           
static String TaskSpecification
           
static String TopLevelModalDialogQuestion
           
static String TopLevelWindowQuestion
           
static String UserInterfaceParametersQuestion
           
 
Constructor Summary
EOControllerFactory()
           
 
Method Summary
 NSArray actions()
           
 void activateDefaultControllers()
           
 boolean cachesControllers()
           
 boolean canInsertWithEntityName(String entityName)
           
 boolean canListWithEntityName(String entityName)
           
 boolean canOpenGlobalIDsWithEntityName(String entityName)
           
 boolean canOpenModalDialogForTaskName(String taskName)
           
 boolean canOpenWindowForTaskName(String taskName)
           
 boolean canOpenWithEntityName(String entityName)
           
 boolean canQueryWithEntityName(String entityName)
           
 boolean canSelectByInsertingWithEntityName(String entityName)
           
 boolean canSelectWithEntityName(String entityName)
           
 EOController controllerWithEntityName(EOController rootController, Class controllerInterface, String entityName)
           
 EOController controllerWithSpecification(NSDictionary specification, boolean checkRulesIfUnknown)
           
static EOControllerFactory createSharedControllerFactoryWithClass(String className)
           
protected  int defaultReuseModeForSpecification(NSDictionary specification)
           
 Object delegate()
           
 void dispose()
          Invoked when the receiver should prepare itself for destruction.
 EOController editorControllerWithEntity(String entityName)
           
 Object evaluateRules(NSDictionary specification)
           
 NSArray expandedKeyPathsForEntityName(String entityName, NSArray keys)
           
 NSArray expandedKeyPathsForEntityName(String entityName, String key)
           
 EOController formControllerWithEntity(String entityName)
           
 boolean hasControllerWithSpecification(NSDictionary specification, boolean checkRulesIfUnknown)
           
 EOControllerFactory.Insert insertWithEntityName(String entityName)
           
 void invalidateRules()
           
 EOController listControllerWithEntity(String entityName)
           
 EOControllerFactory.List listFetchSpecificationWithEntityName(String entityName, EOFetchSpecification fetchSpecification)
           
 EOControllerFactory.List listGlobalIDsWithEntityName(String entityName, NSArray globalIDs)
           
 EOControllerFactory.List listWithEntityName(String entityName)
           
 NSArray openGlobalIDsWithEntityName(String entityName, NSArray globalIDs)
           
 EOControllerFactory.Open openGlobalIDWithEntityName(String entityName, EOGlobalID globalID)
           
 EOController openModalDialogForTaskName(String taskName)
           
 EOControllerFactory.Open openSingleWithEntityName(String entityName)
           
 EOController openWindowForTaskName(String taskName)
           
 NSArray openWithEntityName(String entityName)
           
 void performTaskWithController(EOController controller, EOControllerFactory.ControllerTaskCallback callback, Object[] parameters)
           
 NSArray propertyKeysForEntityAndTaskName(String entityName, String taskName)
           
 EOController queryControllerWithEntity(String entityName)
           
 EOControllerFactory.Query queryWithEntityName(String entityName)
           
 EOGlobalID selectByInsertingWithEntityName(String entityName)
           
 EOController selectControllerWithEntity(String entityName)
           
 NSArray selectWithEntityName(String entityName, boolean allowsMultipleGlobalIDs, boolean allowsInserting)
           
 void setCachesControllers(boolean flag)
           
 void setDelegate(Object delegate)
           
static EOControllerFactory sharedControllerFactory()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

QuestionSpecification

public static final String QuestionSpecification
See Also:
Constant Field Values

TaskSpecification

public static final String TaskSpecification
See Also:
Constant Field Values

EntitySpecification

public static final String EntitySpecification
See Also:
Constant Field Values

LocalesSpecification

public static final String LocalesSpecification
See Also:
Constant Field Values

PlatformsSpecification

public static final String PlatformsSpecification
See Also:
Constant Field Values

UserInterfaceParametersQuestion

public static final String UserInterfaceParametersQuestion
See Also:
Constant Field Values

ActionsQuestion

public static final String ActionsQuestion
See Also:
Constant Field Values

PropertyKeysQuestion

public static final String PropertyKeysQuestion
See Also:
Constant Field Values

AvailableSpecificationsQuestion

public static final String AvailableSpecificationsQuestion
See Also:
Constant Field Values

DefaultSpecificationsQuestion

public static final String DefaultSpecificationsQuestion
See Also:
Constant Field Values

ControllerQuestion

public static final String ControllerQuestion
See Also:
Constant Field Values

TopLevelWindowQuestion

public static final String TopLevelWindowQuestion
See Also:
Constant Field Values

TopLevelModalDialogQuestion

public static final String TopLevelModalDialogQuestion
See Also:
Constant Field Values

IdentifyTask

public static final String IdentifyTask
See Also:
Constant Field Values

QueryTask

public static final String QueryTask
See Also:
Constant Field Values

ListTask

public static final String ListTask
See Also:
Constant Field Values

FormTask

public static final String FormTask
See Also:
Constant Field Values

SelectTask

public static final String SelectTask
See Also:
Constant Field Values

EditorTask

public static final String EditorTask
See Also:
Constant Field Values

NeverReuseController

public static final int NeverReuseController
See Also:
Constant Field Values

ReuseControllerIfNotEdited

public static final int ReuseControllerIfNotEdited
See Also:
Constant Field Values

ReuseControllerAfterSave

public static final int ReuseControllerAfterSave
See Also:
Constant Field Values

ReuseControllerIfInvisible

public static final int ReuseControllerIfInvisible
See Also:
Constant Field Values

AlwaysReuseController

public static final int AlwaysReuseController
See Also:
Constant Field Values

ReuseModeParameter

public static final String ReuseModeParameter
See Also:
Constant Field Values

CacheSizeParameter

public static final String CacheSizeParameter
See Also:
Constant Field Values
Constructor Detail

EOControllerFactory

public EOControllerFactory()
Method Detail

createSharedControllerFactoryWithClass

public static EOControllerFactory createSharedControllerFactoryWithClass(String className)

sharedControllerFactory

public static EOControllerFactory sharedControllerFactory()

dispose

public void dispose()
Description copied from interface: NSDisposable
Invoked when the receiver should prepare itself for destruction. Implementations of this method should break connections that other objects have to the receiver, including unregistering for notifications, resigning as other objects' delegates, release locks and system resources, close files, and any other clean up operations.

Specified by:
dispose in interface NSDisposable

setDelegate

public void setDelegate(Object delegate)

delegate

public Object delegate()

performTaskWithController

public void performTaskWithController(EOController controller,
                                      EOControllerFactory.ControllerTaskCallback callback,
                                      Object[] parameters)

setCachesControllers

public void setCachesControllers(boolean flag)

cachesControllers

public boolean cachesControllers()

invalidateRules

public void invalidateRules()

evaluateRules

public Object evaluateRules(NSDictionary specification)

actions

public NSArray actions()

propertyKeysForEntityAndTaskName

public NSArray propertyKeysForEntityAndTaskName(String entityName,
                                                String taskName)

expandedKeyPathsForEntityName

public NSArray expandedKeyPathsForEntityName(String entityName,
                                             String key)

expandedKeyPathsForEntityName

public NSArray expandedKeyPathsForEntityName(String entityName,
                                             NSArray keys)

activateDefaultControllers

public void activateDefaultControllers()

controllerWithSpecification

public EOController controllerWithSpecification(NSDictionary specification,
                                                boolean checkRulesIfUnknown)

defaultReuseModeForSpecification

protected int defaultReuseModeForSpecification(NSDictionary specification)

hasControllerWithSpecification

public boolean hasControllerWithSpecification(NSDictionary specification,
                                              boolean checkRulesIfUnknown)

controllerWithEntityName

public EOController controllerWithEntityName(EOController rootController,
                                             Class controllerInterface,
                                             String entityName)

queryControllerWithEntity

public EOController queryControllerWithEntity(String entityName)

listControllerWithEntity

public EOController listControllerWithEntity(String entityName)

formControllerWithEntity

public EOController formControllerWithEntity(String entityName)

selectControllerWithEntity

public EOController selectControllerWithEntity(String entityName)

editorControllerWithEntity

public EOController editorControllerWithEntity(String entityName)

canOpenWindowForTaskName

public boolean canOpenWindowForTaskName(String taskName)

openWindowForTaskName

public EOController openWindowForTaskName(String taskName)

canOpenModalDialogForTaskName

public boolean canOpenModalDialogForTaskName(String taskName)

openModalDialogForTaskName

public EOController openModalDialogForTaskName(String taskName)

canSelectWithEntityName

public boolean canSelectWithEntityName(String entityName)

selectWithEntityName

public NSArray selectWithEntityName(String entityName,
                                    boolean allowsMultipleGlobalIDs,
                                    boolean allowsInserting)

canSelectByInsertingWithEntityName

public boolean canSelectByInsertingWithEntityName(String entityName)

selectByInsertingWithEntityName

public EOGlobalID selectByInsertingWithEntityName(String entityName)

canQueryWithEntityName

public boolean canQueryWithEntityName(String entityName)

queryWithEntityName

public EOControllerFactory.Query queryWithEntityName(String entityName)

canInsertWithEntityName

public boolean canInsertWithEntityName(String entityName)

insertWithEntityName

public EOControllerFactory.Insert insertWithEntityName(String entityName)

canOpenGlobalIDsWithEntityName

public boolean canOpenGlobalIDsWithEntityName(String entityName)

openGlobalIDWithEntityName

public EOControllerFactory.Open openGlobalIDWithEntityName(String entityName,
                                                           EOGlobalID globalID)

openGlobalIDsWithEntityName

public NSArray openGlobalIDsWithEntityName(String entityName,
                                           NSArray globalIDs)

canOpenWithEntityName

public boolean canOpenWithEntityName(String entityName)

openSingleWithEntityName

public EOControllerFactory.Open openSingleWithEntityName(String entityName)

openWithEntityName

public NSArray openWithEntityName(String entityName)

canListWithEntityName

public boolean canListWithEntityName(String entityName)

listWithEntityName

public EOControllerFactory.List listWithEntityName(String entityName)

listFetchSpecificationWithEntityName

public EOControllerFactory.List listFetchSpecificationWithEntityName(String entityName,
                                                                     EOFetchSpecification fetchSpecification)

listGlobalIDsWithEntityName

public EOControllerFactory.List listGlobalIDsWithEntityName(String entityName,
                                                            NSArray globalIDs)

toString

public String toString()
Overrides:
toString in class Object

Last updated June 2008

Copyright © 2000-2008 Apple Inc.