text stringlengths 3 1.18M |
|---|
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
... |
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
... |
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
... |
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
... |
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
... |
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
... |
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
... |
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
... |
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
... |
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
... |
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
... |
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
... |
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
... |
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
... |
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
... |
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
... |
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
... |
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
... |
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
... |
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
... |
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
... |
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
... |
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
... |
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
... |
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
... |
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
... |
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
... |
/*
* $Date:
*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licens... |
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
... |
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
... |
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
... |
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
... |
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
... |
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
... |
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
... |
/*
* Copyright (C) 2010 Just Objects B.V.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This progr... |
/*
* Copyright (C) 2010 Just Objects B.V.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This progr... |
/*
* Copyright (C) 2010 Just Objects B.V.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This prog... |
/*
* Copyright (C) 2010 Just Objects B.V.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This progr... |
/*
* Copyright (C) 2010 Just Objects B.V.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Th... |
/*
* Copyright (C) 2010 Just Objects B.V.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Th... |
/*
* Copyright (C) 2010 Just Objects B.V.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Th... |
/*
* Copyright (C) 2010 Just Objects B.V.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Th... |
/*
* Copyright (C) 2010 Just Objects B.V.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Th... |
/*
* Copyright (C) 2010 Just Objects B.V.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Th... |
/*
* Copyright (C) 2010 Just Objects B.V.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This progr... |
/*
* Copyright (C) 2010 Just Objects B.V.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This progr... |
/*
* Copyright (C) 2010 Just Objects B.V.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This progr... |
/*
* Copyright (C) 2010 Just Objects B.V.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This progr... |
/*
* Copyright (C) 2010 Just Objects B.V.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This progr... |
// $codepro.audit.disable multiplicationOrDivisionByPowersOf2, numericLiterals, logExceptions, com.instantiations.assist.eclipse.analysis.unusedReturnValue
/**
* This file was created by Nick Popescu for use in SpaceTrader
*/
import javax.swing.JPanel;
//import java.awt.*;
import java.awt.Color;
import java.aw... |
// $codepro.audit.disable lossOfPrecisionInCast , numericLiterals
/**
* This file was created by the SockFullOfOranges group for use in SpaceTrader
*/
import javax.swing.JPanel;
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Point;
impo... |
/**
* This file was created by Nick Popescu for use in SpaceTrader
*/
import java.awt.event.ActionListener;
import javax.swing.JPanel;
import javax.swing.JSpinner;
import javax.swing.event.ChangeListener;
/**
* This is the View component, which deals with methods associated with getting
* and setting G... |
// $codepro.audit.disable
//Not part of source code
import static org.junit.Assert.*;
import java.awt.Dimension;
import java.awt.Point;
import java.awt.Window;
import javax.swing.JDialog;
import javax.swing.JFrame;
import junit.framework.Assert;
import org.junit.Rule;
import org.junit.Test;
import o... |
/**
* This file was created by Julia Deeb and Nick Popescu for use in SpaceTrader
*/
import java.awt.Container;
import java.io.Serializable;
import java.util.Random;
/**
* This class is used as a storage space for some of the game's objects.
*
* @author Nick Popescu, Julia Deeb
* @version 1.0
*/
p... |
/**
* This file was created by Taylor Garren for use in SpaceTrader
*/
import java.io.Serializable;
/**
* The Marketplace is where the resources are bought and sold. It is able to
* handle the associated methods to allow for transactions.
*
* @author Taylor Garren
* @version 1.0
*/
public class Marketplace ... |
// $codepro.audit.disable numericLiterals
/**
* This file was created by Julia Deeb for use in SpaceTrader
*/
import java.io.Serializable;
import java.util.Random;
/**
* This class creates the Government each of the planets
*
* @author Julia Deeb
* @version 1.0
*/
public class Government implement... |
/**
* This file was created by Julia Deeb for use in SpaceTrader
*/
import java.io.Serializable;
import java.util.Random;
/**
* This class creates the development for each of the planets
*
* @author Julia Deeb
* @version 1.0
*
*/
public class Development implements Serializable {
/**
... |
// $codepro.audit.disable numericLiterals
/**
* This file was created by Nick Popescu Taylor Garren for use in
* SpaceTrader
*/
/**
* This file was created by Nick Popescu and Taylor Garren for use in
* SpaceTrader
*/
import java.io.Serializable;
/**
* This class represents a spaceship and all o... |
// $codepro.audit.disable numericLiterals
//disabled numeric literals for this file because arrays must be made up of integers.
/**
* This file was created by Julia Deeb for use in SpaceTrader
*/
import java.io.Serializable;
import java.util.Arrays;
/**
* This class represents a resource-item that can be ... |
/**
* This file was created by Nick Popescu for use in SpaceTrader
*/
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.SpinnerNumberModel;
import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;
/**
* This is the Controller component cl... |
/**
* This file was created by Julia Deeb and Nick Popescu for use in SpaceTrader
*/
import java.awt.Point;
import java.io.Serializable;
import java.util.Random;
/**
* This class represents a Planet, with associated fields and methods.
*
* @author Nick Popescu, Julia Deeb
* @version 1.0
*/
publi... |
/**
* This is the Model component of the game, which holds some of the key method
* names that can be used by the controller.
*
* @author Nick Popescu
* @version 1.0
*/
public interface Model {
/**
* Creates a player, though it is actually just adding the Name and Skills
* to the play... |
/**
* This class was created by Nick Popescu to be used in Space Trader
*/
import java.io.Serializable;
/**
* This is class is used to generate the NPCs and the Player for the game. It
* contains the base variables that would be applicable to the characters.
*
* @author Nick Popescu
* @version 1.0
... |
// $codepro.audit.disable numericLiterals
/**
* This class was created by Nick Popescu to be used in Space Trader
*/
import java.awt.EventQueue;
import java.awt.Font;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.JSpinner;
import javax.swing.JButto... |
/**
* This file was created by Nick Popescu Taylor Garren for use in
* SpaceTrader
*/
import java.awt.Dimension;
import java.awt.Point;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Random;
import javax.swing.JOptionPane;
/**
* This class generates a Space grid of all th... |
/**
* This file was created by the SockFullOfOranges group for use in SpaceTrader
*/
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JPanel;
import javax.swing.JButton;
/**
* This class creates the option screen to be used in the GUI
* @author Andrew Darrohn, Nick Popes... |
// $codepro.audit.disable numericLiterals
/**
* This file was created by Nick Popescu, Andrew Darrohn GameScreen for
* use in InitConfigScreen
*/
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.Polygon;
import java.awt.event.MouseEvent;
import java.awt.event.MouseLi... |
/**
* This class was created by Nick Popescu to be used in Space Trader
*/
import java.io.Serializable;
/**
* This class represents the Player of the game, who is an extension of a normal
* Character.
*
* @author Nick Popescu
* @version 1.0
*/
public class Player extends Character implements Model... |
/**
* This is a file comment
*/
import java.io.Serializable;
import javax.swing.JOptionPane;
/**
* Creates the SpacePort, which allows the User to purchase fuel.
*
* @author Taylor Garren
* @version 1.0
*/
public class SpacePort implements Serializable {
/**
* The user
... |
/**
* This file was created by Andrew Darrohn
* StartScreen for use in SpaceTrader
* @author Andrew Darrohn
*/
import java.awt.Polygon;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.JPanel;
/**
* ... |
/**
* This is the space port screen
* @author Nick Popescu, Andrew Darrohn
*/
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JPanel;
import javax.swing.JSlider;
import javax.swing.JButton;
import java.awt.Color;
import java.awt.Font;
import javax.swing.J... |
// $codepro.audit.disable logExceptions
/**
* This class was created by Nick Popescu to be used in Space Trader
*/
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputSt... |
package edu.gatech.oad.antlab.person;
/**
* A simple class for person 3
* returns their name and a
* reversed string
*
* @author Bob
* @version 1.1
*/
public class Person3 {
/** Holds the persons real name */
private String name;
/**
* The constructor, takes in the persons
* name
* @param... |
package edu.gatech.oad.antlab.person;
import java.util.*;
/**
* A simple class for person 2
* returns their name and a
* modified string
*
* @author Bob
* @version 1.1
*/
public class Person2 {
/** Holds the persons real name */
private String name;
/**
* The constructor, takes... |
package edu.gatech.oad.antlab.person;
/**
* A simple class for person 5 returns their name and a modified string
*
* @author Bob
* @version 1.1
*/
public class Person5
{
/** Holds the persons real name */
private String name;
/**
* The constructor, takes in the persons name
*
* @param ... |
package edu.gatech.oad.antlab.person;
/**
* A simple class for person 4
* returns their name and a
* modified string
*
* @author Bob
* @version 1.1
*/
public class Person4 {
/** Holds the persons real name */
private String name;
/**
* The constructor, takes in the persons
... |
package edu.gatech.oad.antlab.person;
import java.lang.*;
/**
* A simple class for person 1
* returns their name and a
* modified string
*
* @author Bob
* @version 1.1
*/
public class Person1 {
/** Holds the persons real name */
private String name;
/**
* The constructor, takes... |
package edu.gatech.oad.antlab.pkg2;
/**
* CS2335 Ant Lab
*
* AntLab11.java helper class
*
* @author Robert
* @version 1.0
*/
public class AntLab22 {
/**
* retrieves a pre-stored string message
* @return the string
*/
public String getMessage() {
retu... |
package edu.gatech.oad.antlab.pkg2;
/**
* CS2340 Ant Lab
*
* AntLab11.java helper class
*
* @author Robert
* @version 1.0
*/
public class AntLab21 {
/**
* retrieves a pre-stored string message
* @return the string
*/
public String getMessage() {
retu... |
package edu.gatech.oad.antlab.pkg1;
//if you get an error on this import
//you do not have resources.jar on the classpath
import edu.cs2335.antlab.pkg3.*;
import edu.gatech.oad.antlab.person.*;
import edu.gatech.oad.antlab.pkg2.*;
/**
* CS2335 Ant Lab
*
* Prints out a simple message gathered from all ... |
package edu.gatech.oad.antlab.pkg1;
/**
* CS2340 Ant Lab
*
* AntLab11.java helper class
* @author Robert
* @version 1.0
*/
public class AntLab11 {
/**
* retrieves a pre-stored string message
* @return the string
*/
public String getMessage() {
return "C... |
package edu.gatech.oad.antlab.pkg1;
/**
* CS2335 Ant Lab
*
* AntLab12.java helper class
*/
public class AntLab12 {
/**
* retrieves a pre-stored string message
* @return the string
*/
public String getMessage() {
return " You";
}
} |
package br.sc.senai.view;
import java.awt.Dimension;
import javax.swing.JFormattedTextField;
import javax.swing.JInternalFrame;
import javax.swing.JTextField;
import javax.swing.JRadioButton;
import javax.swing.ButtonGroup;
import javax.swing.JButton;
import javax.swing.ImageIcon;
import br.sc.senai.dao.ClienteDAO;... |
package br.sc.senai.view;
import java.awt.Dimension;
import java.awt.EventQueue;
import javax.swing.JInternalFrame;
import javax.swing.GroupLayout;
import javax.swing.GroupLayout.Alignment;
import javax.swing.JComboBox;
import javax.swing.JOptionPane;
import javax.swing.LayoutStyle.ComponentPlacement;
import javax.sw... |
package br.sc.senai.view;
import java.awt.Dimension;
import java.awt.EventQueue;
import javax.swing.JInternalFrame;
import javax.swing.JTextField;
import javax.swing.JRadioButton;
import javax.swing.ButtonGroup;
import javax.swing.JButton;
import javax.swing.ImageIcon;
import br.sc.senai.dao.ClienteDAO;
import br.s... |
package br.sc.senai.view;
import java.awt.Dimension;
import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.GroupLayout;
import javax.swing.GroupLayout.Alignment;
import javax.swing.JMenuBar;
import javax.swing.JLabel;
import javax.swing.JButton;
import java.awt.event.ActionListener;
import java.aw... |
package br.sc.senai.view;
import java.awt.Dimension;
import java.awt.EventQueue;
import javax.swing.JInternalFrame;
import javax.swing.GroupLayout;
import javax.swing.GroupLayout.Alignment;
import javax.swing.JComboBox;
import javax.swing.LayoutStyle.ComponentPlacement;
import javax.swing.DefaultComboBoxModel;
import... |
package br.sc.senai.dao;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import br.sc.senai.conexaoBanco.ConexaoMySQL;
import br.sc.senai.model.ItemVenda;
public class ItemVendaDAO {
public ArrayList<ItemVenda> consultar(Integer idVenda) {
try {
St... |
package br.sc.senai.dao;
import java.util.ArrayList;
import java.util.Date;
import br.sc.senai.model.Entrada;
public class EntradaDAO {
public Integer inserir(Entrada entrada) {
return null;
}
public ArrayList<Entrada> consultar() {
return null;
}
public ArrayList<Entrada> consultarPorIntervaloDeDatas(Da... |
package br.sc.senai.dao;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import br.sc.senai.conexaoBanco.ConexaoMySQL;
import br.sc.senai.model.Cliente;
public class ClienteDAO {
public void ins... |
package br.sc.senai.dao;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.Date;
import br.sc.senai.conexaoBanco.ConexaoMySQL;
import br.sc.senai.model.Venda;
public class VendaDAO {
public Integer inserir(Venda venda) {
return null;
}... |
package br.sc.senai.dao;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import br.sc.senai.conexaoBanco.ConexaoMySQL;
import br.sc.senai.model.Funcionario;
public class FuncionarioDAO {
public Funcionario consultar(Integer idFuncionario) {
try {
Statement st = ConexaoMySQL.... |
package br.sc.senai.dao;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import br.sc.senai.conexaoBanco.ConexaoMySQL;
import br.sc.senai.model.Produto;
public class ProdutoDAO {
public Produto consultar(Integer idProduto) {
try {
Statement st = ConexaoMySQL.getConexaoMySQL(... |
package br.sc.senai.conexaoBanco;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
//Início da classe de conexão//
public class ConexaoMySQL {
public static String status = "Não foi possível realizar conexão";
// Método Construtor da Classe//
public ConexaoMySQL() {
}... |
package br.sc.senai.controller;
public class PrincipalCtrl {
public static void main(String[] args) {
}
public PrincipalCtrl() {
}
}
|
package br.sc.senai.util;
import java.util.Date;
public class Data {
public static String formatarDataParaSQL(Date data){
return "";
}
@SuppressWarnings("deprecation")
public static String formatarDataPrincipal(Date data){
String resultado = "";
switch (data.getDay()) {
case 1:
resultado += "Seg";
b... |
package br.sc.senai.util;
public class Relogio implements Runnable{
@Override
public void run() {
}
}
|
package br.sc.senai.util;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Random;
import javax.swing.JOptionPane;
import br.sc.senai.conexaoBanco.ConexaoMySQL;
public class GeradorDeSQL {
private static f... |
package br.sc.senai.util;
import java.text.AttributedCharacterIterator;
import java.text.FieldPosition;
import java.text.Format;
import java.text.ParseException;
import java.text.ParsePosition;
/**
* <p>Decorator for a {@link Format Format} which only accepts values which can be completely parsed
* by the delegate ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.