19 package com.mysql.clusterj.bindings;
21 import com.mysql.cluster.ndbj.NdbColumn;
22 import com.mysql.cluster.ndbj.NdbTable;
24 import com.mysql.clusterj.ClusterJUserException;
26 import com.mysql.clusterj.core.store.Table;
28 import com.mysql.clusterj.core.util.I18NHelper;
29 import com.mysql.clusterj.core.util.Logger;
30 import com.mysql.clusterj.core.util.LoggerFactoryService;
35 class TableImpl
implements Table {
38 static final I18NHelper local = I18NHelper
39 .getInstance(TableImpl.class);
42 static final Logger logger = LoggerFactoryService.getFactory()
43 .getInstance(TableImpl.class);
55 public ColumnImpl getColumn(
String columnName) {
56 NdbColumn ndbColumn = table.
getColumn(columnName);
57 if (ndbColumn == null) {
58 throw new ClusterJUserException(
59 local.message(
"ERR_No_Column", table.
getName(), columnName));
61 return new ColumnImpl(table, ndbColumn);