






class CompiliedStatement:
    """Baseclass for compilied statements"""


    def execute(self,conn,**params):
        raise "OVERRIDE"
    def query(self,conn,**params):
        raise "OVERRIDE"



NEW_REPO_ID = 1
NEW_REPO = 2
NEW_REPO_MAP = 3
GET_REPO = 4
GET_REPO_TUPLE = 5
DELETE_REPO = 6
UPDATE_REPO_TIME=7
DELETE_REPO_MAP=8

NEW_EXTENT_ID=10
NEW_EXTENT=11
ADD_EXTENT_MAPPING=12
GET_EXTENT_ID=13
DROP_EXTENT_MAPPING=14
DROP_EXTENT=15
DROP_ALL_EXTENT_MAPPING=16
GET_EXTENT_NAMES=17
GET_EXTENT_ID_AND_TYPE = 18
GET_EXTENT = 19

GET_BOUND_OBJECT = 30
ADD_BOUND_NAME = 21
DROP_BOUND_NAME = 32
GET_BOUND_NAMES = 33
GET_OBJECT_BOUND_NAMES = 34


NEW_PYTHON_CLASS_ID = 40
NEW_PYTHON_CLASS = 41
GET_PYTHON_CLASS = 42
DELETE_PYTHON_CLASS = 43
GET_PYTHON_CLASS_ID = 44


NEW_COLLECTION_ID = 50
NEW_COLLECTION = 51
UPDATE_COLLECTION_INDEXES_ADD = 52
NEW_COLLECTION_ENTRY = 53
DELETE_COLLECTION_ENTRY = 54
UPDATE_COLLECTION_INDEXES_REMOVE = 55
DELETE_COLLECTION = 56
DELETE_COLLECTION_TUPLE = 57
GET_COLLECTION = 58
GET_COLLECTION_TUPLE = 59
UPDATE_COLLECTION_TIME=60


NEW_OBJECT_ID=70
NEW_OBJECT_MAP=71
NEW_OBJECT=72
UPDATE_OBJECT_TIME=73
GET_OBJECT=74
GET_OBJECT_TUPLE=75
DELETE_OBJECT_MAP=76
DELETE_OBJECT=77
GET_OBJECT_IDS=78



NEW_DICTIONARY_ID = 90
NEW_DICTIONARY = 91
NEW_DICTIONARY_ENTRY = 92
UPDATE_DICTIONARY_ENTRY = 93
DELETE_DICTIONARY_ENTRY = 94
DELETE_DICTIONARY = 95
DELETE_DICTIONARY_TUPLE = 96
GET_DICTIONARY = 97
GET_DICTIONARY_TUPLE = 98
UPDATE_DICTIONARY_TIME=99


NEW_LITERAL_CLASS = 100
GET_LITERAL_CLASS = 101
DELETE_LITERAL_CLASS = 102


INSERT_OPERATION = 110
UPDATE_OPERATION = 111
GET_OPERATION = 112
