package com.tightdb;

public enum ColumnType {
	ColumnTypeInt(0),
	ColumnTypeBool(1),
	ColumnTypeString(2),
	ColumnTypeStringEnum(3);	// This is NOT a user selectable datatype - You can not create a table containing this type
	ColumnTypeBinary(4),
	ColumnTypeTable(5),
	ColumnTypeMixed(6),
	ColumnTypeDate(7),

	private ColumnType(int index){
		this.index = index;
	}
	private int index;

	public static ColumnType getColumnTypeForIndex(int index){
		ColumnType[] columnTypes = values();
		for(int i=0; i<columnTypes.length; i++){
			if(columnTypes[i].index == index)
				return columnTypes[i];
		}
		return null;
	}
}

package com.tightdb;

public enum ColumnType {
	ColumnTypeInt(0),
	ColumnTypeBool(1),
	ColumnTypeString(2),
	ColumnTypeStringEnum(3),	// This is NOT a user selectable datatype - You can not create a table containing this type
	ColumnTypeBinary(4),
	ColumnTypeTable(5),
	ColumnTypeMixed(6),
	ColumnTypeDate(7);

	private ColumnType(int index){
		this.index = index;
	}
	private int index;

	public static ColumnType getColumnTypeForIndex(int index){
		ColumnType[] columnTypes = values();
		for(int i=0; i<columnTypes.length; i++){
			if(columnTypes[i].index == index)
				return columnTypes[i];
		}
		return null;
	}
}

Fix for: Order of items in enum ColumnType updated to mach recent changes in the core library