@Override public boolean isTableColumn(Table table, Column column) { return column.getTable() == table; }
/** * Returns true if the given column is a node column. * * @param colum column to test * @return true if the column is a node column, false otherwise */ public static boolean isNodeColumn(Column colum) { return colum.getTable().getElementClass().equals(Node.class); }
/** * Returns true if the given column is an edge column. * * @param colum column to test * @return true if the column is an edge column, false otherwise */ public static boolean isEdgeColumn(Column colum) { return colum.getTable().getElementClass().equals(Edge.class); } }
/** * Returns true if the given column is an edge column. * * @param colum column to test * @return true if the column is an edge column, false otherwise */ public static boolean isEdgeColumn(Column colum) { return colum.getTable().getElementClass().equals(Edge.class); } }
@Override public boolean isNodeColumn(Column column) { return isNodeTable(column.getTable()); }
@Override public boolean isEdgeColumn(Column column) { return isEdgeTable(column.getTable()); }
/** * Returns true if the given column is a node column. * * @param colum column to test * @return true if the column is a node column, false otherwise */ public static boolean isNodeColumn(Column colum) { return colum.getTable().getElementClass().equals(Node.class); }
@Override public void execute() { NbPreferences.forModule(JoinWithSeparator.class).put(SEPARATOR_SAVED_PREFERENCES, separator); Object value; StringBuilder sb; final int rowsCount = rows.length; TimeFormat timeFormat = column.getTable().getGraph().getModel().getTimeFormat(); DateTimeZone timeZone = column.getTable().getGraph().getModel().getTimeZone(); sb = new StringBuilder(); for (int i = 0; i < rows.length; i++) { value = rows[i].getAttribute(column); if (value != null) { sb.append(AttributeUtils.print(value, timeFormat, timeZone)); if (i < rowsCount - 1) { sb.append(separator); } } } result = sb.toString(); }
if (value != null && !value.getClass().equals(targetType)) { try { GraphModel graphModel = column.getTable().getGraph().getModel();
GraphModel graphModel = column.getTable().getGraph().getModel(); TimeFormat timeFormat = graphModel.getTimeFormat(); DateTimeZone timeZone = graphModel.getTimeZone();