protected boolean isMappedToTable (MappingTableElement table) { String tableName = table.getName(); Iterator iterator = getColumns().iterator(); while (iterator.hasNext()) { String columnName = iterator.next().toString(); if (NameUtil.getTableName(columnName).equals(tableName)) return true; } return false; }
protected boolean isMappedToTable (MappingTableElement table) { String tableName = table.getName(); Iterator iterator = getColumns().iterator(); while (iterator.hasNext()) { String columnName = iterator.next().toString(); if (NameUtil.getTableName(columnName).equals(tableName)) return true; } return false; }
/** Returns the list of columns (ColumnElements) to which this mapping * field is mapped. This method should only be used by the runtime. * @return the columns mapped by this mapping field */ public ArrayList getColumnObjects () { //@olsen: compute objects on access if (_columnObjects == null) { //@olsen: calculate the column objects based on // the column names as stored in _columns //_columnObjects = new ArrayList(); _columnObjects = MappingClassElementImpl.toColumnObjects( getDeclaringClass().getDatabaseRoot(), getColumns()); } return _columnObjects; }
/** Returns the list of columns (ColumnElements) to which this mapping * field is mapped. This method should only be used by the runtime. * @return the columns mapped by this mapping field */ public ArrayList getColumnObjects () { //@olsen: compute objects on access if (_columnObjects == null) { //@olsen: calculate the column objects based on // the column names as stored in _columns //_columnObjects = new ArrayList(); _columnObjects = MappingClassElementImpl.toColumnObjects( getDeclaringClass().getDatabaseRoot(), getColumns()); } return _columnObjects; }
if (!getColumns().remove(columnName))
if (!getColumns().remove(columnName))
ArrayList columns = getColumns(); String columnName = NameUtil.getRelativeMemberName( column.getName().getFullName());
ArrayList columns = getColumns(); String columnName = NameUtil.getRelativeMemberName( column.getName().getFullName());
println(tabs+1, "name = " + mfe.getName()); //NOI18N println(tabs+1, "fetchGroup = " + mfe.getFetchGroup()); //NOI18N println(tabs+1, "columns = " + mfe.getColumns()); //NOI18N
println(tabs+1, "name = " + mfe.getName()); //NOI18N println(tabs+1, "fetchGroup = " + mfe.getFetchGroup()); //NOI18N println(tabs+1, "columns = " + mfe.getColumns()); //NOI18N