19 package com.mysql.clusterj.bindings;
21 import com.mysql.cluster.ndbj.NdbApiException;
22 import com.mysql.cluster.ndbj.NdbDictionary;
23 import com.mysql.clusterj.ClusterJDatastoreException;
24 import com.mysql.clusterj.core.store.Index;
25 import com.mysql.clusterj.core.store.Table;
26 import com.mysql.clusterj.core.util.I18NHelper;
27 import com.mysql.clusterj.core.util.Logger;
28 import com.mysql.clusterj.core.util.LoggerFactoryService;
33 class DictionaryImpl
implements com.mysql.clusterj.core.store.Dictionary {
36 static final I18NHelper local = I18NHelper
37 .getInstance(DictionaryImpl.class);
40 static final Logger logger = LoggerFactoryService.getFactory()
41 .getInstance(DictionaryImpl.class);
46 this.dictionary = dictionary;
51 return new IndexImpl(dictionary.getIndex(indexName, tableName), indexAlias);
52 }
catch (NdbApiException ndbApiException) {
53 throw new ClusterJDatastoreException(local.message(
"ERR_Datastore"),
58 public Table getTable(
String tableName) {
60 return new TableImpl(dictionary.getTable(tableName));
61 }
catch (NdbApiException ndbApiException) {
62 throw new ClusterJDatastoreException(local.message(
"ERR_Datastore"),