INSERT
public boolean insertTable(){
Environment env = Environment.getStandardEnvironment(processData);
Database db = SystemWorkspace.getConnectionsWorkspace().getDatabase("MOVEX", env);
Table table = RepositoryUtil.getTable("Repository", "Table");
InsertStatement insTable = new InsertStatement(table, env.getSessionValues(), env.getDataTypeHandler(), db);
insTable.addColumnValue("CHAMP1", "VALEUR1");
insTable.addColumnValue("CHAMP2", "VALEUR2");
insTable.addColumnValue("CHAMP3", "VALEUR3");
insTable.addColumnValue("CHAMP4", "VALEUR4");
try {
insTable.executeAndClose();
} catch (SQLException e) {
e.printStackTrace();
}
}
return true;
}
Ajouter un commentaire