|
Adun
0.83
|
#import <ULFileSystemDatabaseBackend.h>
Public Member Functions | |
| (id) | - initWithDatabaseIdentifier:error: |
| (id) | - initWithDatabaseIdentifier:clientName:error: |
| (id) | - initWithDatabaseIdentifier:clientName:host:user:password:error: |
| (id) | - initWithDatabaseIdentifier:clientName:host:scheme:port:user:password:error: |
| (NSURL *) | - adunServerURL |
| (NSString *) | - simulationDir |
| (NSString *) | - templateDir |
| (NSString *) | - systemDir |
| (NSString *) | - dataSetDir |
| (void) | - reindexAll |
| (void) | - autoUpdateIndexes: |
| (void) | - updateIndexes |
| (void) | - saveIndexes |
| (void) | - saveDatabase |
| (void) | - autosaveIndexes: |
| (NSString *) | - databaseIdentifier |
A ULDatabaseBackendDidModifyContentsNotification is sent on each successful write operation.
implement reindexAll
connection/disconnection checking
| - (NSURL *) adunServerURL |
Returns the URL of the database which can potentially be used to connect to it using AdunServer For a file-system database this method requires that there is a distributed AdunServer running on the local host The URL may change depending on if you are connected to the internet or not.
| - (void) autosaveIndexes: | (id) | info |
Deprecated
| - (void) autoUpdateIndexes: | (id) | info |
Description forthcomming
| - (NSString*) databaseIdentifier |
See ULDatabaseBackendMetadataInterface protocol for definition. In this case this method simply returns the databaseName();
| - (NSString*) dataSetDir |
Description forthcomming
| - (id) initWithDatabaseIdentifier: | (NSString*) | path | |
| clientName: | (NSString*) | name | |
| error: | (NSError**) | error | |
As initWithDatabaseIdentifier:clientName:host:user:password:error: passing nil for host, user, password & error.
| - (id) initWithDatabaseIdentifier: | (NSString*) | path | |
| clientName: | (NSString*) | name | |
| host: | (NSHost*) | host | |
| scheme: | (NSString*) | scheme | |
| port: | (int) | port | |
| user: | (NSString*) | user | |
| password: | (NSString*) | password | |
| error: | (NSError**) | error | |
Initialises a new ULFileSystemDatabaseBackend instance for accessing the database at path.
| path | The path to an Adun file system database directory - the structure of path depends on scheme If path is nil it defaults to the application default database. If path cannot be accessed error contains an NSError object detailing the problem. |
| name | An NSString that will be associated with the returned object. If no database exits at path its created if possible. name should be unique. If name is nil it defaults to path @ localhost . |
| host | An NSHost object detailing the host the database is located on - it defaults to localhost. |
| scheme | The scheme (protocol - e.g. http, file, ftp) to use to read the database. Defaults to file |
| port | The port to connect using - applicability depends on scheme. Pass -1 if no port necessary. |
| user | The user to connect to the database as |
| password | The password to use to connect to the database |
| - (id) initWithDatabaseIdentifier: | (NSString*) | path | |
| clientName: | (NSString*) | name | |
| host: | (NSHost*) | host | |
| user: | (NSString*) | user | |
| password: | (NSString*) | password | |
| error: | (NSError**) | error | |
Initialises a new ULFileSystemDatabaseBackend instance for accessing the database at path. As initWithDatabaseIdentifier:clientName:host:user:password:error: passing "file" for scheme and -1 for port.
| - (id) initWithDatabaseIdentifier: | (NSString*) | path | |
| error: | (NSError**) | error | |
As initWithDatabaseIdentifier:clientName:error: passing path @ localhost for name.
| - (void) reindexAll |
Not sure if this is still needed
| - (void) saveDatabase |
Deprecated
| - (void) saveIndexes |
Deprecated
| - (NSString*) simulationDir |
Description forthcomming
| - (NSString*) systemDir |
Description forthcomming
| - (NSString *) templateDir |
Description forthcomming
| - (void) updateIndexes |
Causes the receiver to re-read the database indexes. If the receiver detects a change in the index it broadcasts a ULDatabase
1.8.1