net.wotonomy.test
Class TestDataSource

java.lang.Object
  extended by net.wotonomy.control.EODataSource
      extended by net.wotonomy.test.TestDataSource

public class TestDataSource
extends net.wotonomy.control.EODataSource

A custom DataSource that works with the datastore package for persistence.


Constructor Summary
TestDataSource()
           
TestDataSource(net.wotonomy.control.EOEditingContext aContext)
           
 
Method Summary
 net.wotonomy.control.EOClassDescription classDescriptionForObjects()
          Returns the description of the class of the objects that is vended by this data source, or null if this cannot be determined.
 net.wotonomy.control.EODataSource dataSourceQualifiedByKey(java.lang.String aKey)
          Returns a data source that is capable of manipulating objects of the type returned by applying the specified key to objects vended by this data source.
 void deleteObject(java.lang.Object anObject)
          Deletes the specified object from this data source.
 net.wotonomy.control.EOEditingContext editingContext()
           
 net.wotonomy.foundation.NSArray fetchObjects()
          Returns a List containing the objects in this data source.
 void insertObject(java.lang.Object anObject)
          This implementation does nothing.
 void qualifyWithRelationshipKey(java.lang.String aKey, java.lang.Object anObject)
          Restricts this data source to vend those objects that are associated with the specified key on the specified object.
 
Methods inherited from class net.wotonomy.control.EODataSource
createObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestDataSource

public TestDataSource()

TestDataSource

public TestDataSource(net.wotonomy.control.EOEditingContext aContext)
Method Detail

editingContext

public net.wotonomy.control.EOEditingContext editingContext()
Overrides:
editingContext in class net.wotonomy.control.EODataSource

insertObject

public void insertObject(java.lang.Object anObject)
This implementation does nothing.

Specified by:
insertObject in class net.wotonomy.control.EODataSource

deleteObject

public void deleteObject(java.lang.Object anObject)
Deletes the specified object from this data source.

Specified by:
deleteObject in class net.wotonomy.control.EODataSource

fetchObjects

public net.wotonomy.foundation.NSArray fetchObjects()
Returns a List containing the objects in this data source. This implementation returns all TestObjects that have been persisted to the datastore in the data directory.

Overrides:
fetchObjects in class net.wotonomy.control.EODataSource

dataSourceQualifiedByKey

public net.wotonomy.control.EODataSource dataSourceQualifiedByKey(java.lang.String aKey)
Returns a data source that is capable of manipulating objects of the type returned by applying the specified key to objects vended by this data source.

Specified by:
dataSourceQualifiedByKey in class net.wotonomy.control.EODataSource
See Also:
qualifyWithRelationshipKey(java.lang.String, java.lang.Object)

qualifyWithRelationshipKey

public void qualifyWithRelationshipKey(java.lang.String aKey,
                                       java.lang.Object anObject)
Restricts this data source to vend those objects that are associated with the specified key on the specified object.

Specified by:
qualifyWithRelationshipKey in class net.wotonomy.control.EODataSource

classDescriptionForObjects

public net.wotonomy.control.EOClassDescription classDescriptionForObjects()
Returns the description of the class of the objects that is vended by this data source, or null if this cannot be determined. This implementation returns TestObject.

Overrides:
classDescriptionForObjects in class net.wotonomy.control.EODataSource


Copyright © 2006 null. All Rights Reserved.