Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
SalidasAutomaticas
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Billy Larru
SalidasAutomaticas
Commits
5a1dc576
Commit
5a1dc576
authored
Sep 22, 2018
by
Billy Larru
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[REMOVE quitando clase Prueba que no se utilizaba]
parent
bdc4c081
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
50 deletions
+0
-50
Prueba.java
src/main/java/salidasautomaticas/mysqldao/Prueba.java
+0
-50
No files found.
src/main/java/salidasautomaticas/mysqldao/Prueba.java
deleted
100644 → 0
View file @
bdc4c081
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package
salidasautomaticas
.
mysqldao
;
import
java.sql.Connection
;
import
java.sql.DriverManager
;
import
salidasautomaticas.dao.DAOFactory
;
import
salidasautomaticas.dao.SalidasDAO
;
/**
*
* @author sistem08user
*/
public
class
Prueba
extends
DAOFactory
{
static
{
try
{
Class
.
forName
(
"com.microsoft.sqlserver.jdbc.SQLServerDriver"
);
}
catch
(
Exception
e
)
{
// TODO Auto-generated catch block
e
.
printStackTrace
();
}
}
public
static
Connection
obtenerConexion
(
String
base
)
{
Connection
conexion
=
null
;
if
(
base
.
equals
(
"nuevo"
))
{
try
{
// conexion = DriverManager.getConnection(
// "jdbc:mysql://172.16.2.39:3306/nuevo",
// "melani",
// "melani");
conexion
=
DriverManager
.
getConnection
(
"jdbc:sqlserver://localhost:1433; databaseName=prueba; user=sa; password=Saco1357$;"
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
}
return
conexion
;
}
@Override
public
SalidasDAO
getSalidasDAO
()
{
return
new
SalidasMysqlDAO
();
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment