text
stringlengths
3
1.18M
package GUI.Administracion; import java.rmi.RemoteException; import org.eclipse.swt.widgets.Dialog; import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.Shell; import org.eclipse.swt.widgets.Text; import org.eclipse.swt.SWT; import org.eclipse.swt.layout.GridLayout; import org.eclipse.swt.widgets.La...
package GUI.Administracion; import java.rmi.RemoteException; import java.util.ArrayList; import org.eclipse.swt.widgets.Dialog; import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.Shell; import org.eclipse.swt.widgets.Table; import org.eclipse.swt.widgets.TableItem; import org.eclipse.swt.SWT; impo...
package GUI.Administracion; import java.rmi.RemoteException; import org.eclipse.swt.widgets.Dialog; import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.Shell; import org.eclipse.swt.widgets.Button; import org.eclipse.swt.SWT; import org.eclipse.swt.events.SelectionAdapter; import org.eclipse.swt.ev...
package GUI.Cocina; import java.rmi.RemoteException; import org.eclipse.swt.widgets.Dialog; import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.Shell; import org.eclipse.swt.widgets.Button; import org.eclipse.swt.SWT; import org.eclipse.swt.events.SelectionAdapter; import org.eclipse.swt.events.Sel...
package GUI.Cocina; import java.rmi.RemoteException; import java.util.ArrayList; import org.eclipse.swt.widgets.Dialog; import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.Shell; import org.eclipse.swt.layout.FormLayout; import org.eclipse.swt.widgets.Label; import org.eclipse.swt.SWT; import org.e...
package GUI.Cocina; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.rmi.RemoteException; import javax.swing.Timer; import org.eclipse.swt.widgets.Dialog; import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.Shell; import org.eclipse.swt.widgets.Table; import org...
package GUI.Cocina; import java.rmi.RemoteException; import java.util.ArrayList; import org.eclipse.swt.widgets.Dialog; import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.Shell; import org.eclipse.swt.widgets.Table; import org.eclipse.swt.widgets.TableItem; import org.eclipse.swt.SWT; import org.e...
package GUI.Cocina; import org.eclipse.swt.widgets.Dialog; import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.Shell; import org.eclipse.swt.widgets.Label; import org.eclipse.swt.SWT; import org.eclipse.swt.widgets.Button; import org.eclipse.swt.events.SelectionAdapter; import org.eclipse.swt.events...
package GUI.Cocina; import java.rmi.RemoteException; import java.util.ArrayList; import org.eclipse.swt.widgets.Dialog; import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.Shell; import org.eclipse.swt.widgets.Table; import org.eclipse.swt.SWT; import org.eclipse.swt.widgets.TableColumn; import org...
import java.rmi.RemoteException; import dbExceptions.DataBaseErrorException; import article.entities.ArticleVO; import article.entities.CategoryVO; import article.entities.IngredientVO; import article.exceptions.BadArticleException; import article.exceptions.BadCategoryException; import article.exceptions.IncompleteAr...
package net.miginfocom.swing; /* * License (BSD): * ============== * * Copyright (c) 2004, Mikael Grev, MiG InfoCom AB. (miglayout (at) miginfocom (dot) com) * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the fol...
package net.miginfocom.swing; /* * License (BSD): * ============== * * Copyright (c) 2004, Mikael Grev, MiG InfoCom AB. (miglayout (at) miginfocom (dot) com) * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the fol...
package net.miginfocom.swing; /* * License (BSD): * ============== * * Copyright (c) 2004, Mikael Grev, MiG InfoCom AB. (miglayout (at) miginfocom (dot) com) * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the fol...
package net.miginfocom.examples; import net.miginfocom.swt.MigLayout; import org.eclipse.swt.SWT; import org.eclipse.swt.widgets.*; public class ExampleGood { protected void buildControls(Composite parent) { parent.setLayout(new MigLayout("inset 0", "[fill, grow]", "[fill, grow]")); Table table = n...
package net.miginfocom.examples; import net.miginfocom.swing.MigLayout; import javax.swing.*; import javax.swing.border.CompoundBorder; import javax.swing.border.EmptyBorder; import javax.swing.border.EtchedBorder; public class Example02 { private static JPanel createPanel() { JPanel panel = new JPanel(new MigLa...
package net.miginfocom.examples; import net.miginfocom.swing.MigLayout; import javax.swing.*; import javax.swing.border.LineBorder; import java.awt.*; /** * @author Mikael Grev, MiG InfoCom AB * Date: Apr 20, 2008 * Time: 10:32:58 PM */ public class JavaOneShrink { private static JComponent crea...
package net.miginfocom.examples; import net.miginfocom.swt.MigLayout; import org.eclipse.swt.SWT; import org.eclipse.swt.layout.FillLayout; import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.Label; import org.eclipse.swt.widgets.Shell; /** * @author Mikae...
package net.miginfocom.examples; import net.miginfocom.swing.MigLayout; import javax.swing.*; /** */ public class Example01 { private static JPanel createPanel() { JPanel panel = new JPanel(new MigLayout()); panel.add(new JLabel("First Name")); panel.add(new JTextField(10)); panel.add(new...
package net.miginfocom.examples; import net.miginfocom.swing.MigLayout; import javax.swing.*; import java.awt.*; /** * @author Mikael Grev, MiG InfoCom AB * Date: Dec 15, 2008 * Time: 7:04:50 PM */ public class BugTestApp { private static JPanel createPanel() { JPanel c = new JPanel(); c.se...
package net.miginfocom.examples; import net.miginfocom.swt.MigLayout; import org.eclipse.swt.SWT; import org.eclipse.swt.widgets.*; public class Example { protected void buildControls(Composite parent) { parent.setLayout(new MigLayout("inset 0", "[fill, grow]", "[fill, grow]")); Table table = new T...
package net.miginfocom.swt; /* * License (BSD): * ============== * * Copyright (c) 2004, Mikael Grev, MiG InfoCom AB. (miglayout (at) miginfocom (dot) com) * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the follo...
package net.miginfocom.swt; /* * License (BSD): * ============== * * Copyright (c) 2004, Mikael Grev, MiG InfoCom AB. (miglayout (at) miginfocom (dot) com) * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the follo...
package net.miginfocom.swt; /* * License (BSD): * ============== * * Copyright (c) 2004, Mikael Grev, MiG InfoCom AB. (miglayout (at) miginfocom (dot) com) * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the follo...
package net.miginfocom.demo; import net.miginfocom.layout.PlatformDefaults; import net.miginfocom.layout.UnitValue; import net.miginfocom.swing.MigLayout; import org.jvnet.substance.SubstanceLookAndFeel; import org.jvnet.substance.fonts.SubstanceFontUtilities; import org.jvnet.substance.skin.SubstanceBusinessBlackStee...
package net.miginfocom.demo; import net.miginfocom.layout.BoundSize; import net.miginfocom.layout.ComponentWrapper; import net.miginfocom.layout.LayoutCallback; import net.miginfocom.layout.UnitValue; import net.miginfocom.swing.MigLayout; import javax.swing.*; import java.awt.*; import java.awt.event.*; i...
package net.miginfocom.demo; import net.miginfocom.layout.*; import net.miginfocom.swing.MigLayout; import javax.swing.*; import javax.swing.border.EmptyBorder; import javax.swing.border.EtchedBorder; import javax.swing.border.LineBorder; import javax.swing.event.ListSelectionEvent; import javax.swing.event...
package service.sale; import java.rmi.RemoteException; import java.util.ArrayList; import article.entities.ArticleVO; import article.exceptions.OutOfStockIngredientsException; import business.BusinessFacade; import business.sale.interfaces.SaleMgt; import sale.entities.FacturaVO; import sale.entities.OrderVO; import ...
package service.client; import java.rmi.RemoteException; import business.BusinessFacade; import business.client.interfaces.ClientMgt; import client.entities.ClientVO; import client.exceptions.BadClientException; import client.exceptions.ClientNotHereException; import client.exceptions.IncompleteClientException; impor...
package service.employee; import java.rmi.RemoteException; import business.BusinessFacade; import employee.entities.EmployeeVO; import employee.exceptions.IncompleteEmployeeException; import employee.interfaces.EmployeeRemoteMgt; public class EmployeeRemoteMgr implements EmployeeRemoteMgt { private static Employee...
package service.article; import java.rmi.RemoteException; import java.util.ArrayList; import dbExceptions.BadComboException; import dbExceptions.DataBaseErrorException; import dbExceptions.MissingComboException; import business.BusinessFacade; import business.article.interfaces.ArticleMgt; import article.entities.Art...
import java.rmi.RemoteException; import java.rmi.registry.LocateRegistry; import java.rmi.registry.Registry; import java.rmi.server.UnicastRemoteObject; import persistence.DAO.FactoryDB; import client.interfaces.ClientRemoteMgt; import employee.interfaces.EmployeeRemoteMgt; import article.interfaces.ArticleRemoteMgt...
import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.logging.FileHandler; import java.util.logging.Level; import java.util.logging.LogManager; import java.util.logging.Logger; import java.util.logging.SimpleFormatter; import java.util.logging.XMLFormatter; import client.e...
package business.sale.interfaces; import java.util.ArrayList; import article.entities.ArticleVO; import article.exceptions.OutOfStockIngredientsException; import sale.entities.FacturaVO; import sale.entities.OrderVO; import sale.entities.SaleVO; import sale.exceptions.EmptyOrderException; import sale.exceptions.NoSal...
package business.sale.managers; import java.util.ArrayList; import java.util.Calendar; import java.util.Random; import client.exceptions.BadClientException; import dbExceptions.NotSaleException; import persistence.DAO.BadEmployeeException; import persistence.DAO.DataBaseException; import persistence.factura.facturaDA...
package business.sale.entities; import java.math.BigDecimal; import java.util.ArrayList; import java.util.Calendar; import java.util.Date; import client.entities.ClientVO; import client.exceptions.ClientNotHereException; import employee.entities.EmployeeVO; import sale.entities.OrderVO; import sale.entities.SaleVO; i...
package business.sale.entities; import java.math.BigDecimal; import business.article.entities.Article; import sale.entities.ArticleBillvo; public class ArticleBill { private int idBill; private int idLine; private Article art; private double unitPrice; private double Totalprice; private int quant; public in...
package business.sale.entities; import sale.entities.PaymentVO; public class Payment { private int id; private String type; public int getId() { return id; } public void setId(int id) { this.id = id; } public String getType() { return type; } public void setType(String type) { this.type = type; }...
package business.sale.entities; import java.util.ArrayList; import sale.entities.OrderVO; import article.entities.ArticleVO; import business.article.entities.Article; public class Order { private int primaryKey; private boolean isReady; private ArrayList<Article> arts = new ArrayList<Article>(); private ArrayLi...
package business.sale.entities; import java.math.BigDecimal; import java.util.ArrayList; import java.util.Date; import sale.entities.ArticleBillvo; import sale.entities.FacturaVO; import business.client.entities.Client; public class Factura { private int primaryKey; private Client client; private Date date; pr...
package business.client.interfaces; import client.entities.ClientVO; import client.exceptions.BadClientException; import client.exceptions.ClientNotHereException; import client.exceptions.IncompleteClientException; import client.exceptions.MissingClientException; import dbExceptions.DataBaseErrorException; public int...
package business.client.managers; import client.entities.ClientVO; import client.exceptions.BadClientException; import client.exceptions.ClientNotHereException; import client.exceptions.IncompleteClientException; import client.exceptions.MissingClientException; import dbExceptions.DataBaseErrorException; import persis...
package business.client.entities; import java.util.Date; import client.entities.ClientVO; public class Client { private int clientId; private String name; private String lastName; private String address; private String tel; private String cel; private Date registrationDate; private String birthdate; pub...
package business.employee.interfaces; import employee.entities.EmployeeVO; import employee.exceptions.IncompleteEmployeeException; public interface EmployeeMgt { EmployeeVO[] getEmployees(); EmployeeVO getEmployee(int id); void update(EmployeeVO emp) throws IncompleteEmployeeException; void delete(int id); ...
package business.employee.managers; import employee.entities.EmployeeVO; import employee.exceptions.IncompleteEmployeeException; import persistence.employee.employeeDAO.EmployeeDAO; import business.employee.entities.Employee; import business.employee.interfaces.EmployeeMgt; public class EmployeeMgr implements Employe...
package business.employee.entities; import employee.entities.EmployeeVO; public class Employee { private String password, name, lastName; private int id; private int employeeType; public String getPassword() { return password; } public void setPassword(String password) { this.password = password; } pu...
package business; import business.article.interfaces.ArticleMgt; import business.article.managers.ArticleMgr; import business.client.interfaces.ClientMgt; import business.client.managers.ClientMgr; import business.employee.managers.EmployeeMgr; import business.sale.interfaces.SaleMgt; import business.sale.managers.Sal...
package business.article.interfaces; import java.util.ArrayList; import dbExceptions.BadComboException; import dbExceptions.DataBaseErrorException; import dbExceptions.MissingComboException; import article.entities.ArticleVO; import article.entities.CategoryVO; import article.entities.ComboVO; import article.entities...
package business.article.managers; import java.util.ArrayList; import dbExceptions.BadComboException; import dbExceptions.DataBaseErrorException; import dbExceptions.MissingComboException; import persistence.article.articleDAO.ArticleDAO; import persistence.category.categoryDAO.CategoryDAO; import persistence.combo.c...
package business.article.entities; import article.entities.CategoryVO; public class Category { private String cat; private int primaryKey; public String getCat() { return cat; } public Category(String cat) { this.cat = cat; } public String toString(){ return cat; } public int getPrimaryKey() { ...
package business.article.entities; import java.util.ArrayList; import article.entities.ArticleVO; import article.entities.ComboVO; public class Combo extends Article{ private ArrayList<Article> arts; public ArrayList<Article> getArts() { return arts; } public void setArts(ArrayList<Article> arts) { this...
package business.article.entities; import article.entities.ArticleVO; import article.entities.IngredientVO; public class Article { protected String name, desc; protected int primaryKey; protected double price; protected Ingredient[] ingr; protected Category cat; public String getName() { return name; } p...
package business.article.entities; import article.entities.IngredientVO; public class Ingredient { private String ingr; private boolean inStock; private int id; public String getIngr() { return ingr; } public Ingredient(String ingr){ this.ingr=ingr; } public String toString(){ return ingr; } ...
package persistence.sale.saleDAO; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Collections; import java....
package persistence.client.clientDAO; import java.sql.Connection; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.util.ArrayList; import java.util.Date; import client.exceptions.BadClientException; import client.exceptions.MissingClientException; import dbExceptions.Dat...
package persistence.combo.comboDAO; import java.sql.Connection; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.util.ArrayList; import java.util.Collections; import dbExceptions.DataBaseErrorException; import article.exceptions.BadArticleException; import article.except...
package persistence.employee.employeeDAO; import java.sql.Connection; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.util.ArrayList; import persistence.DAO.DAOHelper; import business.employee.entities.Employee; public class EmployeeDAO { private static EmployeeDAO in...
package persistence.category.categoryDAO; import java.sql.Connection; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.util.ArrayList; import java.util.Collections; import business.article.entities.Category; import persistence.DAO.DAOHelper; public class CategoryDAO { ...
package persistence.factura.facturaDAO; import java.sql.Connection; import java.sql.Date; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import persistence.DAO.DAOHelper; import persistence.DAO.DataBaseException; import business.article.entities....
package persistence.article.articleDAO; import java.sql.Connection; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.util.ArrayList; import java.util.Collections; import dbExceptions.DataBaseErrorException; import persistence.DAO.DAOHelper; import persistence.combo.combo...
package persistence.ingredient.ingredientDAO; import java.sql.Connection; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.util.ArrayList; import business.article.entities.Ingredient; import article.exceptions.badClassException; import persistence.DAO.DAOHelper; public...
package persistence.DAO; public class DataBaseException extends Exception { /** * */ private static final long serialVersionUID = -8222042105369503299L; public DataBaseException(String man){ super(man); } }
package persistence.DAO; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.security.MessageDigest; import java.sql.Connection; import java.sql.SQLException; import java.util.Properties; import javax.sql.DataSource; import org.apache.commons.dbcp.BasicDataSourc...
package persistence.DAO; public class NotSaleException extends DataBaseException { /** * */ private static final long serialVersionUID = -2852102866563297626L; public NotSaleException(){ super("Problema con la venta con la venta"); } }
package persistence.DAO; public class BadEmployeeException extends DataBaseException { /** * */ private static final long serialVersionUID = 1L; public BadEmployeeException(){ super("El empleado no se encuentra en la base de datos, o no fue ingresado correctamente"); } }
import java.rmi.RemoteException; import java.util.ArrayList; import java.util.Calendar; import client.entities.ClientVO; import client.exceptions.BadClientException; import client.exceptions.IncompleteClientException; import client.exceptions.MissingClientException; import dbExceptions.DataBaseErrorException; import d...
import java.io.IOException; import java.util.logging.FileHandler; import java.util.logging.Level; import java.util.logging.LogManager; import java.util.logging.Logger; import java.util.logging.SimpleFormatter; public class Log { private LogManager logman; private Logger logger; private FileHandler fh; private st...
package dbExceptions; public class NotSaleException extends Exception { /** * */ private static final long serialVersionUID = 1L; public NotSaleException(String man){ super(man); } }
package dbExceptions; public class DataBaseErrorException extends Exception { /** * */ private static final long serialVersionUID = 1L; }
package dbExceptions; public class BadComboException extends Exception { /** * */ private static final long serialVersionUID = -9013953404979718140L; public BadComboException(String man){ super(man); } }
package dbExceptions; public class MissingComboException extends Exception { /** * */ private static final long serialVersionUID = 1L; public MissingComboException(String man){ super(man); } }
package sale.interfaces; import java.rmi.Remote; import java.rmi.RemoteException; import java.util.ArrayList; import article.entities.ArticleVO; import article.exceptions.OutOfStockIngredientsException; import sale.entities.FacturaVO; import sale.entities.OrderVO; import sale.entities.SaleVO; import sale.exceptions.E...
package sale.exceptions; public class EmptySaleExcpetion extends Exception { private static final long serialVersionUID = 1L; public EmptySaleExcpetion(String str){ super(str); } }
package sale.exceptions; public class EmptyOrderException extends Exception { private static final long serialVersionUID = 1L; public EmptyOrderException(String str){ super(str); } }
package sale.exceptions; public class NoSalesException extends Exception { /** * */ private static final long serialVersionUID = 1L; public NoSalesException(String str){ super(str); } }
package sale.entities; import java.io.Serializable; import java.math.BigDecimal; import java.util.ArrayList; import java.util.Date; import client.entities.ClientVO; import sale.entities.ArticleBillvo; public class FacturaVO implements Serializable { private static final long serialVersionUID = 1L; private int pri...
package sale.entities; import java.io.Serializable; import java.util.ArrayList; import article.entities.ArticleVO; public class OrderVO implements Serializable { private static final long serialVersionUID = 1L; private int primaryKey; private boolean isReady; private ArrayList<ArticleVO> arts = new ArrayList<A...
package sale.entities; import java.io.Serializable; public class PaymentVO implements Serializable{ private static final long serialVersionUID = 1L; private int id; private String type; public int getId() { return id; } public void setId(int id) { this.id = id; } public String getType() { return type...
package sale.entities; import java.io.Serializable; import java.util.ArrayList; import java.util.Calendar; import java.util.Date; import client.entities.ClientVO; import employee.entities.EmployeeVO; public class SaleVO implements Serializable { private static final long serialVersionUID = 1L; private int saleKey...
package sale.entities; import java.io.Serializable; import article.entities.ArticleVO; public class ArticleBillvo implements Serializable{ private static final long serialVersionUID = 1L; private int idBill; private int idLine; private ArticleVO art; private double unitPrice; private double Totalprice; pri...
package client.interfaces; import java.rmi.Remote; import java.rmi.RemoteException; import client.entities.ClientVO; import client.exceptions.BadClientException; import client.exceptions.ClientNotHereException; import client.exceptions.IncompleteClientException; import client.exceptions.MissingClientException; import...
package client.exceptions; public class IncompleteClientException extends Exception { private static final long serialVersionUID = 1L; public IncompleteClientException(String e){ super(e); } }
package client.exceptions; public class ClientNotHereException extends Exception { /** * */ private static final long serialVersionUID = 1L; public ClientNotHereException(String e){ super(e); } }
package client.exceptions; public class BadClientException extends Exception { /** * */ private static final long serialVersionUID = -5306821175925615382L; public BadClientException(String woman){ super(woman); } }
package client.exceptions; public class MissingClientException extends Exception { /** * */ private static final long serialVersionUID = -3977098819433646490L; public MissingClientException(String man){ super(man); } }
package client.entities; import java.io.Serializable; import java.util.Date; public class ClientVO implements Serializable{ /** * */ private static final long serialVersionUID = 1L; private int clientId; private String name; private String lastName; private String address; private String tel; private...
package employee.interfaces; import java.rmi.Remote; import java.rmi.RemoteException; import employee.entities.EmployeeVO; import employee.exceptions.IncompleteEmployeeException; public interface EmployeeRemoteMgt extends Remote { EmployeeVO[] getEmployees() throws RemoteException; EmployeeVO getEmployee(int id)...
package employee.exceptions; public class IncompleteEmployeeException extends Exception { /** * */ private static final long serialVersionUID = 1L; public IncompleteEmployeeException(String man){ super(man); } }
package employee.entities; import java.io.Serializable; public class EmployeeVO implements Serializable{ /** * */ private static final long serialVersionUID = 1L; private String password, name, lastName; private int id; private int employeeType; public String getPassword() { return password; } publi...
package article.interfaces; import java.rmi.Remote; import java.rmi.RemoteException; import java.util.ArrayList; import dbExceptions.BadComboException; import dbExceptions.DataBaseErrorException; import dbExceptions.MissingComboException; import article.entities.ArticleVO; import article.entities.CategoryVO; import a...
package article.exceptions; public class NotHereException extends Exception { private static final long serialVersionUID = 1L; public NotHereException(String str){ super(str); } }
package article.exceptions; public class BadArticleException extends Exception { /** * */ private static final long serialVersionUID = -7847570294911723653L; }
package article.exceptions; public class MissingArticleException extends Exception { public MissingArticleException(String string) { super(string); } /** * */ private static final long serialVersionUID = 3827757521106332783L; }
package article.exceptions; public class MissingCategoryException extends Exception { /** * */ private static final long serialVersionUID = 1L; public MissingCategoryException(String s){ super(s); } }
package article.exceptions; public class BadCategoryException extends Exception { /** * */ private static final long serialVersionUID = -5428478460650159181L; }
package article.exceptions; public class badClassException extends Exception { /** * */ private static final long serialVersionUID = 1L; }
package article.exceptions; import java.util.ArrayList; import sale.entities.OrderVO; import article.entities.ArticleVO; import article.entities.IngredientVO; public class OutOfStockIngredientsException extends Exception { private static final long serialVersionUID = 1L; private ArrayList<ArticleVO> arts; privat...
package article.exceptions; public class IncompleteArticleException extends Exception { private static final long serialVersionUID = 1L; public IncompleteArticleException(String e){ super(e); } }
package article.entities; import java.io.Serializable; public class IngredientVO implements Serializable{ private static final long serialVersionUID = 1L; private String ingr; private boolean inStock; private int id; public String getIngr() { return ingr; } public IngredientVO(String ingr){ this.ingr...
package article.entities; import java.io.Serializable; public class CategoryVO implements Serializable { /** * */ private static final long serialVersionUID = 1L; private String cat; private int primaryKey; public String getCat() { return cat; } public CategoryVO(String cat) { this.cat = cat; } ...
package article.entities; import java.io.Serializable; public class ArticleVO implements Serializable{ private static final long serialVersionUID = 1L; private String name, desc; private int primaryKey; private double price; private IngredientVO[] ingr; private CategoryVO cat; public void setDesc(String d...