* EOAccess/EODatabase.h/m:(EODistantPastTimeInterval): Added

global variable.
        (snapshotForGlobalID:after:): Implemented.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@20642 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
David Ayers 2005-02-01 17:23:05 +00:00
parent 780853a70b
commit 7ce3d33814
3 changed files with 18 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2005-01-27 David Ayers <d.ayers@inode.at>
* EOAccess/EODatabase.h/m:(EODistantPastTimeInterval): Added
global variable.
(snapshotForGlobalID:after:): Implemented.
2005-01-27 David Ayers <d.ayers@inode.at>
* EOControl/EOEditingContext.h/m

View file

@ -53,6 +53,8 @@
GDL2ACCESS_EXPORT NSString *EOGeneralDatabaseException;
GDL2ACCESS_EXPORT NSTimeInterval EODistantPastTimeInterval;
@interface EODatabase : NSObject
{
@ -99,6 +101,8 @@ GDL2ACCESS_EXPORT NSString *EOGeneralDatabaseException;
- (void)recordSnapshot: (NSDictionary *)snapshot forGlobalID: (EOGlobalID *)gid;
- (NSDictionary *)snapshotForGlobalID: (EOGlobalID *)gid
after: (NSTimeInterval)ti;
- (NSDictionary *)snapshotForGlobalID: (EOGlobalID *)gid;
- (void)recordSnapshot: (NSArray *)gids

View file

@ -72,7 +72,7 @@ RCS_ID("$Id$")
*/
NSString *EOGeneralDatabaseException = @"EOGeneralDatabaseException";
NSTimeInterval EODistantPastTimeInterval = -603979776.0;
@implementation EODatabase
@ -449,6 +449,13 @@ static NSMutableArray *databaseInstances;
}
- (NSDictionary *)snapshotForGlobalID: (EOGlobalID *)gid
{
return [self snapshotForGlobalID: gid
after: EODistantPastTimeInterval];
}
- (NSDictionary *)snapshotForGlobalID: (EOGlobalID *)gid
after: (NSTimeInterval)ti
{
//seems OK
NSDictionary *snapshot = nil;