use of org.talend.core.model.metadata.MetadataColumn in project tdi-studio-se by Talend.
the class CompleteDropTargetTableListener method insertOutpuEntryCopyToOtherOutput.
private void insertOutpuEntryCopyToOtherOutput(ArrayList<ITableEntry> sources, ArrayList<IMetadataColumn> metadataColumnsBeingAdded, // MetadataEditorEvent metadataEditorEvent,
ITableEntry tableEntrySource, IMetadataColumn metadataColumnDragged, String columnName) {
MetadataColumn metadataColumn = new MetadataColumn(metadataColumnDragged);
metadataColumn.setLabel(columnName);
metadataColumnsBeingAdded.add(metadataColumn);
// metadataEditorEvent.entries.add(metadataColumn);
sources.add(tableEntrySource);
}
use of org.talend.core.model.metadata.MetadataColumn in project tdi-studio-se by Talend.
the class CompleteDropTargetTableListener method insertNewInOutEntryFromInputEntry.
private void insertNewInOutEntryFromInputEntry(ArrayList<ITableEntry> sources, ArrayList<IMetadataColumn> metadataColumnsBeingAdded, // MetadataEditorEvent metadataEditorEvent,
ITableEntry tableEntrySource, IMetadataColumn metadataColumnDragged, String columnName) {
MetadataColumn metadataColumn = new MetadataColumn(metadataColumnDragged);
metadataColumn.setLabel(columnName);
metadataColumnsBeingAdded.add(metadataColumn);
// metadataEditorEvent.entries.add(metadataColumn);
sources.add(tableEntrySource);
}
use of org.talend.core.model.metadata.MetadataColumn in project tdi-studio-se by Talend.
the class ShadowNode method getMetadataList.
/*
* (non-Javadoc)
*
* @see org.talend.core.model.process.INode#getMetaDataList()
*/
@Override
public List<IMetadataTable> getMetadataList() {
List<IMetadataTable> metadataList = super.getMetadataList();
if (metadataList != null) {
return metadataList;
}
List<IMetadataTable> metadatas = new ArrayList<IMetadataTable>();
MetadataTable metadata = new MetadataTable();
metadata.setTableName(this.getUniqueName());
List<IMetadataColumn> columns = new ArrayList<IMetadataColumn>();
for (int i = 0; i < columnNumber; i++) {
MetadataColumn col = new MetadataColumn();
//$NON-NLS-1$
col.setLabel("row" + i);
//$NON-NLS-1$
col.setTalendType("id_String");
//$NON-NLS-1$
col.setType("String");
columns.add(col);
}
metadata.setListColumns(columns);
metadatas.add(metadata);
return metadatas;
}
use of org.talend.core.model.metadata.MetadataColumn in project tdi-studio-se by Talend.
the class CompleteDropTargetListener method insertNewInOutEntryFromInputEntry.
private void insertNewInOutEntryFromInputEntry(ArrayList<ITableEntry> sources, ArrayList<IMetadataColumn> metadataColumnsBeingAdded, // MetadataEditorEvent metadataEditorEvent,
ITableEntry tableEntrySource, IMetadataColumn metadataColumnDragged, String columnName) {
MetadataColumn metadataColumn = new MetadataColumn(metadataColumnDragged);
metadataColumn.setLabel(columnName);
metadataColumnsBeingAdded.add(metadataColumn);
// metadataEditorEvent.entries.add(metadataColumn);
sources.add(tableEntrySource);
}
use of org.talend.core.model.metadata.MetadataColumn in project tdi-studio-se by Talend.
the class CompleteDropTargetListener method insertNewOutputEntryFromVarEntry.
private void insertNewOutputEntryFromVarEntry(ArrayList<ITableEntry> sources, ArrayList<IMetadataColumn> metadataColumnsBeingAdded, ITableEntry tableEntrySource, String columnName) {
MetadataColumn metadataColumn = new MetadataColumn();
metadataColumn.setLabel(columnName);
metadataColumn.setTalendType(((VarTableEntry) tableEntrySource).getType());
metadataColumn.setNullable(((VarTableEntry) tableEntrySource).isNullable());
metadataColumnsBeingAdded.add(metadataColumn);
sources.add(tableEntrySource);
}
Aggregations