Switch to: V12V11V10V9V8V7V6V5

VLocalConnection

Inherits from NSObjectController
Represents object Valenina, VConnection.
Declared in V4CC_VLocalConnection.h

Overview

VLocalConnection Controller - provides access to the content of a local Valentina database.

To use VLocalConnection you should set Valentina.Init() parameters: cacheSize and serial (if you have it).

Tasks

Please familiarise with tasks of all controllers before programming your application. Some tasks may be invoked and executed by high-level's objects. And you should not invoke them directly.

Construction Methods

Init Connection Method

Properties

Class Methods

initWithValentinaCacheSize

Establishes caches size of Valentina:

- (id)initWithValentinaCacheSize:(int)inCacheSize;

Init Valentina's properties, with the given cache size and without Serial option.

Return Value
Returns a VLocalConnection object, initialized by the cache's size.

initWithValentinaCacheSize:serial:

Establishes caches size of Valentina, and Serial:

- (id)initWithValentinaCacheSize:(int)inCacheSize serial:(NSString*)inSerial;

Init Valentina's properties, with the given cache size and serial.

Return Value
Returns an VLocalConnection object initialized by the cache's size and serial.

dealloc

Releases VLocalConnection properties

- (void)dealloc;

initConnection

Initializes a local VConnection instance.

- (void)initConnection;

Discussion VLocalController contains two objects - Valentina instance and VConnection. This method consistently initializes Valentina instance and VConnection.

Be attentive: you should invoke this method after the properties has been initialized.

connection

Returns an VConnection object.

- (VConnection*)connection;

setConnection:

Set VConnection object for VLocalController.

- (void)setConnection:(VConnection*)inConnection;

cacheSize

Returns a cache size.

- (int)cacheSize;

setCacheSize:

Establishes caches size of Valentina.

- (void)setCacheSize:(int)inCacheSize;

serial

Returns a serial.

- (NSString*)serial;

setSerial:

Establishes serial of Valentina. - (void)setSerial:(NSString*)inSerial;

Code Example

VLocalConnection*  myLocalVController;
myLocalVController = [[VLocalConnection alloc] initWithValentinaCacheSize:8];
[mpLocalVController initConnection];