/** * Builds a new schema for a given store. * * @param dictionary the dictionary used by the store. */ protected Schema(final ITopLevelDictionary dictionary) { _dictionary = dictionary; _classesSet = new PersistentSet<byte[]>(byte[].class, COL_CLAZZES); _dPropsSet = new PersistentSet<byte[]>(byte[].class, COL_D_PROPS); _oPropsSet = new PersistentSet<byte[]>(byte[].class, COL_O_PROPS); _classes = new DictionarySetDecorator(_classesSet, _dictionary, false); _dataProperties = new DictionarySetDecorator(_dPropsSet, _dictionary, true); _objectProperties = new DictionarySetDecorator(_oPropsSet, _dictionary, true); }
/** * Builds a new schema for a given store. * * @param dictionary the dictionary used by the store. */ protected Schema(final ITopLevelDictionary dictionary) { _dictionary = dictionary; _classesSet = new PersistentSet<byte[]>(byte[].class, COL_CLAZZES); _dPropsSet = new PersistentSet<byte[]>(byte[].class, COL_D_PROPS); _oPropsSet = new PersistentSet<byte[]>(byte[].class, COL_O_PROPS); _classes = new DictionarySetDecorator(_classesSet, _dictionary, false); _dataProperties = new DictionarySetDecorator(_dPropsSet, _dictionary, true); _objectProperties = new DictionarySetDecorator(_oPropsSet, _dictionary, true); }