text stringlengths 3 1.18M |
|---|
package org.dodgybits.shuffle.gwt.core;
import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.uibinder.client.UiHandler;
import com.google.gwt.user.client.ui.B... |
package org.dodgybits.shuffle.gwt.core;
import com.google.gwt.core.client.GWT;
import com.google.gwt.event.shared.EventBus;
import com.google.inject.Inject;
import com.gwtplatform.mvp.client.HasUiHandlers;
import com.gwtplatform.mvp.client.PresenterWidget;
import com.gwtplatform.mvp.client.View;
import com.gwt... |
package org.dodgybits.shuffle.gwt.core;
import com.google.gwt.event.shared.EventBus;
import com.google.gwt.event.shared.GwtEvent.Type;
import com.google.inject.Inject;
import com.gwtplatform.mvp.client.Presenter;
import com.gwtplatform.mvp.client.View;
import com.gwtplatform.mvp.client.annotations.ContentSlot;
... |
package org.dodgybits.shuffle.gwt.core;
import com.google.gwt.core.client.GWT;
import com.google.gwt.event.shared.EventBus;
import com.google.inject.Inject;
import com.google.inject.Provider;
import com.google.web.bindery.requestfactory.shared.Receiver;
import com.google.web.bindery.requestfactory.shared.Reques... |
package org.dodgybits.shuffle.gwt.core;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.user.client.ui.Widget;
import com.google.inject.Inject;
import com.gwtplatform.mvp.client.ViewImpl;
public class ErrorView extends ViewImpl implements ErrorPresenter.MyView {
private final Widget w... |
package org.dodgybits.shuffle.gwt.core;
import com.gwtplatform.mvp.client.UiHandlers;
public interface EditEntityUiHandlers extends UiHandlers {
void save(String description, String details);
void cancel();
void previous();
void next();
}
|
package org.dodgybits.shuffle.gwt.core;
import com.google.gwt.event.shared.EventBus;
import com.google.inject.Inject;
import com.gwtplatform.mvp.client.Presenter;
import com.gwtplatform.mvp.client.View;
import com.gwtplatform.mvp.client.annotations.NameToken;
import com.gwtplatform.mvp.client.annotations.ProxyC... |
package org.dodgybits.shuffle.gwt.cursor;
import com.google.gwt.event.shared.EventBus;
import com.google.inject.Inject;
import com.google.inject.Provider;
import com.google.web.bindery.requestfactory.shared.EntityProxyChange;
import com.google.web.bindery.requestfactory.shared.EntityProxyId;
import com.google.web.bind... |
package org.dodgybits.shuffle.gwt.cursor;
import com.google.gwt.event.shared.EventBus;
import com.google.inject.Inject;
import com.google.inject.Provider;
import com.google.web.bindery.requestfactory.shared.EntityProxyChange;
import com.google.web.bindery.requestfactory.shared.EntityProxyId;
import com.google.web.bind... |
package org.dodgybits.shuffle.gwt.cursor;
import com.google.gwt.core.client.GWT;
import com.google.gwt.event.shared.EventBus;
import com.google.gwt.util.tools.shared.StringUtils;
import com.google.gwt.view.client.AsyncDataProvider;
import com.google.gwt.view.client.HasData;
import com.google.gwt.view.client.Range;
imp... |
package org.dodgybits.shuffle.gwt.cursor;
import com.google.common.base.Function;
import com.google.common.collect.ArrayListMultimap;
import com.google.common.collect.ListMultimap;
import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
import com.google.gwt.core.client.GWT;
import com.google.in... |
/*
* 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 i... |
package org.dodgybits.shuffle.server.service;
import com.google.common.collect.Lists;
import com.google.common.collect.Sets;
import com.googlecode.objectify.Key;
import com.googlecode.objectify.NotFoundException;
import com.googlecode.objectify.Query;
import org.dodgybits.shuffle.server.model.*;
import org.dodgybits.s... |
package org.dodgybits.shuffle.server.service;
import com.google.common.collect.Lists;
import org.dodgybits.shuffle.server.model.TaskQuery;
import org.dodgybits.shuffle.server.model.WatchedContext;
import org.dodgybits.shuffle.server.model.WatchedProject;
import org.dodgybits.shuffle.server.model.WatchedTask;
import j... |
package org.dodgybits.shuffle.server.service;
import com.googlecode.objectify.Key;
import com.googlecode.objectify.Query;
import org.dodgybits.shuffle.server.model.*;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
public class ProjectService {
private static final Logger ... |
package org.dodgybits.shuffle.server.service;
import com.googlecode.objectify.ObjectifyOpts;
import java.util.ConcurrentModificationException;
import java.util.logging.Level;
import java.util.logging.Logger;
public class TransactionalObjectifyDao<T> extends ObjectifyDao<T> {
private static final Logger log = Lo... |
package org.dodgybits.shuffle.server.service;
import org.dodgybits.shuffle.server.model.*;
import java.util.List;
/**
* Combine task, context and project services into one
* client facing interface. This makes it possible to chain
* multiple requests in a single call using RequestFactory.
*/
public class EntityS... |
package org.dodgybits.shuffle.server.service;
import com.googlecode.objectify.Key;
import com.googlecode.objectify.Query;
import org.dodgybits.shuffle.server.model.AppUser;
import org.dodgybits.shuffle.server.model.WatchedContext;
import java.util.Arrays;
import java.util.List;
import java.util.logging.Level;
import ... |
package org.dodgybits.shuffle.server.service;
import com.googlecode.objectify.Key;
import com.googlecode.objectify.ObjectifyOpts;
import com.googlecode.objectify.ObjectifyService;
import com.googlecode.objectify.Query;
import com.googlecode.objectify.util.DAOBase;
import org.dodgybits.shuffle.server.model.*;
i... |
package org.dodgybits.shuffle.server.service;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.dodgybits.shuffle.server.model.AppUser;
import org.dodgybits.shuffle.server.servlet.AuthFilter;
import com.google.appengine.api.users.UserService;
import com.google.ap... |
package org.dodgybits.shuffle.server.service;
import com.googlecode.objectify.Query;
import org.dodgybits.shuffle.server.model.AppUser;
import org.dodgybits.shuffle.server.model.TaskQuery;
import org.dodgybits.shuffle.shared.PredefinedQuery;
import java.util.List;
import java.util.logging.Level;
import java.util.logg... |
/*
* Copyright 2010 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 i... |
package org.dodgybits.shuffle.server.servlet;
import com.google.web.bindery.requestfactory.server.ExceptionHandler;
import com.google.web.bindery.requestfactory.server.RequestFactoryServlet;
import com.google.web.bindery.requestfactory.shared.ServerFailure;
import java.util.logging.Level;
import java.util.logging.Log... |
package org.dodgybits.shuffle.server.servlet;
import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
import com.googlecode.objectify.Key;
import org.apache.commons.fileupload.FileItemIterator;
import org.apache.commons.fileupload.FileItemStream;
import org.apache.commons.fileupload.FileUploadEx... |
/*
* Copyright 2010 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 in... |
/*
* 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 i... |
/*
* 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 i... |
/*
* 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 i... |
package org.dodgybits.shuffle.server.locator;
public class TaskLocator extends ObjectifyLocator {
}
|
package org.dodgybits.shuffle.server.locator;
import com.google.web.bindery.requestfactory.shared.Locator;
import com.googlecode.objectify.util.DAOBase;
import org.dodgybits.shuffle.server.model.DatastoreObject;
/**
* Generic @Locator for objects that extend DatastoreObject
*/
public class ObjectifyLocator extends ... |
package org.dodgybits.shuffle.server.locator;
import com.google.web.bindery.requestfactory.shared.ServiceLocator;
/**
* Generic locator service that can be referenced in the @Service annotation
* for any RequestFactory service stub
*/
public class DaoServiceLocator implements ServiceLocator {
@Override
public ... |
/*
* 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 i... |
/*
* 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 i... |
package org.dodgybits.shuffle.server.model;
import javax.persistence.Transient;
public class WatchedProject extends Project {
@Transient
private boolean activeChanged = false;
@Transient
private boolean deletedChanged = false;
@Transient
private boolean parallelChanged = false;
@Override... |
package org.dodgybits.shuffle.server.model;
import com.googlecode.objectify.Key;
import com.googlecode.objectify.annotation.Entity;
import com.googlecode.objectify.annotation.Indexed;
import com.googlecode.objectify.annotation.NotSaved;
import com.googlecode.objectify.annotation.Unindexed;
import com.googlecode.object... |
package org.dodgybits.shuffle.server.model;
import javax.persistence.Id;
import javax.persistence.PrePersist;
public class DatastoreObject
{
@Id
private Long id;
private Integer version = 0;
/**
* Auto-increment version # whenever persisted
*/
@PrePersist
void onPersist()
{
this.version++;
}
public ... |
package org.dodgybits.shuffle.server.model;
import com.googlecode.objectify.Key;
import com.googlecode.objectify.annotation.Indexed;
import org.dodgybits.shuffle.server.service.ObjectifyDao;
public class UserDatastoreObject extends DatastoreObject {
@Indexed
private Key<AppUser> owner;
public AppUser ge... |
package org.dodgybits.shuffle.server.model;
import com.googlecode.objectify.Key;
import com.googlecode.objectify.annotation.Indexed;
import com.googlecode.objectify.annotation.NotSaved;
import com.googlecode.objectify.condition.IfDefault;
import javax.persistence.Transient;
import java.util.List;
import java.util.log... |
package org.dodgybits.shuffle.server.model;
import com.googlecode.objectify.annotation.Entity;
import com.googlecode.objectify.annotation.Indexed;
import com.googlecode.objectify.annotation.Unindexed;
import javax.persistence.PrePersist;
import java.util.Date;
@Entity
@Unindexed
public class Context extends UserData... |
package org.dodgybits.shuffle.server.model;
import javax.persistence.Transient;
public class WatchedContext extends Context {
@Transient
private boolean activeChanged = false;
@Transient
private boolean deletedChanged = false;
@Override
public void setActive(boolean active) {
if (act... |
package org.dodgybits.shuffle.server.model;
import com.google.common.base.Function;
import com.google.common.collect.Lists;
import com.googlecode.objectify.Key;
import com.googlecode.objectify.annotation.Entity;
import com.googlecode.objectify.annotation.Indexed;
import com.googlecode.objectify.annotation.NotSaved;
im... |
package org.dodgybits.shuffle.server.model;
import java.util.List;
public class TaskQueryResult {
private List<WatchedTask> mEntities;
private int mTotalCount;
private int mOffset;
public List<WatchedTask> getEntities() {
return mEntities;
}
public void setEntities(List<WatchedTask>... |
package org.dodgybits.shuffle.server.model;
import com.google.appengine.api.datastore.Text;
import com.google.common.base.Function;
import com.google.common.collect.Lists;
import com.googlecode.objectify.Key;
import com.googlecode.objectify.annotation.Entity;
import com.googlecode.objectify.annotation.Indexed;
import ... |
package org.dodgybits.shuffle.server.model;
import com.googlecode.objectify.annotation.Entity;
/**
* An application user, named with a prefix to avoid confusion with GAE User type
*/
@Entity
public class AppUser extends DatastoreObject
{
private String email;
public AppUser()
{
// No-arg constructor required ... |
package VISTA;
import java.awt.BorderLayout;
import java.awt.event.ActionListener;
import java.util.Vector;
import javax.swing.BorderFactory;
import javax.swing.ComboBoxModel;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JFrame;
import javax.swin... |
package VISTA;
import java.awt.BorderLayout;
import java.awt.event.ActionListener;
import javax.swing.BorderFactory;
import javax.swing.ComboBoxModel;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import jav... |
package VISTA;
import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JPanel;
import javax.swing.BorderFactory;
import javax.swing.JButton;
import javax.swing.WindowConstants;
import javax.swing.SwingUtilities;
import CONTROLADOR.ControladorMenuPrinci... |
package VISTA;
import java.awt.BorderLayout;
import java.awt.event.ActionListener;
import java.util.Vector;
import javax.swing.BorderFactory;
import javax.swing.ComboBoxModel;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swin... |
package VISTA;
import java.awt.BorderLayout;
import java.awt.event.ActionListener;
import java.util.Date;
import java.util.Vector;
import javax.swing.BorderFactory;
import javax.swing.ComboBoxModel;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JL... |
package VISTA;
import java.awt.BorderLayout;
import java.awt.event.ActionListener;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JRadioButton;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.BorderFactory;
import javax.swing.ButtonGroup;
import javax.swing... |
package MODELO;
import java.lang.String;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Vector;
import java.util.logging.Level;
import java.util.logging.Logger;
public class ModeloProducto extends Conexion{
private String codigo;
private String cod_c... |
package MODELO;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Vector;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JEditorPane;
public class ModeloCategoria extends Conexion{
private String codigo;
priva... |
package MODELO;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Vector;
import java.util.logging.Level;
import java.util.logging.Logger;
public class ModeloOrden extends Conexion{
private String ... |
package MODELO;
import java.sql.*;
import java.util.logging.Level;
import java.util.logging.Logger;
import MODELO.Conexion;
public class Conexion {
// La descripcion del driver de la BD
private static String driver = "org.postgresql.Driver";
// La direccion URL de la BD
private static Strin... |
package MODELO;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Vector;
import java.util.logging.Level;
import java.util.logging.Logger;
import MODELO.ModeloIngrediente;
public class ModeloIngrediente extends Conexion {
private String codigo;
privat... |
import CONTROLADOR.ControladorMenuPrincipal;
import VISTA.MenuPrincipal;
public class Principal {
public static void main(String[] args) {
new ControladorMenuPrincipal();
}
}
|
package CONTROLADOR;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.Vector;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
import javax.swing.table.TableModel;
import MODELO.ModeloCategoria;
import MODELO.ModeloIngrediente;
import VISTA.frmIngredientes;
public ... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package CONTROLADOR;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.Vector;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
import MODELO.ModeloIngrediente;
impor... |
package CONTROLADOR;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.Vector;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
import javax.swing.table.TableModel;
import MODELO.ModeloCategoria;
import VISTA.frmCategorias;
public class ControladorCategorias impleme... |
package CONTROLADOR;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.Vector;
import javax.swing.table.TableModel;
import MODELO.ModeloCategoria;
import MODELO.ModeloIngrediente;
import MODELO.ModeloProducto;
import VISTA.frmProductos;
public class ControladorProductos imple... |
package CONTROLADOR;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.Vector;
import javax.swing.table.TableModel;
import MODELO.ModeloCategoria;
import MODELO.ModeloIngrediente;
import MODELO.ModeloOrden;
import MODELO.ModeloProducto;
import VISTA.frmOrdenes;
public class C... |
package CONTROLADOR;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import VISTA.*;
public class ControladorMenuPrincipal implements ActionListener {
private MenuPrincipal frmMenuPrincipal;
public ControladorMenuPrincipal() {
this.frmMenuPrincipal = new MenuPrincipal();
this.frmMenu... |
package vn.ugame.filter;
import java.io.IOException;
import java.util.List;
import javax.servlet.*;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import vn.ugame.model.bl.ModuleManager;
import vn.ugame.model.entity.Module;
public class RequestFilter implements ... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package vn.ugame.controller;
import com.google.code.regexp.NamedMatcher;
import com.google.code.regexp.NamedPattern;
import java.io.IOException;
import javax.servlet.*;
import javax.servlet.http.HttpServletReq... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package vn.ugame.module;
import java.util.Locale;
/**
*
* @author Tony
*/
public interface ModuleConfig {
Locale getLocale();
String getName();
String getText();
String getType();
... |
package vn.ugame.module;
import com.google.code.regexp.NamedMatcher;
import com.google.code.regexp.NamedPattern;
import java.io.IOException;
import java.lang.annotation.Annotation;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import ja... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package vn.ugame.module;
import java.io.IOException;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServ... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package vn.ugame.module.store;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.OutputStream;
import javax.servlet.http.HttpServletResponse;
import vn.ugame.mode... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package vn.ugame.module.store;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servle... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package vn.ugame.module.store;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import vn.ugame.mo... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package vn.ugame.module;
/**
*
* @author Tony
*/
public class ModuleType {
public static final String STORE_ALL = "STORE ALL";
public static final String STORE_SPECIFIC = "STORE SPECIFIC";
pu... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package vn.ugame.module;
import vn.ugame.model.bl.ModuleManager;
import vn.ugame.module.store.ImageModule;
import vn.ugame.module.store.StoreModule;
/**
*
* @author Namtp
*/
public class ModuleFactory ... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package vn.ugame.module;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
*
* @author robo8590
*/
... |
package vn.ugame.module;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface ActionConfig {
String[] urlPattern()... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package vn.ugame.model.dal;
import vn.ugame.model.entity.Comment;
import vn.ugame.model.entity.Account;
import vn.ugame.model.entity.Image;
import vn.ugame.model.entity.Item;
import vn.ugame.model.entity.ItemS... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package vn.ugame.model.dal;
import java.util.ArrayList;
import java.util.List;
import java.util.Locale;
import vn.ugame.model.entity.Module;
import vn.ugame.module.ModuleType;
/**
*
* @author Tony
*/
... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package vn.ugame.model.entity;
import java.util.Locale;
/**
*
* @author Tulip
*/
public class Category {
private String id;
private String name;
private String text;
private Locale lo... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package vn.ugame.model.entity;
import java.util.Locale;
/**
*
* @author Tulip
*/
public class Language {
private Boolean current;
private String url;
private Locale locale;
public L... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package vn.ugame.model.entity;
import java.util.Locale;
public class Module implements vn.ugame.module.ModuleConfig{
private String id;
private String name;
private String text;
priv... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package vn.ugame.model.entity;
import java.util.Date;
import java.util.Locale;
/**
*
* @author Namtp
*/
public class Item {
private String id;
private Module module;
private Categor... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package vn.ugame.model.entity;
/**
*
* @author Tony
*/
public class ImageType {
public static final int ICON_64 = 1;
public static final int ICON_124 = 2;
public static final int BANNER_180_1... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package vn.ugame.model.entity;
import java.util.Date;
/**
*
* @author Tony
*/
public class Comment {
private String id;
private Item item;
private java.util.Date createdDate;
pr... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package vn.ugame.model.entity;
/**
*
* @author Tony
*/
public class Account {
private String id;
private String email;
private String username;
public String getEmail() {
re... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package vn.ugame.model.entity;
/**
*
* @author NamTp
*/
public class ItemStatus {
public static final int NONE = 0;
public static final int HOT = 1;
public static final int NEW = 2;
}
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package vn.ugame.model.entity;
/**
*
* @author Tony
*/
public class Image {
private int id;
private Item item;
private String path;
private int type;
public int getId() {
... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package vn.ugame.model.bl;
import java.util.List;
import java.util.Locale;
import vn.ugame.model.dal.StoreDA;
import vn.ugame.model.entity.Comment;
import vn.ugame.model.entity.Image;
import vn.ugame.model.en... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package vn.ugame.model.bl;
import java.util.List;
import java.util.Locale;
import vn.ugame.model.dal.ModuleDA;
import vn.ugame.model.entity.Module;
/**
*
* @author Tony
*/
public class ModuleManager {... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package vn.ugame.model.bl;
import java.util.List;
/**
*
* @author Tony
*/
public class FindResult<T> {
private List<T> result;
private int count;
private int page;
private int p... |
package com.google.code.regexp;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class NamedPattern {
private static final Pattern NAMED_GROUP_PATTERN = Pattern.compile("\\(\\?<(\\w+)>");
private Pattern pattern;
private String namedPattern... |
package com.google.code.regexp;
import java.util.List;
import java.util.Map;
import java.util.regex.MatchResult;
public interface NamedMatchResult extends MatchResult {
public List<String> orderedGroups();
public Map<String, String> namedGroups();
public String group(String groupName);
public int start(String... |
package com.google.code.regexp;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.regex.MatchResult;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class NamedMatcher implements NamedMatchResult {
private Matcher matcher... |
package vn.ugame.exception;
abstract class AbstractException extends Exception {
private int code;
public AbstractException(int code) {
this.code = code;
}
public int getCode() {
return code;
}
public void setCode(int code) {
this.code = code;
}
... |
package vn.ugame.exception;
public class InvalidEntityClass extends Exception{
public InvalidEntityClass(String message) {
super(message);
}
}
|
package vn.ugame.exception;
public class DataConnectionFailed extends Exception{
public DataConnectionFailed(String message) {
super(message);
}
}
|
package vn.ugame.exception;
public class EntityNotFound extends AbstractException{
public EntityNotFound(int code) {
super(code);
}
}
|
package vn.ugame.exception;
public class InvalidArgumentException extends AbstractException {
public InvalidArgumentException(int code) {
super(code);
}
}
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package vn.ugame.exception;
/**
*
* @author user
*/
public class ExceptionCode {
public static final int ERROR = 0;
public static final int UNIQUE_EMAIL = 1;
public static final int UNIQUE_US... |
package vn.ugame.exception;
public class UniqueValueException extends AbstractException{
public UniqueValueException(int code) {
super(code);
}
}
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package vn.ugame.utility;
/**
*
* @author user
*/
public class Imei {
private static Imei instance;
public static Imei getInstance() {
if (instance == null) {
instance = ... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package vn.ugame.utility;
import java.math.BigInteger;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.Calendar;
import java.util.Date;
import java.util.Tim... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.