Get Column Types
Siminov Framework edited this page Jan 16, 2016
·
7 revisions
public final Map<String, String> getColumnTypes() throws DatabaseException;
- Android Sample: Get Column Types
Map<String, String> columnTypes = null;
try {
columnTypes = new Book().getColumnTypes();
} catch(DatabaseException de) {
//Log it.
}
- (NSMutableDictionary *)getColumnTypes;
- iOS Sample: Get Column Types
NSMutableDictionary *columnTypes = nil;
@try {
columnTypes = [[[Book alloc] init] getColumnTypes];
} @catch(SICDatabaseException *databaseException) {
//Log it.
}
public IDictionary<String, String> GetColumnTypes();
- Windows Sample: Get Column Types
IDictionary<String, String> columnTypes = null;
try
{
columnTypes = new Book().GetColumnTypes();
}
catch(DatabaseException de)
{
//Log it.
}
- this.getColumnTypes = function();
- this.getColumnTypesAsync = function(callback, transaction);
- JavaScript Sample: Get Column Types
/** Get Column Types Sample **/
var columnTypes = null;
try {
columnTypes = new Book().getColumnTypes();
} catch(DatabaseException de) {
//Log it.
}
/** Get Column Types Async Sample **/
var callback = new Callback();
callback.onSuccess = function(columnTypes) {
}
new Book().getColumnTypesAsync(callback);
/** Get Column Types Async Transaction Sample **/
var callback = new Callback();
callback.onExecute = function(transaction) {
var columnTypesCallback = new Callback();
columnTypesCallback.onSuccess = function() {
}
new Book().getDatabaseDescriptorAsync(columnTypesCallback, transaction);
}
callback.onSuccess = function() {
}
var databaseDescriptor = new Lession().getDatabaseDescriptor();
Database.beginTransactionAsync(databaseDescriptor, callback);