Get Database Descriptor
Siminov Framework edited this page Jan 17, 2016
·
12 revisions
public final DatabaseDescriptor getDatabaseDescriptor() throws DatabaseException;
- Android Sample: Get Database Descriptor
try {
DatabaseDescriptor databaseDescriptor = new Book().getDatabaseDescriptor();
} catch(DatabaseException databaseException) {
//Log It.
}
- (SICDatabaseDescriptor *)getDatabaseDescriptor;
- iOS Sample: Get Database Descriptor
@try {
SICDatabaseDescriptor *databaseDescriptor = [[[Book alloc] init] getDatabaseDescriptor];
} @catch(SICDatabaseException *databaseException) {
//Log It.
}
public DatabaseDescriptor GetDatabaseDescriptor();
- Windows Sample: Get Database Descriptor
try
{
DatabaseDescriptor databaseDescriptor = new Book().GetDatabaseDescriptor();
}
catch(DatabaseException databaseException)
{
//Log It.
}
- this.getDatabaseDescriptor = function();
- this.getDatabaseDescriptorAsync = function(callback, transaction);
- JavaScript Sample: Get Database Descriptor
/** Get Database Descriptor Sample **/
try {
var databaseDescriptor = new Book().getDatabaseDescriptor();
} catch(DatabaseException databaseException) {
//Log It.
}
/** Get Database Descriptor Async Sample **/
var callback = new Callback();
callback.onSuccess = function(databaseDescriptor) {
}
new Book().getDatabaseDescriptorAsync(callback);
/** Get Database Descriptor Async Transaction Sample **/
var callback = new Callback();
callback.onExecute = function(transaction) {
var databaseDescriptorCallback = new Callback();
databaseDescriptorCallback.onSuccess = function() {
}
new Book().getDatabaseDescriptorAsync(databaseDescriptorCallback, transaction);
}
callback.onSuccess = function() {
}
var databaseDescriptor = new Lession().getDatabaseDescriptor();
Database.beginTransactionAsync(databaseDescriptor, callback);