-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Manejo del JDBC III INCOPLETE see also: resolves:
- Loading branch information
1 parent
7592368
commit 9b1518d
Showing
2 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
### Manejo de JDBC III | ||
|
||
_PATRON DE DISEÑO_ | ||
|
||
- DAO : Data Access Object |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
|
||
package datos; | ||
|
||
import domain.Persona; | ||
import java.sql.*; | ||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
public class PersonaDAO { | ||
private static final String SQL_SELECT = "SELECT id_persona, nombre, apellido, email FROM persona"; | ||
|
||
public List<Persona> Seleccionar(){ | ||
Connection conn = null; | ||
PreparedStatement stmt = null; | ||
ResultSet rs = null; | ||
Persona persona = null; | ||
List<Persona> personas = new ArrayList<>(); | ||
|
||
|
||
|
||
} | ||
} |