code
stringlengths
3
1.18M
language
stringclasses
1 value
package cz.anime.ppro.repositories; import org.springframework.data.jpa.repository.JpaRepository; import cz.anime.ppro.model.Notification; public interface NotificationRepository extends JpaRepository<Notification, Integer> { }
Java
package cz.anime.ppro.repositories; import java.util.List; import org.springframework.data.jpa.repository.JpaRepository; import cz.anime.ppro.model.Comment; public interface CommentRepository extends JpaRepository<Comment, Integer> { public List<Comment> findCommentByContentId(int id); public Comm...
Java
package cz.anime.ppro.repositories; import java.util.List; import org.springframework.data.jpa.repository.JpaRepository; import cz.anime.ppro.model.Attendant; public interface AttendantRepository extends JpaRepository<Attendant,Integer> { public List<Attendant> findAttendantByEventId(int id); ...
Java
package cz.anime.ppro.repositories; import java.util.List; import org.springframework.data.jpa.repository.JpaRepository; import cz.anime.ppro.model.Content; public interface ContentRepository extends JpaRepository<Content, Integer> { public Content findContentById(int id); public List<Content> find...
Java
package cz.anime.ppro.repositories; import org.springframework.data.jpa.repository.JpaRepository; import cz.anime.ppro.model.Webuser; public interface UserRepository extends JpaRepository<Webuser, Integer>{ public Webuser findWebuserById(int id); public Webuser findWebuserByNick(String nick); }
Java
package cz.anime.ppro.repositories; import java.util.List; import org.springframework.data.jpa.repository.JpaRepository; import cz.anime.ppro.model.Message; public interface MessageRepository extends JpaRepository<Message, Integer> { public List<Message> findMessageByWebuser1Id(int id); public Lis...
Java
package cz.anime.ppro.repositories; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.Query; import org.springframework.data.repository.query.Param; import cz.anime.ppro.model.Fragment; public interface FragmentRepository extends JpaRepository<Fragme...
Java
package org.persistence.repositories; import model.Attendant; import org.springframework.data.jpa.repository.JpaRepository; public interface AttendantRepository extends JpaRepository<Attendant,Integer> { }
Java
package org.persistence.repositories; import model.Webuser; import org.springframework.data.jpa.repository.JpaRepository; public interface UserRepository extends JpaRepository<Webuser, Integer>{ }
Java
package net.srcz.android.screencast; import java.io.IOException; import net.srcz.android.screencast.api.injector.Injector; import net.srcz.android.screencast.app.SwingApplication; import net.srcz.android.screencast.ui.JDialogDeviceList; import net.srcz.android.screencast.ui.JFrameMain; import net.srcz.android...
Java
package net.srcz.android.screencast.app; import java.io.PrintWriter; import java.io.StringWriter; import javax.swing.SwingUtilities; import javax.swing.UIManager; import net.srcz.android.screencast.ui.JDialogError; public class SwingApplication extends Application { JDialogError jd = null; public SwingApplicati...
Java
package net.srcz.android.screencast.app; import java.lang.Thread.UncaughtExceptionHandler; public class Application { public Application() { Runtime.getRuntime().addShutdownHook(new Thread() { public void run() { close(); } }); Thread.setDefaultUncaughtExceptionHandler(new UncaughtExceptionHandler()...
Java
package net.srcz.android.screencast.ui; import java.awt.BorderLayout; import javax.swing.BorderFactory; import javax.swing.ImageIcon; import javax.swing.JLabel; import javax.swing.JWindow; public class JSplashScreen extends JWindow { JLabel label = new JLabel("Loading...", new ImageIcon(JFrameMain.cl...
Java
package net.srcz.android.screencast.ui; import java.awt.BorderLayout; import java.awt.Dimension; import java.awt.KeyEventDispatcher; import java.awt.KeyboardFocusManager; import java.awt.Point; import java.awt.Toolkit; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.e...
Java
package net.srcz.android.screencast.ui.pm; public class JFrameApps { }
Java
package net.srcz.android.screencast.ui; import java.awt.Dimension; import java.awt.Graphics; import java.awt.Image; import java.awt.Point; import javax.swing.JPanel; public class JPanelScreen extends JPanel { public float coef = 1; double origX; double origY; boolean landscape; Dimension size...
Java
package net.srcz.android.screencast.ui; import java.awt.BorderLayout; import java.awt.Dimension; import java.awt.FlowLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import javax.swing.BorderFactory; import javax.swi...
Java
package net.srcz.android.screencast.ui.explorer; import java.awt.event.ActionEvent; import java.awt.event.KeyEvent; import java.util.Iterator; import java.util.Vector; import java.util.concurrent.ExecutionException; import javax.swing.AbstractAction; import javax.swing.Action; import javax.swing.JTree; import javax.s...
Java
package net.srcz.android.screencast.ui.explorer; import java.awt.BorderLayout; import java.awt.Desktop; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import java.io.File; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import java.util.Vector; import javax.swing.JF...
Java
package net.srcz.android.screencast.ui.explorer; import javax.swing.tree.DefaultMutableTreeNode; public abstract class LazyMutableTreeNode extends DefaultMutableTreeNode { protected boolean _loaded = false; public LazyMutableTreeNode() { super(); } public LazyMutableTreeNode(Object userObject) { super(user...
Java
package net.srcz.android.screencast.ui; import java.awt.Dimension; import java.awt.FontMetrics; import java.awt.Graphics; import java.awt.Rectangle; import java.util.StringTokenizer; import javax.swing.Icon; import javax.swing.JComponent; import javax.swing.JLabel; import javax.swing.SwingConstants; impor...
Java
package net.srcz.android.screencast.ui; import java.awt.BorderLayout; import java.io.PrintWriter; import java.io.StringWriter; import javax.swing.JDialog; import javax.swing.JTextArea; public class JDialogError extends JDialog { public JDialogError(Throwable ex) { getRootPane().setLayout(new BorderLa...
Java
package net.srcz.android.screencast.ui.worker; /* * $Id: AccumulativeRunnable.java,v 1.3 2008/07/25 19:32:29 idk Exp $ * * Copyright � 2005 Sun Microsystems, Inc. All rights * reserved. Use is subject to license terms. */ import java.util.*; import javax.swing.SwingUtilities; /** * An abstract cla...
Java
/* * $Id: SwingWorker.java,v 1.6 2008/07/25 19:32:29 idk Exp $ * * Copyright � 2005 Sun Microsystems, Inc. All rights * reserved. Use is subject to license terms. */ package net.srcz.android.screencast.ui.worker; import java.beans.PropertyChangeListener; import java.beans.PropertyChangeSupport; impo...
Java
package net.srcz.android.screencast.ui; import java.awt.BorderLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JButton; import javax.swing.JDialog; import javax.swing.JTextField; public class JDialogUrl extends JDialog { JTextField jtfUrl = new JTextField(); JBut...
Java
package net.srcz.android.screencast.api; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; public class StreamUtils { public static void transfert(InputStream is, OutputStream os) { try { while(true) { int val = is.rea...
Java
package net.srcz.android.screencast.api.recording; import java.awt.image.BufferedImage; import java.awt.image.WritableRaster; import java.io.*; import java.util.Date; import java.util.LinkedList; import javax.imageio.*; import javax.imageio.stream.*; public class QuickTimeOutputStream { /** * Output stream ...
Java
package net.srcz.android.screencast.api.recording; import java.io.*; import javax.imageio.stream.ImageOutputStream; public class FilterImageOutputStream extends FilterOutputStream { private ImageOutputStream imgOut; public FilterImageOutputStream(ImageOutputStream iOut) { super(null); thi...
Java
package net.srcz.android.screencast.api.recording; import java.io.*; import java.util.Date; import java.util.GregorianCalendar; public class DataAtomOutputStream extends FilterOutputStream { protected static final long MAC_TIMESTAMP_EPOCH = new GregorianCalendar(1904, GregorianCalendar.JANUARY, 1).getTimeInMilli...
Java
package net.srcz.android.screencast.api.injector; import java.awt.Dimension; import java.awt.image.BufferedImage; import java.io.File; import java.io.IOException; import javax.swing.SwingUtilities; import net.srcz.android.screencast.api.recording.QuickTimeOutputStream; import com.android.ddmlib.IDevice; import com....
Java
package net.srcz.android.screencast.api.injector; import com.android.ddmlib.SyncService.ISyncProgressMonitor; public class NullSyncProgressMonitor implements ISyncProgressMonitor { public void advance(int arg0) { } public boolean isCanceled() { return false; } public void start(int arg0) { } ...
Java
package net.srcz.android.screencast.api.injector; import java.io.IOException; import java.io.OutputStream; import com.android.ddmlib.IShellOutputReceiver; public class OutputStreamShellOutputReceiver implements IShellOutputReceiver { OutputStream os; public OutputStreamShellOutputReceiver(OutputStrea...
Java
package net.srcz.android.screencast.api.injector; public class ConstEvtKey { // Field descriptor #13 I public static final int KEYCODE_UNKNOWN = 0; // Field descriptor #13 I public static final int KEYCODE_SOFT_LEFT = 1; // Field descriptor #13 I public static final int KEYCODE...
Java
package net.srcz.android.screencast.api.injector; import java.awt.event.KeyEvent; public class KeyCodeConverter { public static int getKeyCode(KeyEvent e) { char c = e.getKeyChar(); int code = 0; if(Character.isLetter(c)) code = ConstEvtKey.KEYCODE_A + (Character.toLowerCase(c)-'a'); if(Charac...
Java
package net.srcz.android.screencast.api.injector; import java.io.File; import java.io.IOException; import java.io.OutputStream; import java.net.Socket; import java.net.UnknownHostException; import net.srcz.android.screencast.api.AndroidDevice; import net.srcz.android.screencast.api.StreamUtils; import com...
Java
package net.srcz.android.screencast.api.injector; public class ConstEvtMotion { // Field descriptor #10 I public static final int ACTION_DOWN = 0; // Field descriptor #10 I public static final int ACTION_UP = 1; // Field descriptor #10 I public static final int ACTION_MOVE = 2; ...
Java
package net.srcz.android.screencast.api.file; import java.io.File; import net.srcz.android.screencast.api.AndroidDevice; public class FileInfo { public AndroidDevice device; public String path; public String attribs; public boolean directory; public String name; public File downloadTemporary() { try { ...
Java
package net.srcz.android.screencast.api; import java.io.ByteArrayOutputStream; import java.io.File; import java.lang.reflect.Method; import java.util.List; import java.util.Vector; import net.srcz.android.screencast.api.file.FileInfo; import net.srcz.android.screencast.api.injector.NullSyncProgressMonitor; import net...
Java
package net.srcz.android.screencast.client; import java.io.IOException; import java.net.ServerSocket; import java.net.Socket; public class Main { static boolean debug = false; int port; public Main(int port, boolean debug) { this.port = port; this.debug = debug; } public void exe...
Java
package net.srcz.android.screencast.client; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.OutputStream; import java.net.Socket; import android.os.IBinder; import android.os.RemoteException; import android.os.ServiceMa...
Java
package com.sakasu; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.util.ArrayList; import java.util.Random; import java.util.Timer; import java.util.TimerTask; import org.apache.http.HttpEntity; import org.apache.http.HttpResponse; import org.apache.http.client.ClientProtocolException; ...
Java
package com.sakasu; import java.io.IOException; import java.util.ArrayList; import java.util.Random; import java.util.Timer; import java.util.TimerTask; import java.util.regex.Matcher; import java.util.regex.Pattern; import org.apache.http.HttpEntity; import org.apache.http.HttpResponse; import org.apache.http.client...
Java
package com.sakasu; import java.util.ArrayList; import org.xml.sax.Attributes; import org.xml.sax.ContentHandler; import org.xml.sax.Locator; import org.xml.sax.SAXException; import com.sakasu.MyLauncherActivity.Quote; /** * for brainy quotes. * * @author sakasu * */ public class QuoteCont...
Java
package com.googlecode.gwtgae2011.client; public class NameTokens { public static final String SKETCH = "sketch"; public static final String LIST = "list"; }
Java
/** * Copyright 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
Java
/** * Copyright 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
Java
/** * Copyright 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
Java
package com.googlecode.gwtgae2011.client.main; import java.util.List; import com.google.gwt.requestfactory.shared.Receiver; import com.google.gwt.view.client.AsyncDataProvider; import com.google.gwt.view.client.HasData; import com.google.gwt.view.client.Range; import com.google.inject.Inject; import com.goog...
Java
/** * Copyright 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
Java
package com.googlecode.gwtgae2011.client.main; import com.google.gwt.cell.client.FieldUpdater; import com.google.inject.Inject; import com.google.inject.Provider; import com.googlecode.gwtgae2011.shared.proxy.SketchProxy; import com.googlecode.gwtgae2011.shared.service.GwtGae2011RequestFactory.SketchRequest; ...
Java
package com.googlecode.gwtgae2011.client.main; import com.google.gwt.event.shared.EventBus; import com.google.gwt.user.cellview.client.Column; import com.google.gwt.view.client.HasData; import com.google.gwt.view.client.RangeChangeEvent; import com.google.inject.Inject; import com.googlecode.gwtgae2011.client.N...
Java
package com.googlecode.gwtgae2011.client.main; import java.util.Date; import com.gwtplatform.mvp.client.ViewImpl; import com.google.gwt.cell.client.DateCell; import com.google.gwt.cell.client.EditTextCell; import com.google.gwt.uibinder.client.UiBinder; import com.google.gwt.uibinder.client.UiField; import c...
Java
/** * Copyright 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
Java
/** * Copyright 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
Java
package com.googlecode.gwtgae2011.client.main; import java.util.ArrayList; import java.util.List; import javax.inject.Inject; import com.google.gwt.canvas.client.Canvas; import com.google.gwt.canvas.dom.client.Context2d; import com.google.gwt.core.client.Scheduler; import com.google.gwt.core.client.Schedul...
Java
/** * Copyright 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
Java
/** * Copyright 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
Java
package com.googlecode.gwtgae2011.client.cell; import com.google.gwt.cell.client.AbstractCell; import com.google.gwt.safehtml.shared.SafeHtmlBuilder; import com.googlecode.gwtgae2011.client.NameTokens; /** * A custom cell that links to the specified URL. */ public class LinkCell extends AbstractCell<Long> ...
Java
package com.googlecode.gwtgae2011.shared.service; import java.util.List; import com.google.gwt.requestfactory.shared.Request; import com.google.gwt.requestfactory.shared.RequestContext; import com.google.gwt.requestfactory.shared.RequestFactory; import com.google.gwt.requestfactory.shared.Service; import com....
Java
package com.googlecode.gwtgae2011.shared; import java.io.Serializable; import java.util.ArrayList; import java.util.List; import com.google.gwt.requestfactory.shared.RequestContext; import com.googlecode.gwtgae2011.shared.proxy.PointProxy; import com.googlecode.gwtgae2011.shared.proxy.StrokeProxy; import com...
Java
/** * Copyright 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
Java
/** * Copyright 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
Java
/** * Copyright 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
Java
/** * Copyright 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
Java
/** * Copyright 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
Java
/** * Copyright 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
Java
/** * Copyright 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
Java
package com.googlecode.gwtgae2011.server.service; import java.lang.reflect.Field; import java.lang.reflect.Modifier; import java.lang.reflect.ParameterizedType; import java.util.Collection; import java.util.List; import java.util.Map; import javax.persistence.Embedded; import javax.persistence.Transient; ...
Java
package com.googlecode.gwtgae2011.server.service; import java.util.List; import com.google.appengine.api.datastore.EntityNotFoundException; import com.googlecode.gwtgae2011.server.domain.Sketch; import com.googlecode.gwtgae2011.shared.Stroke; /** * @author turbomanage */ public class SketchDao extends O...
Java
/** * Copyright 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
Java
package com.googlecode.gwtgae2011.server.locator; import com.google.gwt.requestfactory.shared.Locator; import com.googlecode.gwtgae2011.server.domain.DatastoreObject; import com.googlecode.objectify.helper.DAOBase; /** * Generic @Locator for objects that extend DatastoreObject */ public class ObjectifyLoca...
Java
package com.googlecode.gwtgae2011.server.locator; import com.google.gwt.requestfactory.shared.ServiceLocator; /** * Generic locator service that can be referenced in the @Service annotation * for any RequestFactory service stub */ public class DaoServiceLocator implements ServiceLocator { @Overr...
Java
/** * Copyright 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
Java
package com.googlecode.gwtgae2011.server.domain; import javax.persistence.Id; import javax.persistence.PrePersist; public class DatastoreObject { @Id private Long id = null; private Integer version = 0; /** * Auto-increment version # whenever persisted */ @PrePersist void onPersist()...
Java
/** * Copyright 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
Java
package com.pi.test; public class Mach { public int add(int x,int y){ return x+y; } }
Java
package com.pi.test; import java.sql.Connection; import java.sql.DriverManager; //import java.util.Date; public class testConnection { private static final String DbDriver="com.mysql.jdbc.Driver"; private static final String DbUrl="jdbc:mysql://localhost:3306/publish_information"; private static final St...
Java
package anjos.rn; import anjos.dao.GenericDAO; import anjos.modelo.Localizacao; import java.util.List; public class LocalizacaoRN { private final GenericDAO dao = new GenericDAO(); public Localizacao novo() { return new Localizacao(); } public boolean salvar(Localizacao c) { ...
Java
package anjos.rn; import anjos.dao.GenericDAO; import anjos.modelo.Responsavel; import java.util.List; public class ResponsavelRN { private final GenericDAO dao = new GenericDAO(); public Responsavel novo() { return new Responsavel(); } public boolean salvar(Responsavel c) { ...
Java
package anjos.rn; import anjos.dao.GenericDAO; import anjos.modelo.AnjoEvento; //import anjos.modelo.AnjoEventoPK; import anjos.dao.AnjoEventoDAO; import anjos.modelo.Evento; import java.util.List; public class AnjoEventoRN { private final GenericDAO dao = new GenericDAO(); private final AnjoEven...
Java
package anjos.rn; import anjos.dao.GenericDAO; import anjos.modelo.Anjo; import anjos.modelo.Crianca; import java.util.List; public class AnjoRN { private final GenericDAO dao = new GenericDAO(); public Anjo novo() { return new Anjo(); } public boolean salvar(Anjo c) { ...
Java
package anjos.rn; import anjos.dao.GenericDAO; import anjos.modelo.Evento; import java.util.List; public class EventoRN { private final GenericDAO dao = new GenericDAO(); public Evento novo() { return new Evento(); } public boolean salvar(Evento c) { if (c...
Java
package anjos.rn; import anjos.dao.GenericDAO; import anjos.modelo.Crianca; import anjos.modelo.Evento; import anjos.modelo.Responsavel; import java.util.List; import javax.faces.model.SelectItem; public class CriancaRN { private final GenericDAO dao = new GenericDAO(); public Crianca novo() { ...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package anjos.util; import java.util.ArrayList; import java.util.List; import javax.faces.model.SelectItem; /** * * @author adam */ public class SelectItemUtil { private List<SelectItem> lista; ...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package anjos.util; import java.util.HashMap; import java.util.List; import java.util.Map; public class DadosImpressao { private List listagem; private Map parametros = new HashMap(); private String arqu...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package anjos.util; import java.io.ByteArrayOutputStream; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.math.BigDecimal; import java.math.BigInteger; import java.math.Round...
Java
package anjos.bean; import anjos.modelo.Anjo; import anjos.rn.AnjoRN; import java.util.List; import javax.faces.bean.ManagedBean; import javax.faces.bean.ViewScoped; @ManagedBean @ViewScoped public class AnjoBean { private Anjo anjo; private AnjoRN anjoRN = new AnjoRN(); private List<Anjo> ...
Java
package anjos.bean; import anjos.dao.GenericDAO; import anjos.modelo.Anjo; import anjos.modelo.AnjoEvento; import anjos.modelo.AnjoEventoPK; import anjos.modelo.Evento; import anjos.rn.AnjoRN; import anjos.rn.EventoRN; import java.util.ArrayList; import java.util.List; import javax.faces.bean.ManagedBean; ...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package anjos.bean; import java.text.DateFormat; import java.util.Date; import java.util.Enumeration; import java.util.List; import java.util.Map; import javax.faces.application.FacesMessage; import javax.fa...
Java
package anjos.bean; import anjos.modelo.Crianca; import anjos.rn.CriancaRN; import java.util.List; import javax.faces.bean.ManagedBean; import javax.faces.bean.ViewScoped; import javax.faces.model.SelectItem; @ManagedBean @ViewScoped public class CriancaBean { private Crianca crianca; private C...
Java
package anjos.bean; import anjos.dao.GenericDAO; import anjos.modelo.Evento; import anjos.modelo.Responsavel; import anjos.rn.ResponsavelRN; import java.util.List; import javax.faces.bean.ManagedBean; import javax.faces.bean.ViewScoped; @ManagedBean @ViewScoped public class ResponsavelBean { p...
Java
package anjos.servlet; /* * To change this template, choose Tools | Templates * and open the template in the editor. */ import anjos.modelo.AnjoEvento; import anjos.modelo.Crianca; import anjos.modelo.Evento; import java.io.IOException; import java.io.OutputStreamWriter; import java.io.PrintWriter; import javax.ser...
Java
/* * Decimal.java * * Created on 19 de Novembro de 2007, 17:09 * * To change this template, choose Tools | Template Manager * and open the template in the editor. */ package anjos.conversores; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; import java.util.logging.Log...
Java
/* * Decimal.java * * Created on 19 de Novembro de 2007, 17:09 * * To change this template, choose Tools | Template Manager * and open the template in the editor. */ package anjos.conversores; import java.text.NumberFormat; import java.util.Locale; import javax.faces.component.UIComponent; import javax.faces.co...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package anjos.conversores; import anjos.dao.GenericDAO; import anjos.modelo.Anjo; import javax.faces.component.UIComponent; import javax.faces.context.FacesContext; import javax.faces.convert.Converter; import javax.fac...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package anjos.conversores; import anjos.dao.GenericDAO; import anjos.modelo.Crianca; import javax.faces.component.UIComponent; import javax.faces.context.FacesContext; import javax.faces.convert.Converter; import javax....
Java
/* * Decimal.java * * Created on 19 de Novembro de 2007, 17:09 * * To change this template, choose Tools | Template Manager * and open the template in the editor. */ package anjos.conversores; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; import javax.faces.component...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package anjos.conversores; /** * * @author AlanmLira */ import anjos.modelo.Evento; import anjos.rn.EventoRN; import javax.faces.component.UIComponent; import javax.faces.context.FacesContext; import javax.faces.co...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package anjos.conversores; /** * * @author AlanmLira */ import anjos.modelo.Responsavel; import anjos.rn.ResponsavelRN; import javax.faces.component.UIComponent; import javax.faces.context.FacesContext; import java...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package anjos.dao; import anjos.modelo.AnjoEvento; import anjos.modelo.AnjoEventoPK; import anjos.modelo.Evento; import java.util.List; import javax.persistence.EntityManager; import javax.persistence.Query; /** * * ...
Java