//
//  MCPPrimaryKeyArchive.h
//  MCPersistence
//
//  Created by aj on Mon Dec 31 2001.
//  Copyright (c) 2001 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>

@class MCPEntity;

@interface MCPPrimaryKeyArchive : NSObject {
	NSNumber 				*_replicationFactor;
	NSNumber 				*_replicationIncrement;
	BOOL					_startedGeneratingKeys;
	
	NSMutableDictionary		*_cache;

}

- (void)setReplicationFactor:(int)aFactor;
- (int)replicationFactor;

- (void)setReplicationIncrement:(int)aNumber;
- (int)replicationIncrement;

- (NSNumber *)currentPrimaryKeyForEntityNamed:(NSString *)entityName;
- (NSNumber *)nextPrimaryKeyForEntityNamed:(NSString *)entityName;

- (NSNumber *)currentPrimaryKeyForEntity:(MCPEntity *)entity;
- (NSNumber *)nextPrimaryKeyForEntity:(MCPEntity *)entity;





@end
