5 octubre, 2010 a las 12:19 pm
#35014
Federico Cristina
Superadministrador
Buenas,
Para configurar en tiempo de ejecución la conexión podrías por ejemplo hacer algo así:
Code:
CConnection aConn = CConnection.get(org.openXpertya.db.Database.DB_POSTGRESQL, “localhost”, 5432, “other_libertya_database”);
DB.setDBTarget(aConn);
DB.setDBTarget(aConn);
PreparedStatement stmt = DB.prepareStatement(“SELECT … “);
ResultSet rs = stmt.executeQuery();
while (rs.next()) {
…
}
Saludos,
Federico