Initial commit

parents
Showing with 807 additions and 0 deletions
##############################
## Java
##############################
.mtj.tmp/
*.class
*.jar
*.war
*.ear
*.nar
hs_err_pid*
##############################
## Maven
##############################
target/
pom.xml.tag
pom.xml.releaseBackup
pom.xml.versionsBackup
pom.xml.next
pom.xml.bak
release.properties
dependency-reduced-pom.xml
buildNumber.properties
.mvn/timing.properties
.mvn/wrapper/maven-wrapper.jar
##############################
## Gradle
##############################
bin/
build/
.gradle
.gradletasknamecache
gradle-app.setting
!gradle-wrapper.jar
##############################
## IntelliJ
##############################
out/
.idea/
.idea_modules/
*.iml
*.ipr
*.iws
##############################
## Eclipse
##############################
.settings/
bin/
tmp/
.metadata
.classpath
.project
*.tmp
*.bak
*.swp
*~.nib
local.properties
.loadpath
.factorypath
##############################
## NetBeans
##############################
nbproject/private/
build/
nbbuild/
dist/
nbdist/
nbactions.xml
nb-configuration.xml
##############################
## Visual Studio Code
##############################
.vscode/
.code-workspace
##############################
## OS X
##############################
.DS_Store
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." default="build">
<path id="build.classpath">
<pathelement location="classes"/>
</path>
<target name="init">
<mkdir dir="classes"/>
</target>
<target name="clean">
<delete dir="classes"/>
</target>
<target depends="init" name="build">
<javac srcdir="." destdir="classes" source="1.4">
<classpath refid="build.classpath"/>
</javac>
</target>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.mycompany</groupId>
<artifactId>prueba</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>18</maven.compiler.source>
<maven.compiler.target>18</maven.compiler.target>
<exec.mainClass>com.mycompany.prueba.Prueba</exec.mainClass>
</properties>
</project>
\ No newline at end of file
public interface Listener2 {
public void update();
}
\ No newline at end of file
package Modelo;
import java.util.Vector;
import Modelo.Préstamo;
import persistencia.EjemplarDAO;
public class Ejemplar extends Subject2 {
private int _idInventario;
private Date _fechaCompra;
private String _estado;
private boolean _dañado;
private float _costoEjemplar;
private String _registroDaños;
public Reserva _unnamed_Reserva_117;
public Vector<Préstamo> _préstamos = new Vector<Préstamo>();
public Libro _libro;
public EjemplarDAO _unnamed_EjemplarDAO_;
public Ejemplar get(String aIdInventario) {
throw new UnsupportedOperationException();
}
public void set(Ejemplar aEjemplar) {
throw new UnsupportedOperationException();
}
public void registrarObservador() {
throw new UnsupportedOperationException();
}
public void eliminarObservador() {
throw new UnsupportedOperationException();
}
public void notificarObservadores() {
throw new UnsupportedOperationException();
}
}
\ No newline at end of file
package Modelo;
import VistaBiblioteca.ControladorVistaBibliotecario2;
import VistaAdministrador.ControlarVistaAdmin2;
public class GestorBiblioteca {
public GestorPrestamos _unnamed_GestorPrestamos_123;
public GestorUsuarios _unnamed_GestorUsuarios_124;
public ControladorVistaBibliotecario2 _unnamed_ControladorVistaBibliotecario2_125;
public GestorLibros _unnamed_GestorLibros_126;
public ControlarVistaAdmin2 _unnamed_ControlarVistaAdmin2_127;
public Ejemplar recuperarRegistro(String aIsbn, String aIdInventario) {
throw new UnsupportedOperationException();
}
public void enviarFormEjemplar(String aIsbn, Ejemplar aEjemplar) {
throw new UnsupportedOperationException();
}
public String altaUsuario(Usuario aUsuario) {
throw new UnsupportedOperationException();
}
public String eliminarUsuario(int aIdUsuario) {
throw new UnsupportedOperationException();
}
public Usuario seleccionarUsuario(int aIdUsuario) {
throw new UnsupportedOperationException();
}
public String actualizarUsuario(Usuario aUsuario) {
throw new UnsupportedOperationException();
}
public List<Usuario> consultarUsuarios() {
throw new UnsupportedOperationException();
}
}
\ No newline at end of file
package Modelo;
public class GestorLibros {
public GestorBiblioteca _unnamed_GestorBiblioteca_104;
public Libro _unnamed_Libro_105;
public void eliminar(String aIsbn) {
throw new UnsupportedOperationException();
}
public Ejemplar consultar(String aIsbn, String aIdInvnetario) {
throw new UnsupportedOperationException();
}
public void alta(Libro aLibro) {
throw new UnsupportedOperationException();
}
public Prestamo modificar(String aIsbn, Libro aLibro) {
throw new UnsupportedOperationException();
}
}
\ No newline at end of file
package Modelo;
import java.util.Vector;
import Modelo.Préstamo;
public class GestorPrestamos {
public Vector<Préstamo> _gestiona = new Vector<Préstamo>();
public GestorBiblioteca _unnamed_GestorBiblioteca_10;
public HistorialPrestamos _accede;
public Prestamo consultar(String aIdPrestamo) {
throw new UnsupportedOperationException();
}
public void crearPrestamo(Prestamo aPrestamo) {
throw new UnsupportedOperationException();
}
public void modificar(String aIdPrestamo, Prestamo aPrestamo) {
throw new UnsupportedOperationException();
}
public void registrarFechaDevolucion(String aIdPrestamo, date aFechaDevolucion) {
throw new UnsupportedOperationException();
}
public String getIdUsuario(String aIdPrestamo) {
throw new UnsupportedOperationException();
}
public String crearMulta(String aIdPrestamo, float aImporte) {
throw new UnsupportedOperationException();
}
public void multar(String aIdUsuario) {
throw new UnsupportedOperationException();
}
public void penalizarLector(String aIdUsuario, Date aFechaPenalizacion) {
throw new UnsupportedOperationException();
}
}
\ No newline at end of file
package Modelo;
import java.util.Vector;
import Modelo.Usuario;
public class GestorUsuarios {
public Vector<Usuario> _gestiona = new Vector<Usuario>();
public GestorBiblioteca _unnamed_GestorBiblioteca_66;
public List<Usuario> listar() {
throw new UnsupportedOperationException();
}
public Usuario consultar(String aIdUsuario) {
throw new UnsupportedOperationException();
}
public String baja(String aIdUsuario) {
throw new UnsupportedOperationException();
}
public String alta(Usuario aUsuario) {
throw new UnsupportedOperationException();
}
public String modificarUsuario(String aIdUsuario, Usuario aUsuario) {
throw new UnsupportedOperationException();
}
public String notificarMulta(String aIdUsuario) {
throw new UnsupportedOperationException();
}
public String penalizarLector(String aIdUsuario, date aFechaPenalizacion) {
throw new UnsupportedOperationException();
}
public List<Usuario> consultarUsuarios() {
throw new UnsupportedOperationException();
}
}
\ No newline at end of file
package Modelo;
public class HistorialPrestamos {
public GestorPrestamos _unnamed_GestorPrestamos_;
public Préstamo _unnamed_Préstamo_9;
}
\ No newline at end of file
package Modelo;
import java.util.Vector;
import Modelo.Penalización;
import Modelo.Préstamo;
public class Lector extends Usuario {
private String _dirección;
private String _tipoLector;
private String _estado;
private int _contPenalizaciones;
public Vector<Penalización> _penalizacións = new Vector<Penalización>();
public Vector<Préstamo> _préstamos = new Vector<Préstamo>();
public Reserva _unnamed_Reserva_53;
public Usuario get(String aIdUsuario) {
throw new UnsupportedOperationException();
}
public String notificarPenalizacion() {
throw new UnsupportedOperationException();
}
}
\ No newline at end of file
package Modelo;
import java.util.Vector;
import Modelo.Ejemplar;
public class Libro {
private String _título;
private String _autores;
private int _año;
private String _iSBN;
private int _páginas;
public Vector<Ejemplar> _ejemplars = new Vector<Ejemplar>();
public GestorLibros _unnamed_GestorLibros_112;
public Libro get(String aIsbn) {
throw new UnsupportedOperationException();
}
public Ejemplar getEjemplar(String aIdInventario) {
throw new UnsupportedOperationException();
}
public void setEjemplar(String aIdInventario, Ejemplar aEjemplar) {
throw new UnsupportedOperationException();
}
}
\ No newline at end of file
package Modelo;
package Modelo;
public class Penalización {
private int _iD;
private boolean _activo;
public Préstamo _préstamo;
public Lector _lector;
public void create() {
throw new UnsupportedOperationException();
}
}
\ No newline at end of file
package Modelo;
package Modelo;
public class PenalizaciónMulta extends Penalización {
private Date _fecha;
private int _idFactura;
private float _importe;
private Date _fechaPago;
public void create(Date aFechaDevolucion, float aImporte) {
throw new UnsupportedOperationException();
}
}
\ No newline at end of file
package Modelo;
package Modelo;
public class PenalizaciónRetraso extends Penalización {
private int _iD;
private Date _fechaPenalización;
public void create(Date aFechaPenalizacion) {
throw new UnsupportedOperationException();
}
}
\ No newline at end of file
package Modelo;
package Modelo;
import java.util.Vector;
import Modelo.Penalización;
import persistencia.PrestamoDAO;
public class Préstamo {
private int _idPrestamo;
private Date _fecha;
private Date _fechaTope;
private Date _fechaDev;
private int _numProrrogas;
public Lector _lector;
public Ejemplar _ejemplar;
public GestorPrestamos _gestiona;
public HistorialPrestamos _colecciona;
public Vector<Penalización> _penalizacións = new Vector<Penalización>();
public PrestamoDAO _unnamed_PrestamoDAO_;
public Prestamo get(int aIdPrestamo) {
throw new UnsupportedOperationException();
}
public void set(date aFechaDevolucion) {
throw new UnsupportedOperationException();
}
public date getFechaTope() {
throw new UnsupportedOperationException();
}
public void crearMulta(float aImporte) {
throw new UnsupportedOperationException();
}
public Prestamo getUltimo() {
throw new UnsupportedOperationException();
}
public String getIdUsuario() {
throw new UnsupportedOperationException();
}
public void multar(String aIdUsuario) {
throw new UnsupportedOperationException();
}
public String penalizar(String aIdUsuario, Date aFechaPenalizacion) {
throw new UnsupportedOperationException();
}
}
\ No newline at end of file
package Modelo;
public class Reserva {
private Date _fecha;
public Lector _unnamed_Lector_51;
public Ejemplar _unnamed_Ejemplar_52;
}
\ No newline at end of file
package Modelo;
import persistencia.UsuarioDAO;
public class Usuario extends Subject2 {
private String _nombre;
private String _email;
private int _idUsuario;
private String _contraseña;
private String _tipoUsuario;
public GestorUsuarios _gestiona;
public UsuarioDAO _unnamed_UsuarioDAO_;
public void añadir(Usuario aUsuario) {
throw new UnsupportedOperationException();
}
public void eliminar(String aIdUsuario) {
throw new UnsupportedOperationException();
}
public Usuario get(String aIdUsuario) {
throw new UnsupportedOperationException();
}
public void set(Usuario aUsuario) {
throw new UnsupportedOperationException();
}
public Usuario get(Usuario aUsuario) {
throw new UnsupportedOperationException();
}
public void registrarObservador() {
throw new UnsupportedOperationException();
}
public void eliminarObservador() {
throw new UnsupportedOperationException();
}
public void notificarObservadores() {
throw new UnsupportedOperationException();
}
}
\ No newline at end of file
public interface Subject2 {
public void registrarObservador();
public void eliminarObservador();
public void notificarObservadores();
}
\ No newline at end of file
package VistaAdministrador;
import Modelo.GestorBiblioteca;
public class ControlarVistaAdmin2 {
public GestorBiblioteca _unnamed_GestorBiblioteca_100;
public VistaHome _unnamed_VistaHome_101;
public void entrarGestionUsuario() {
throw new UnsupportedOperationException();
}
public void seleccionOpcion(Object aItemEvent) {
throw new UnsupportedOperationException();
}
public void altaUsuario() {
throw new UnsupportedOperationException();
}
public void bajaUsuario() {
throw new UnsupportedOperationException();
}
public void consultarUsuario() {
throw new UnsupportedOperationException();
}
public void actualizarUsuario() {
throw new UnsupportedOperationException();
}
public void listarUsuarios() {
throw new UnsupportedOperationException();
}
}
\ No newline at end of file
package VistaAdministrador;
public interface VistaActualizar extends VistaHome, Listener2 {
public void mostrarInfoUsuario(int aIdUsuario);
public void recuperarDatos();
}
\ No newline at end of file
package VistaAdministrador;
public interface VistaAlta extends VistaHome {
public Usuario recuperarDatos();
}
\ No newline at end of file
package VistaAdministrador;
public interface VistaBaja extends VistaHome {
public int recuperarDatos();
}
\ No newline at end of file
package VistaAdministrador;
public interface VistaConfirmar2 extends VistaHome {
public void mostrarVentana(String aMensajeConfirmacion);
}
\ No newline at end of file
package VistaAdministrador;
public interface VistaConsultar extends VistaHome {
public int recuperarDatos();
}
\ No newline at end of file
package VistaAdministrador;
public interface VistaHome {
public void mostrarVentana();
}
\ No newline at end of file
package VistaAdministrador;
public interface VistaListar extends VistaHome, Listener2 {
}
\ No newline at end of file
package VistaBiblioteca;
import Modelo.GestorBiblioteca;
public class ControladorVistaBibliotecario2 {
public VistaHome _unnamed_VistaHome_86;
public GestorBiblioteca _unnamed_GestorBiblioteca_87;
public void entrarGestionBiblioteca() {
throw new UnsupportedOperationException();
}
public void registrarDevolucion() {
throw new UnsupportedOperationException();
}
public void enviarFormEjemplar() {
throw new UnsupportedOperationException();
}
public void enviarFormularioMulta() {
throw new UnsupportedOperationException();
}
}
\ No newline at end of file
package VistaBiblioteca;
public interface VistaConfirmar extends VistaHome {
public void mostrarVentana(String aMensajeConfirmacion);
}
\ No newline at end of file
package VistaBiblioteca;
public interface VistaEjemplar extends VistaHome {
public void mostrarVentana();
public void recuperarRegistro();
}
\ No newline at end of file
package VistaBiblioteca;
public interface VistaHome {
}
\ No newline at end of file
package VistaBiblioteca;
public interface VistaModificar extends VistaHome, Listener2 {
public void mostrarVentana(Ejemplar aEjemplar);
public string__Ejemplar recuperarDatos();
}
\ No newline at end of file
package VistaBiblioteca;
public interface VistaMulta extends VistaHome {
public void mostrarVentana(int aIdPrestamo, String aIsbn);
public float__int recuperarDatos();
}
\ No newline at end of file
package persistencia;
import Modelo.Ejemplar;
public class EjemplarDAO {
public Ejemplar _unnamed_Ejemplar_;
public Ejemplar get(String aIdInventario) {
throw new UnsupportedOperationException();
}
public void crearEjemplar(Date aFechaCompra, String aEstado, boolean aDañado, float aCostoEjemplar, String aRegistroDaños) {
throw new UnsupportedOperationException();
}
public void modificarEjemplar(Ejemplar aEjemplar) {
throw new UnsupportedOperationException();
}
public void eliminarEjemplar(int aIdInventario) {
throw new UnsupportedOperationException();
}
}
\ No newline at end of file
package persistencia;
public class EjemplarDTO {
private int _idInventario;
private Date _fechaCompra;
private String _estado;
private boolean _dañado;
private float _costoEjemplar;
private String _registroDaños;
private int _libroISBN;
}
\ No newline at end of file
package persistencia;
import Modelo.Préstamo;
public class PrestamoDAO {
public Préstamo _unnamed_Préstamo_;
public Prestamo get(int aIdPrestamo) {
throw new UnsupportedOperationException();
}
public void modificarPrestamo(Prestamo aPrestamo) {
throw new UnsupportedOperationException();
}
public void crearPrestamo(Date aFecha, Date aFechaTope, Date aFechaDev, int aNumProrrogas) {
throw new UnsupportedOperationException();
}
public void eliminar(int aIdPrestamo) {
throw new UnsupportedOperationException();
}
}
\ No newline at end of file
package persistencia;
public class PrestamoDTO {
private int _idPrestamo;
private Date _fecha;
private Date _fechaTope;
private Date _fechaDev;
private int _numProrrogas;
private int _idUsuario;
private int _idInventario;
private int _usuarioPenalizacionRetasoID;
}
\ No newline at end of file
package persistencia;
// import Modelo.Usuario;
// import Práctica 4 - Diseño de la persistencia de datos.Modelo.Usuario;
public class UsuarioDAO {
public Modelo.Usuario _unnamed_Usuario_;
public void eliminar(String aIdUsuario) {
throw new UnsupportedOperationException();
}
public Práctica 4 - Diseño de la persistencia de datos.Modelo.Usuario get(String aIdUsuario) {
throw new UnsupportedOperationException();
}
public void crearUsuario(String aNombre, String aEmail, String aContraseña, String aTipoUsuario) {
throw new UnsupportedOperationException();
}
public void modificarUsuario(Práctica 4 - Diseño de la persistencia de datos.Modelo.Usuario aUsuario) {
throw new UnsupportedOperationException();
}
}
\ No newline at end of file
package persistencia;
public class UsuarioDTO {
private String _nombre;
private String _email;
private int _idUsuario;
private String _contraseña;
private String _tipoUsuario;
private String _direccion;
private Object _tipoLector_string;
private String _estado;
private int _contPenalizaciones;
private String _discriminator;
private int _penalizacionRetrasoID;
private int _penalizacionMultaFactura;
private int _penalizacionRetrasoID2;
}
\ No newline at end of file
/*
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
* Click nbfs://nbhost/SystemFileSystem/Templates/Project/Maven2/JavaApp/src/main/java/${packagePath}/${mainClassName}.java to edit this template
*/
package com.mycompany.prueba;
/**
*
* @author andresro
*/
public class Prueba {
public static void main(String[] args) {
System.out.println("Hello World!");
}
}
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 sign in to comment