package com.tightdb;

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

@@ -111,116 +111,8 @@
 ),%0D%0A
-%09ColumnTypeDate(3),%0D%0A%09ColumnTypeBinary(4),%0D%0A%09ColumnTypeTable(5),%0D%0A%09ColumnTypeMixed(6),%0D%0A%09// Internal types%0D%0A
 %09Col
@@ -133,9 +133,9 @@
 num(
-7
+3
 );%09/
@@ -227,16 +227,103 @@
  type%0D%0A%09
+ColumnTypeBinary(4),%0D%0A%09ColumnTypeTable(5),%0D%0A%09ColumnTypeMixed(6),%0D%0A%09ColumnTypeDate(7),%0D%0A
 %0D%0A%09priva
@@ -397,17 +397,16 @@
 index;%0D%0A
-%09
 %0D%0A%09publi

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