Skip to content
Siminov Framework edited this page Jan 16, 2016 · 7 revisions

Get Column Types

Android API: Get Column Types

    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.
    }

iOS API: Get Column Types

    - (NSMutableDictionary *)getColumnTypes;
  • iOS Sample: Get Column Types
    NSMutableDictionary *columnTypes = nil;
    @try {
        columnTypes = [[[Book alloc] init] getColumnTypes];
    } @catch(SICDatabaseException *databaseException) {
		//Log it.
    }

Windows API: Get Column Types

    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.
    }

JavaScript API: Get Column Types

    - 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);