Consumo facturacion entidades

parent 4e77ec0a
package ec.edu.epn.recepcionfact;
import java.io.Serializable;
import java.sql.DriverManager;
public class conexionPostgres implements Serializable {
/**
*
*/
private static final long serialVersionUID = -6947528897763208578L;
private java.sql.Connection conection = null;
public java.sql.Connection getConection() {
return conection;
}
public void setConection(java.sql.Connection conection) {
this.conection = conection;
}
private String url = "jdbc:postgresql://";
private String serverName = "172.31.5.10";
private String portNumber = "5432";
private String databaseName = "bddcorpepn";
private String userName = "seguridad";
private String password = "seguridad";
// Constructor
public conexionPostgres() {
}
public String getConnectionUrl() {
return url + serverName + ":" + portNumber + "/" + databaseName;
}
public java.sql.Connection getConnection() {
try {
//String urlDatabase = "jdbc:postgresql://172.31.203.216:5432/bddcorpepn";
Class.forName("org.postgresql.Driver");
conection = DriverManager.getConnection(getConnectionUrl(), userName, password);
if (conection != null)
System.out.println("Connection Successful!");
} catch (Exception e) {
e.printStackTrace();
System.out.println("Error Trace in getConnection() : "
+ e.getMessage());
}
return conection;
}
public void closeConnection() {
try {
if (conection != null)
conection.close();
conection = null;
} catch (Exception e) {
e.printStackTrace();
}
}
}
\ No newline at end of file
package ec.edu.epn.consumoFact;public class consultasFacturacion {
}
package ec.edu.epn.facturaSRI;public class GeneracionFactOfflineXML {
}
package ec.edu.epn.facturacionDTO;public class ConceptoDTO {
}
package ec.edu.epn.facturacionDTO;public class DetallefacturaDTO {
}
package ec.edu.epn.facturacionDTO;public class FacturaDTO {
}
package ec.edu.epn.facturacionDTO;public class FormaPagoDTO {
}
package ec.edu.epn.facturacionDTO;public class PagosDTO {
}
package ec.edu.epn.facturacionDTO;public class ServicioDTO {
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment