package frame.file;
|
|
import frame.data.Entity;
|
import frame.data.meta.EntityMeta;
|
import frame.expression.VariantContext;
|
|
public class FileIoItem extends IOProcessor implements IFileload{
|
|
public static String TypeCode_Import = "import";
|
public static String TypeCode_DB = "db";
|
public static String TypeCode_Output = "output";
|
|
private String id;
|
private String fromName;
|
private String toName;
|
private String typeCode;
|
private String mappingId;
|
private boolean distinctSelect;
|
private boolean standardMove;
|
private String[] filterFieldValues;
|
private String[] keyFieldPairs;
|
private AppendMode appendMode;
|
private DeleteMode deleteMode;
|
private Direction direction;
|
private int fromRowNo;
|
private int toRowNo;
|
|
private EntityMeta fromMeta;
|
private EntityMeta toMeta;
|
private IOMapping mapping;
|
private IOMappingRuntime mappingRuntime;
|
private VariantContext context;
|
|
public FileIoItem() {
|
mapping = new IOMapping();
|
}
|
|
|
@Override
|
public VariantContext createContext(UploadResult result) {
|
// TODO Auto-generated method stub
|
return null;
|
}
|
|
|
@Override
|
public void initLoad(Entity entity) {
|
|
}
|
|
public void createTableMeta() {
|
if (TypeCode_Import .Equals(typeCode)) {
|
toMeta = new TableMeta(toName);
|
}
|
else if (TypeCode_DB.Equals(typeCode)) {
|
fromMeta = new TableMeta(fromName);
|
toMeta = new TableMeta(toName);
|
}
|
else if (TypeCode_Output.Equals(typeCode)) {
|
fromMeta = new TableMeta(fromName);
|
}
|
}
|
|
}
|