text
stringlengths
3
1.18M
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package ui; import java.awt.Point; import javax.swing.JComponent; import javax.swing.JLabel; /** * * @author Александр */ public class Action { private Point mPointTo = null; private Movement...
/* * Copyright (C) 2012 POAS.VSTU */ package ui; import java.awt.Point; import java.awt.event.MouseEvent; import java.awt.event.MouseListener; import java.util.logging.Level; import java.util.logging.Logger; import javax.swing.JPanel; import javax.swing.event.EventListenerList; import model.*; /** * Кон как графи...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package ui; import java.awt.Point; /** * * @author Александр */ interface RotatableLabel { void rotate(int steps); void setOrientation(Orientation orientation); Orientation getOrientation(...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package ui; import java.awt.Component; import java.awt.Point; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Vector; import javax.swing.JComponent; import java...
/* * Copyright (C) 2012 POAS.VSTU */ package ui; import javax.swing.JLabel; import java.awt.Insets; import java.awt.Dimension; import java.awt.Rectangle; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.Point; import java.awt.geom.AffineTransform; import java.util.logging.Level;...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package ui; /** * * @author Александр */ public enum MovementSpeed { VARY_SLOWLY, SLOWLY, NORMAL, FAST, VERY_FAST }
/* * Copyright (C) 2012 POAS.VSTU */ package ui; import model.CardStack; import model.Card; import java.awt.Point; import java.util.List; import model.CardPile; /** * Колода карт как графический элемент. * На самом деле она не имеет своего представления - это участок игровой панели, * занятый картами */ publi...
/* * Copyright (C) 2012 POAS.VSTU */ package ui; import java.awt.*; import java.util.logging.Level; import java.util.logging.Logger; import javax.swing.JComponent; import javax.swing.JLabel; import model.Gamer; import model.Player; /** * UI-представлние игрока */ public class UIPlayer { /** Модель игрока *...
/* * Copyright (C) 2012 POAS.VSTU */ package ui; import model.CardPile; import model.Card; import java.awt.Point; import java.awt.Rectangle; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import javax.swing.JComponent; /** * Стопка карт как графический элемент. * На самом деле он...
/* * Copyright (C) 2012 POAS.VSTU */ package ui; import java.awt.Point; import java.util.List; import java.util.logging.Level; import java.util.logging.Logger; import javax.swing.JComponent; import javax.swing.JLabel; import javax.swing.JPanel; import model.Card; import model.CardPile; import model.PlayerCardPile; ...
/* * Copyright (C) 2012 POAS.VSTU */ package ui; import model.Card; import javax.swing.JLabel; import javax.swing.ImageIcon; import java.awt.Point; import java.awt.Rectangle; import java.awt.Insets; import java.awt.Dimension; import java.awt.event.MouseEvent; import java.awt.event.MouseListener; import java.util.A...
package BLL; import DAL.*; import java.io.FileNotFoundException; /** * Classe para iniciar a execução do sistema. * * @author (R. Soares) * @version (1.0 - 06/06/2010) */ public class Main { /** * Método para a partida de execução do sistema. */ public static void main(String[] args) throws Fil...
package BLL; import java.util.*; import DTO.*; import DAL.*; import GUI.*; import javax.swing.JFrame; /** * Classe responsável pelo gerenciamento dos registros de jogos e as ações tomadas * em menus do jogo. * * @author (R. Soares) * @version (1.0 - 24.05.2010) */ public class GerenciadorJogo { // Variávei...
package BLL; import java.util.*; import DTO.*; import DAL.*; /** * Classe responsavel pela geração dos elementos de um jogo (JogoDTO) * * @author (R. Soares) * @version (1.0 - 25.05.2010) */ public class GeradorJogo { // Variáveis de Instancia ------------------------------------------ * private Configur...
package BLL; import java.util.*; import DTO.*; /** * Esta classe é responsável pelo gerenciamento do comportamento genérico dos * elementos de jogo. * * @author (R. Soares) * @version (1.0 - 18.05.2010) */ public class ElementoJogo { // Variáveis de Instancia ------------------------------------------ * ...
package BLL; import java.util.*; import DTO.*; import DAL.*; import GUI.*; /** * Classe responsável pelo gerenciamento de um jogo em execução. * * @author (R. Soares) * @version (1.0 - 24.05.2010) */ public class ExecutorJogo { // Variáveis de Instancia ------------------------------------------ * priva...
package DTO; /** * Esta classe tem por função manter a lista de meteoros do jogo. * * @author (your name) * @version (a version number or a date) */ public class ListaMeteoros { // Variáveis de Instancia ------------------------------------------ * private MeteoroDTO _cabecaLista; private int _quantid...
package DTO; /** * Classe responsável por manter as coordenadas de um ponto.. * * @author (R. Soares) * @version (1.0 - 20.05.2010) */ public class Ponto { // Variáveis de Instancia ------------------------------------------ * private double _px; private double _py; /** * Construtor da Clas...
package DTO; /** * Esta classe tem por função de manter as informações referentes aos elementos * Meteoro do jogo. * * @author (R. Soares) * @version (1.0 - 20.05.2010) */ public class MeteoroDTO extends ElementoDTO { // Variáveis de Instância -------------------------------------------- * private int _...
package DTO; import DAL.Conexao; import java.util.*; /** * Classe responsável por manter as informações referentes a um jogo. * * @author (R. Soares) * @version (1.0 - 26.04.2010) */ public class JogoDTO { // Variáveis de Instância --------------------------------------------------* private String _jogad...
package DTO; /** * Classe responsável por manter as informações referentes as configurações de jogo * * @author (R. Soares) * @version (1.0 - 26.04.2010) */ public class ConfiguracaoDTO { // Variáveis de Instância --------------------------------------------------* private int _diametroMeteoro; privat...
package DTO; import java.awt.*; /** * Esta classe tem por função manter os elementos presentes na área de jogo. * * @author (R Soares) * @version (1.0) */ public class ElementoDTO { // Atributos -----------------------------------------------------* private Ponto _localizacaoAtual; private Ponto _des...
package DTO; /** * Esta classe tem por função de manter as informações referentes ao elemento * Satélite do jogo. * * @author (R. Soares) * @version (1.0 - 20.05.2010) */ public class SateliteDTO extends ElementoDTO { // Variáveis de Instância -------------------------------------------- * private doubl...
package GUI; import DAL.Conexao; import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.event.*; import java.util.*; /** * Classe que fornece interface grafica das opções de menu do jogo. * * @author (R. Soares) * @version (1.0 - 04.05.2010) */ public class MenuGUI extends JFrame { ...
package GUI; import java.awt.*; /** * Calsse responsável por manter as informações para a inclusão de um texto na * área de jogo. * * @author (R. Soares) * @version (1.0 - 24.05.2010) */ public class TextoGUI { // Variáveis de Instância --------------------------------------------------* private String ...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ /* * TelaInicial.java * * Created on 27/11/2011, 18:52:19 */ package GUI; import DAL.Conexao; import javax.swing.JFrame; import javax.swing.JOptionPane; /** * * @author Vanessa */ public class TelaInicial exten...
package GUI; import java.awt.*; import java.awt.geom.*; // REMOVER import java.awt.image.*; import javax.imageio.*; /** * Classe para manter as informações de objetos gráficos para desenho na tela. * * @author (R. Soares) * @version (1.0 - 24-05-2010) */ public class ObjetoGUI { // Variáveis de Instância ...
package GUI; import java.util.*; import DTO.*; import DAL.*; /** * Classe que tem por função relacionar os itens gráficos do jogo. * * @author (R. Soares) * @version (1.0 - 24.05.2010) */ public class JogoGUI { // Variáveis de Instância --------------------------------------------------* // Objetos pre...
package GUI; import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.event.*; import java.util.*; /** * Classe que tem por função apresentar a lista de itens salvos. * * @author (R. Soares) * @version (1.0 - 24.05.2010) */ public class ListaGUI extends JFrame { // Variáveis de I...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ /* * TelaCadastro.java * * Created on 27/11/2011, 18:22:01 */ package GUI; import DAL.Conexao; import javax.swing.JOptionPane; /** * * @author Vanessa */ public class TelaCadastro extends javax.swing.JPanel { ...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ /* * TelaDoJogador.java * * Created on 28/11/2011, 16:53:54 */ package GUI; import BLL.GerenciadorJogo; import DAL.Conexao; import javax.swing.JOptionPane; /** * * @author Vanessa */ public class TelaDoJogador ...
package GUI; import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.util.List; import java.util.*; import java.awt.image.*; import DAL.*; import DTO.*; /** * Classe responsável pela apresentação da área gráfica do jogo * * @author (R. Soares) * @version (1.0 - 24.05.2010) */ public class...
package DAL; import java.io.*; import java.net.URL; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.util.ArrayList; import java.util.logging.Level; import java.util.logging.Logger; /** * Classe para gerenciar...
package DAL; import java.util.*; import java.io.*; import DTO.*; /** * Classe responsável pelo gerenciamento físico, dos registros de jogos. * * @author (R. Soares) * @version (1.0 - 26.04.2010) */ public class JogoDAL extends ArquivoControleDAL { // Variáveis de Instância ----------------------------------...
package DAL; import java.io.*; import java.util.*; /** * Classe responsavel pela leitura dos dados de arquivos. * * @author (R Soares) * @version (1.0 - 07.04.2010) */ public abstract class ArquivoControleDAL { // Variáveis de Instância -----------------------------------------------------* private File ...
package DAL; import java.util.*; import DTO.*; /** * Classe responsável por gerenciar os dados de parametrização das configurações do jogo * * @author (R. Soares) * @version (1.0 - 26.04.2010) */ public class ConfiguracaoDAL extends ArquivoControleDAL { // Variáveis de Instância -----------------------------...
package DAL; import java.io.*; import java.util.*; import java.awt.image.*; import javax.imageio.*; /** * Classe responsavel pela leitura dos dados de arquivos de imagem. * * @author (R Soares) * @version (1.0 - 07.04.2010) */ public class ArquivoImagemDAL { // Variáveis de Instância ------------------------...
/** * com.yhte.mir.client.dao * ClientDao.java * sunsu * 2012-9-18 */ package com.yhte.mir.client.dao; import java.util.List; import java.util.Map; import com.yhte.mir.center.vo.CenterInfo; import com.yhte.mir.ill.vo.IllInfo; /** * @author sunsu * */ public interface ClientDao { void inse...
/** * com.yhte.mir.client.dao.impl * ClientDaoImpl.java * sunsu * 2012-9-18 */ package com.yhte.mir.client.dao.impl; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.SQLException; import java.util.List; import org.apache.log4j.Logger; import org.springframework.orm.iba...
/** * com.yhte.mir * Service.java * sunsu * 2012-9-18 */ package com.yhte.mir; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import org.apache.log4j.Logger; import org.springframework.context.ApplicationContext; import org.springframework.contex...
/** * com.yhte.mir.util * ConnectionUtil.java * sunsu * 2012-9-17 */ package com.yhte.mir.util; import java.io.FileInputStream; import java.io.IOException; import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; import java.util.HashMap; import java.util.Iterator; i...
package com.yhte.mir.util; import java.util.HashMap; import java.util.Map; public class HpysConveter { //V3号牌颜色转换为V2号牌颜色 public static Map<String,String> hpysMap = new HashMap<String,String>(); static{ hpysMap.put("0", "03"); //白色 hpysMap.put("1", "02"); //黄色 hpysMap.put("2", "00"); //蓝色 hpysMa...
/** * com.yhte.mir.util * ConnInfo.java * sunsu * 2012-9-17 */ package com.yhte.mir.util; /** * @author sunsu * */ public class ConnInfo { private static String driverClass = "oracle.jdbc.driver.OracleDriver"; private String url; private String username; private String pwd; public stat...
/** * com.yhte.mir * IllInfo.java * sunsu * 2012-9-17 */ package com.yhte.mir.ill.vo; /** * @author sunsu * */ public class IllInfo { private Long clbh; private String hphm; private String hpys; private String rktj; private String bz; public Long getClbh() { return clbh; } p...
/** * com.yhte.mir.dao.impl * CenterDaoImpl.java * sunsu * 2012-9-18 */ package com.yhte.mir.ill.dao.impl; import java.sql.SQLException; import java.util.ArrayList; import java.util.List; import org.apache.log4j.Logger; import org.springframework.orm.ibatis.SqlMapClientTemplate; import com.yhte.m...
/** * com.yhte.mir.dao * CenterDao.java * sunsu * 2012-9-18 */ package com.yhte.mir.ill.dao; import java.util.List; import com.yhte.mir.center.vo.CenterInfo; import com.yhte.mir.ill.vo.IllInfo; /** * @author sunsu * */ public interface IllDao { List<IllInfo> findAll(); }
/** * com.yhte.mir.vo * CeneterInfo.java * sunsu * 2012-9-17 */ package com.yhte.mir.center.vo; /** * @author sunsu * */ public class CenterInfo { private Long clbh; private String hphm; private String hpys; public String getHpys() { return hpys; } public void setHpys(String hpy...
/** * com.yhte.mir.center.vo * IllBakInfo.java * sunsu * 2012-9-19 */ package com.yhte.mir.center.vo; import com.yhte.mir.ill.vo.IllInfo; /** * @author sunsu * */ public class IllBakInfo extends IllInfo{ private String datalink; public String getDatalink() { return datalink; } pu...
/** * com.yhte.mir.vo * ClientLink.java * sunsu * 2012-9-18 */ package com.yhte.mir.center.vo; /** * @author sunsu * */ public class ClientLink { private String dataLink; public String getDataLink() { return dataLink; } public void setDataLink(String dataLink) { this.dataLink = d...
/** * com.yhte.mir.dao.impl * CenterDaoImpl.java * sunsu * 2012-9-18 */ package com.yhte.mir.center.dao.impl; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.SQLException; import java.util.HashMap; import java.util.List; import java.util.Map; import org.apache.log4j....
/** * com.yhte.mir.dao * CenterDao.java * sunsu * 2012-9-18 */ package com.yhte.mir.center.dao; import java.util.List; import com.yhte.mir.center.vo.CenterInfo; import com.yhte.mir.center.vo.ClientLink; import com.yhte.mir.ill.vo.IllInfo; /** * @author sunsu * */ public interface CenterDao ...
/** * com.yhte.mir * Main.java * sunsu * 2012-9-18 */ package com.yhte.mir; import org.apache.log4j.Logger; import org.springframework.context.support.ClassPathXmlApplicationContext; /** * @author sunsu * */ public class Main { private static Logger log = Logger.getLogger(Main.class.getName()...
//package net.tinyos.tools; import java.io.*; import net.tinyos.message.*; import net.tinyos.packet.*; import net.tinyos.util.*; import net.tinyos.tools.PrintfMsg; import java.text.SimpleDateFormat; import java.util.Date; public class TimePrintfClient implements MessageListener { private MoteIF moteIF; public...
/* * Copyright (c) 2005-2006 Rincon Research Corporation * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * - Redistributions of source code must retain the above copyright * notice, t...
//package net.tinyos.tools; import java.io.*; import net.tinyos.message.*; import net.tinyos.packet.*; import net.tinyos.util.*; import net.tinyos.tools.PrintfMsg; import java.text.SimpleDateFormat; import java.util.Date; public class TimePrintfClient implements MessageListener { private MoteIF moteIF; public...
/* * Copyright (c) 2005-2006 Rincon Research Corporation * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * - Redistributions of source code must retain the above copyright * notice, t...
//package net.tinyos.tools; import java.io.*; import net.tinyos.message.*; import net.tinyos.packet.*; import net.tinyos.util.*; import net.tinyos.tools.PrintfMsg; import java.text.SimpleDateFormat; import java.util.Date; public class TimePrintfClient implements MessageListener { private MoteIF moteIF; public...
/* * Copyright (c) 2005-2006 Rincon Research Corporation * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * - Redistributions of source code must retain the above copyright * notice, t...
//package net.tinyos.tools; import java.io.*; import net.tinyos.message.*; import net.tinyos.packet.*; import net.tinyos.util.*; import net.tinyos.tools.PrintfMsg; import java.text.SimpleDateFormat; import java.util.Date; public class TimePrintfClient implements MessageListener { private MoteIF moteIF; public...
/* * Copyright (c) 2005-2006 Rincon Research Corporation * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * - Redistributions of source code must retain the above copyright * notice, t...
package soma.rest.web; import java.io.IOException; import java.util.Collection; import javax.servlet.RequestDispatcher; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import soma.rest.model.Me...
package soma.rest.resource; import java.util.Date; import javax.ws.rs.Consumes; import javax.ws.rs.GET; import javax.ws.rs.HeaderParam; import javax.ws.rs.POST; import javax.ws.rs.Path; import javax.ws.rs.Produces; import javax.ws.rs.QueryParam; import javax.ws.rs.core.MediaType; import org.springframework.context.a...
package soma.rest.resource; import javax.annotation.Resource; import javax.ws.rs.GET; import javax.ws.rs.Path; import javax.ws.rs.Produces; import javax.ws.rs.core.MediaType; import org.springframework.context.annotation.Scope; import org.springframework.stereotype.Component; import soma.rest.model.Message; import s...
package soma.rest.service; import org.springframework.stereotype.Component; import soma.rest.model.Project; @Component("projectService") public class ProjectServiceImpl implements ProjectServcie { /* (non-Javadoc) * @see soma.rest.service.ProjectServcie#getProject() */ @Override public Project getProject(){...
package soma.rest.service; import soma.rest.model.Project; public interface ProjectServcie { public abstract Project getProject(); }
package soma.rest.server; import java.util.ArrayList; import java.util.Collection; import java.util.List; import javax.jdo.Extent; import javax.jdo.JDOHelper; import javax.jdo.PersistenceManager; import javax.jdo.PersistenceManagerFactory; import soma.rest.model.Message; public class MessageRepository { Persiste...
package soma.rest.util; import javax.jdo.JDOHelper; import javax.jdo.PersistenceManagerFactory; public final class PMF { private static final PersistenceManagerFactory pmfInstance = JDOHelper.getPersistenceManagerFactory("transactions-optional"); private PMF() {} public static PersistenceManager...
package soma.rest.model; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlType; @XmlRootElement @XmlType(propOrder={"id", "name" }) public class Project { private long id; private String name; public long getId() { return id; } public void setId(long id) { this.id = id; ...
package soma.rest.model; import java.util.Date; import javax.xml.bind.annotation.XmlRootElement; @XmlRootElement public class Mentee { private int id; private String name; private Date birth; public Mentee() { super(); } public int getId() { return id; } public void setId(int id) { this.id = id; ...
package soma.rest.model; import javax.jdo.annotations.IdGeneratorStrategy; import javax.jdo.annotations.PersistenceCapable; import javax.jdo.annotations.Persistent; import javax.jdo.annotations.PrimaryKey; import javax.xml.bind.annotation.XmlRootElement; import com.google.appengine.api.datastore.Key; @PersistenceCa...
package soma.rest.model; import javax.jdo.annotations.IdGeneratorStrategy; import javax.jdo.annotations.PersistenceCapable; import javax.jdo.annotations.Persistent; import javax.jdo.annotations.PrimaryKey; import com.google.appengine.api.datastore.Key; @PersistenceCapable public class Singer { @PrimaryKey @Pers...
package soma.rest.model; import java.io.Serializable; import javax.jdo.annotations.IdGeneratorStrategy; import javax.jdo.annotations.IdentityType; import javax.jdo.annotations.PersistenceCapable; import javax.jdo.annotations.Persistent; import javax.jdo.annotations.PrimaryKey; @PersistenceCapable(identityType = Ide...
package soma.rest.training.jerseySpringJDO.dao; import java.util.Collection; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.annotation.Resource; import javax.jdo.PersistenceManager; import javax.jdo.PersistenceManagerFactory; import javax.jdo.Query; import org.springframework.bea...
package soma.rest.training.jerseySpringJDO.dao; import java.util.Collection; import java.util.Date; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.annotation.Resource; import javax.jdo.PersistenceManager; import javax.jdo.PersistenceManagerFactory; import javax.jdo.Query; import ...
package soma.rest.training.jerseySpringJDO.server; import java.util.ArrayList; import java.util.Collection; import java.util.List; import javax.jdo.Extent; import javax.jdo.JDOHelper; import javax.jdo.PersistenceManager; import javax.jdo.PersistenceManagerFactory; import soma.rest.training.jerseySpringJDO.model.Mes...
package soma.rest.training.jerseySpringJDO.model; public class Demo { private String test; @Override public String toString() { return "Demo [test=" + test + "]"; } }
package soma.rest.training.jerseySpringJDO.model; import java.io.Serializable; import javax.jdo.annotations.IdGeneratorStrategy; import javax.jdo.annotations.IdentityType; import javax.jdo.annotations.PersistenceCapable; import javax.jdo.annotations.Persistent; import javax.jdo.annotations.PrimaryKey; @PersistenceC...
package com.swm.julie.rest.web; import java.io.IOException; import java.util.Collection; import javax.servlet.RequestDispatcher; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; impo...
package com.swm.julie.rest.server; import java.util.ArrayList; import java.util.Collection; import java.util.List; import javax.jdo.Extent; import javax.jdo.JDOHelper; import javax.jdo.PersistenceManager; import javax.jdo.PersistenceManagerFactory; import com.swm.julie.rest.model.Message; public clas...
package com.swm.julie.rest.model; import java.io.Serializable; import javax.jdo.annotations.IdGeneratorStrategy; import javax.jdo.annotations.IdentityType; import javax.jdo.annotations.PersistenceCapable; import javax.jdo.annotations.Persistent; import javax.jdo.annotations.PrimaryKey; @PersistenceCapabl...
package taewanme.gae.bookmark.resource; import java.awt.print.Book; import java.util.Date; import javax.swing.LookAndFeel; import javax.ws.rs.Consumes; import javax.ws.rs.DefaultValue; import javax.ws.rs.GET; import javax.ws.rs.HeaderParam; import javax.ws.rs.POST; import javax.ws.rs.Path; import javax.ws.rs.PathPara...
package taewanme.gae.bookmark.resource; import javax.annotation.Resource; import javax.ws.rs.Consumes; import javax.ws.rs.GET; import javax.ws.rs.POST; import javax.ws.rs.Path; import javax.ws.rs.PathParam; import javax.ws.rs.Produces; import javax.ws.rs.core.MediaType; import org.springframework.beans.factory.annota...
package taewanme.gae.bookmark.service; import java.util.ArrayList; import java.util.Date; import java.util.List; import javax.annotation.Resource; import org.springframework.stereotype.Component; import com.google.appengine.api.datastore.Key; import taewanme.gae.bookmark.dao.BookmarkDaoJDOImpl; import taewanme.gae...
package taewanme.gae.bookmark.service; import javax.annotation.Resource; import org.springframework.stereotype.Component; import taewanme.gae.bookmark.dao.UserDaoJDOImpl; import taewanme.gae.bookmark.model.User; @Component("userService") public class UserServiceImpl { @Resource private UserDaoJDOImpl userDao; ...
package taewanme.gae.bookmark.dao; import java.util.Date; import javax.jdo.JDOObjectNotFoundException; import javax.jdo.PersistenceManager; import javax.jdo.PersistenceManagerFactory; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.sp...
package taewanme.gae.bookmark.dao; import javax.jdo.PersistenceManager; import javax.jdo.PersistenceManagerFactory; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Repository; import taewanme.gae.bookmark.mo...
package taewanme.gae.bookmark.server; import java.util.ArrayList; import java.util.Collection; import java.util.List; import javax.jdo.Extent; import javax.jdo.JDOHelper; import javax.jdo.PersistenceManager; import javax.jdo.PersistenceManagerFactory; import org.springframework.web.context.support.WebApplicationCon...
package taewanme.gae.bookmark.model; import java.io.Serializable; import javax.jdo.annotations.IdGeneratorStrategy; import javax.jdo.annotations.PersistenceCapable; import javax.jdo.annotations.Persistent; import javax.jdo.annotations.PrimaryKey; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind....
package taewanme.gae.bookmark.model; import java.io.Serializable; import java.util.Date; import java.util.List; import javax.jdo.annotations.Extension; import javax.jdo.annotations.IdGeneratorStrategy; import javax.jdo.annotations.PersistenceCapable; import javax.jdo.annotations.Persistent; import javax.jdo.annotatio...
package taewanme.gae.bookmark.model; import java.io.Serializable; import javax.jdo.annotations.IdGeneratorStrategy; import javax.jdo.annotations.IdentityType; import javax.jdo.annotations.PersistenceCapable; import javax.jdo.annotations.Persistent; import javax.jdo.annotations.PrimaryKey; import javax.xml.bind.annot...
package soma.maventest.dao; import java.util.List; import javax.persistence.EntityManager; import javax.persistence.PersistenceContext; import soma.maventest.model.Person; import org.springframework.stereotype.Repository; import org.springframework.transaction.annotation.Transactional; @Repository public class Pers...
package soma.maventest.controller; import java.util.List; import soma.maventest.dao.PersonDao; import soma.maventest.model.Person; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.spring...
package soma.maventest.controller; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; /** * Sample ...
package soma.maventest.controller; import java.util.ArrayList; import java.util.List; import javax.persistence.EntityManager; import javax.persistence.PersistenceContext; import soma.maventest.model.Person; import org.springframework.context.annotation.Scope; import org.springframework.stereotype.Component; @Compon...
import javax.swing.JOptionPane; public class Calculator { public static void main(String[] args) { String num1 = ""; num1 += 1; num1=JOptionPane.showInputDialog(null,"Please Enter a value" ); int a = Integer.parseInt(num1); if(a%2==0){ JOptionPane.showMessageDialog(null, "The Value is ...
/* * ------------------------------------------ * Universidad Distrital Francisco Jose de Caldas * Facultad de Ingenieria * Proyecto curricular de Ingenieria de Sistemas * * UsuarioNuevo.java * * Proyecto de primer corte de Programacion Avanzada * Presentado por: * Juan Pablo Moreno Rico - 20111020059 * ...
/* * ------------------------------------------ * Universidad Distrital Francisco Jose de Caldas * Facultad de Ingenieria * Proyecto curricular de Ingenieria de Sistemas * * UsuarioExistente.java * * Proyecto de primer corte de Programacion Avanzada * Presentado por: * Juan Pablo Moreno Rico - 20111020059...
/* * ------------------------------------------ * Universidad Distrital Francisco Jose de Caldas * Facultad de Ingenieria * Proyecto curricular de Ingenieria de Sistemas * * Administrador.java * * Proyecto de primer corte de Programacion Avanzada * Presentado por: * Juan Pablo Moreno Rico - 2011...
/* * ------------------------------------------ * Universidad Distrital Francisco Jose de Caldas * Facultad de Ingenieria * Proyecto curricular de Ingenieria de Sistemas * * Usuario.java * * Proyecto de primer corte de Programacion Avanzada * Presentado por: * Juan Pablo Moreno Rico - 20111020059 * Ander...
/* * ------------------------------------------ * Universidad Distrital Francisco Jose de Caldas * Facultad de Ingenieria * Proyecto curricular de Ingenieria de Sistemas * * MenuAdmin.java * * Proyecto de primer corte de Programacion Avanzada * Presentado por: * Juan Pablo Moreno Rico - 20111020...