text
stringlengths
3
1.18M
package cn.ccsu.android.widget; import android.content.Context; import android.util.AttributeSet; import android.util.Log; import android.view.LayoutInflater; import android.view.MotionEvent; import android.view.View; import android.view.ViewGroup; import android.view.animation.LinearInterpolator; import android.view....
/* * Copyright 2001-2004 (C) MetaStuff, Ltd. All Rights Reserved. * * This software is open source. * See the bottom of this file for the licence. * * $Id: XMPPPacketReader.java 3190 2005-12-12 15:00:46Z gato $ */ package org.dom4j.io; import org.dom4j.*; import org.jivesoftware.openfire.net.MXPars...
/* * Copyright (C) 2010 Moduad Co., Ltd. * * 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 2 of the License, or * (at your option) any later version. * * This program is...
package org.androidpn.server.service; import org.androidpn.server.entity.RoomMessage; /** * service room * * @author 蔡琪 * */ public interface RoomMessageService extends BaseService<RoomMessage, Long> { }
package org.androidpn.server.service.impl; import javax.annotation.Resource; import org.androidpn.server.dao.FriendDao; import org.androidpn.server.entity.Friend; import org.androidpn.server.service.FriendService; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation...
package org.androidpn.server.service.impl; import java.io.Serializable; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import org.androidpn.server.dao.BaseDao; import org.androidpn.server.service.BaseService; import org.androidpn.server.util.Filter; import org.androidpn.server.u...
package org.androidpn.server.service.impl; import java.util.List; import javax.annotation.Resource; import org.androidpn.server.dao.FriendMessageDao; import org.androidpn.server.entity.FriendMessage; import org.androidpn.server.entity.FriendMessage.FriendMessageStatus; import org.androidpn.server.service.Fr...
package org.androidpn.server.service.impl; import java.util.List; import javax.annotation.Resource; import org.androidpn.server.dao.RoleDao; import org.androidpn.server.entity.Role; import org.androidpn.server.service.RoleService; import org.springframework.stereotype.Service; import org.springframework.tr...
/* * Copyright (C) 2010 Moduad Co., Ltd. * * 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 2 of the License, or * (at your option) any later version. * * This program is...
package org.androidpn.server.service.impl; import javax.annotation.Resource; import org.androidpn.server.dao.RoomMessageDao; import org.androidpn.server.entity.RoomMessage; import org.androidpn.server.service.RoomMessageService; import org.springframework.stereotype.Service; /** * service 角色 * * @aut...
package org.androidpn.server.service.impl; import java.util.List; import javax.annotation.Resource; import org.androidpn.server.dao.FriendGroupDao; import org.androidpn.server.entity.Friend; import org.androidpn.server.entity.FriendGroup; import org.androidpn.server.service.FriendGroupService; import org.s...
package org.androidpn.server.service.impl; import java.util.List; import java.util.Set; import javax.annotation.Resource; import org.androidpn.server.dao.RoleDao; import org.androidpn.server.dao.RoomDao; import org.androidpn.server.entity.Role; import org.androidpn.server.entity.Room; import org.androidpn...
package org.androidpn.server.service; import java.util.List; import org.androidpn.server.entity.Friend; import org.androidpn.server.entity.FriendGroup; /** * service role * * @author 蔡琪 * */ public interface FriendGroupService extends BaseService<FriendGroup, Long> { /** * 通过角色ID获取该角色的好友分组信息...
package org.androidpn.server.service; import java.util.List; import org.androidpn.server.entity.Room; /** * service room * * @author 蔡琪 * */ public interface RoomService extends BaseService<Room, Long> { /** * 获取在线游戏房间集合 * * @return */ List<Room> getOnlineRooms(); /** * 创建游...
/* * Copyright (C) 2010 Moduad Co., Ltd. * * 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 2 of the License, or * (at your option) any later version. * * This pr...
/* * Copyright (C) 2010 Moduad Co., Ltd. * * 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 2 of the License, or * (at your option) any later version. * * This pr...
package org.androidpn.server.service; import java.util.List; import org.androidpn.server.entity.Role; /** * service role * * @author 蔡琪 * */ public interface RoleService extends BaseService<Role, Long> { /** * 通过nickname获取角色信息 * * @param nickname * 角色名 * @return 角色信息...
package org.androidpn.server.service; import java.io.Serializable; import java.util.List; import org.androidpn.server.util.Filter; import org.androidpn.server.util.Order; import org.androidpn.server.util.Page; import org.androidpn.server.util.Pageable; public interface BaseService<T, ID extends Serializabl...
package org.androidpn.server.service; import java.util.List; import org.androidpn.server.entity.FriendMessage; /** * service FriendMessage * * @author 蔡琪 * */ public interface FriendMessageService extends BaseService<FriendMessage, Long> { /** * 通过好友id查询发送给 该角色的好友消息 * * @param friend...
package org.androidpn.server.service; import org.androidpn.server.entity.Friend; /** * service Friend * * @author 蔡琪 * */ public interface FriendService extends BaseService<Friend, Long> { /** * 根据自己的发送者的角色ID和接收者的角色ID 获取发送者在接收者里的的好友信息 * * @param senderId * * @param receiverId ...
/* * Copyright (C) 2010 Moduad Co., Ltd. * * 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 2 of the License, or * (at your option) any later version. * * This pr...
package org.androidpn.server.util; import java.io.Serializable; import java.util.ArrayList; import java.util.List; import org.androidpn.server.util.Order.Direction; /** * util 分页 * * @author 蔡琪 * * @param <T> * 实体类 */ public class Page<T> implements Serializable { private stat...
package org.androidpn.server.util; import java.io.Serializable; import org.apache.commons.lang.builder.EqualsBuilder; import org.apache.commons.lang.builder.HashCodeBuilder; /** * util 筛选器 * * @author 蔡琪 * */ public class Filter implements Serializable { private static final long serialVersio...
package org.androidpn.server.util; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.io.Serializable; import org.apache.commons.logging.Log; import org.apache.commons.logging...
package org.androidpn.server.util; import java.io.Serializable; import org.apache.commons.lang.builder.EqualsBuilder; import org.apache.commons.lang.builder.HashCodeBuilder; /** * util 排序 * * @author 蔡琪 * */ public class Order implements Serializable { private static final long serialVersionU...
package org.androidpn.server.util; import org.androidpn.server.entity.FriendMessage.FriendMessageStatus; import org.androidpn.server.entity.FriendMessage.FriendMessageType; import org.androidpn.server.entity.Role.RoleStatus; import org.androidpn.server.entity.Room.RoomStatus; import org.androidpn.server.entity.R...
package org.androidpn.server.util; import java.io.Serializable; import java.util.ArrayList; import java.util.List; import org.androidpn.server.util.Order.Direction; import org.apache.commons.lang.builder.EqualsBuilder; import org.apache.commons.lang.builder.HashCodeBuilder; /** * util 分页信息 * * @auth...
/* * Copyright (C) 2010 Moduad Co., Ltd. * * 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 2 of the License, or * (at your option) any later version. * * This pr...
/* * Copyright (C) 2010 Moduad Co., Ltd. * * 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 2 of the License, or * (at your option) any later version. * * This pr...
/* * Copyright (C) 2010 Moduad Co., Ltd. * * 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 2 of the License, or * (at your option) any later version. * * This pr...
/* * Copyright (C) 2010 Moduad Co., Ltd. * * 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 2 of the License, or * (at your option) any later version. * * This pr...
/* * Copyright (C) 2010 Moduad Co., Ltd. * * 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 2 of the License, or * (at your option) any later version. * * This pr...
/* * Copyright (C) 2010 Moduad Co., Ltd. * * 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 2 of the License, or * (at your option) any later version. * * This pr...
/* * Copyright (C) 2010 Moduad Co., Ltd. * * 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 2 of the License, or * (at your option) any later version. * * This pr...
/* * Copyright (C) 2010 Moduad Co., Ltd. * * 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 2 of the License, or * (at your option) any later version. * * This pr...
/* * Copyright (C) 2010 Moduad Co., Ltd. * * 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 2 of the License, or * (at your option) any later version. * * This pr...
/* * Copyright (C) 2010 Moduad Co., Ltd. * * 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 2 of the License, or * (at your option) any later version. * * This pr...
/* * Copyright (C) 2010 Moduad Co., Ltd. * * 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 2 of the License, or * (at your option) any later version. * * This program is...
/* * Copyright (C) 2010 Moduad Co., Ltd. * * 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 2 of the License, or * (at your option) any later version. * * This pr...
/* * Copyright (C) 2010 Moduad Co., Ltd. * * 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 2 of the License, or * (at your option) any later version. * * This pr...
/* * Copyright (C) 2010 Moduad Co., Ltd. * * 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 2 of the License, or * (at your option) any later version. * * This pr...
package org.androidpn.server.xmpp.packet; import java.util.ArrayList; import java.util.List; import org.androidpn.server.entity.RoomMessage; import org.jivesoftware.smack.packet.IQ; import org.jivesoftware.smack.util.StringUtils; /** * packet 游戏房间消息 * * @author 蔡琪 * */ public class RoomMessageP...
package org.androidpn.server.xmpp.packet; import java.util.ArrayList; import java.util.List; import org.androidpn.server.entity.Room; import org.jivesoftware.smack.packet.IQ; import org.jivesoftware.smack.util.StringUtils; /** * packet 游戏房间 * * @author 蔡琪 * */ public class RoomPacket extends IQ...
package org.androidpn.server.xmpp.packet; import java.util.ArrayList; import java.util.List; import org.androidpn.server.entity.Friend; import org.jivesoftware.smack.util.StringUtils; import org.xmpp.packet.IQ; /** * packet friendGroup * * @author 蔡琪 * */ public class FriendPacket extends IQ { ...
package org.androidpn.server.xmpp.packet; import java.util.ArrayList; import java.util.List; import org.androidpn.server.entity.FriendGroup; import org.jivesoftware.smack.util.StringUtils; import org.xmpp.packet.IQ; /** * packet friendGroup * * @author 蔡琪 * */ public class FriendGroupPacket ext...
package org.androidpn.server.xmpp.packet; import java.util.ArrayList; import java.util.List; import org.androidpn.server.entity.FriendMessage; import org.jivesoftware.smack.util.StringUtils; import org.xmpp.packet.IQ; /** * packet 好友消息 * * @author 蔡琪 * */ public class FriendMessagePacket extend...
package org.androidpn.server.xmpp.packet; import java.util.ArrayList; import java.util.List; import org.androidpn.server.entity.Role; import org.jivesoftware.smack.util.StringUtils; import org.xmpp.packet.IQ; /** * packet role * * @author 蔡琪 * */ public class RolePacket extends IQ { /** ...
/* * Copyright (C) 2010 Moduad Co., Ltd. * * 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 2 of the License, or * (at your option) any later version. * * This pr...
/* * Copyright (C) 2010 Moduad Co., Ltd. * * 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 2 of the License, or * (at your option) any later version. * * This pr...
/* * Copyright (C) 2010 Moduad Co., Ltd. * * 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 2 of the License, or * (at your option) any later version. * * This pr...
/* * Copyright (C) 2010 Moduad Co., Ltd. * * 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 2 of the License, or * (at your option) any later version. * * This pr...
/* * Copyright (C) 2010 Moduad Co., Ltd. * * 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 2 of the License, or * (at your option) any later version. * * This pr...
package org.androidpn.server.xmpp.push; import java.util.Random; import org.androidpn.server.xmpp.session.ClientSession; import org.androidpn.server.xmpp.session.SessionManager; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.dom4j.DocumentHelper; import org.do...
package org.androidpn.server.xmpp.push; import java.util.List; import org.androidpn.server.entity.FriendMessage; import org.androidpn.server.entity.Role; import org.androidpn.server.service.FriendMessageService; import org.androidpn.server.service.RoleService; import org.androidpn.server.service.ServiceLocato...
package org.androidpn.server.xmpp.push; import org.androidpn.server.entity.Role; import org.androidpn.server.entity.Room; import org.androidpn.server.entity.User; import org.androidpn.server.xmpp.packet.RoomPacket; import org.androidpn.server.xmpp.packet.RoomPacket.Operation; import org.androidpn.server.xmpp.se...
package org.androidpn.server.xmpp.push; import org.androidpn.server.entity.Role; import org.androidpn.server.entity.Room; import org.androidpn.server.entity.RoomMessage; import org.androidpn.server.entity.User; import org.androidpn.server.xmpp.packet.RoomMessagePacket; import org.androidpn.server.xmpp.packet.Ro...
package org.androidpn.server.xmpp.push; import org.androidpn.server.entity.Role; import org.androidpn.server.entity.Room; import org.androidpn.server.entity.User; import org.androidpn.server.service.RoleService; import org.androidpn.server.service.RoomService; import org.androidpn.server.service.ServiceLocator;...
/* * Copyright (C) 2010 Moduad Co., Ltd. * * 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 2 of the License, or * (at your option) any later version. * * This pr...
/* * Copyright (C) 2010 Moduad Co., Ltd. * * 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 2 of the License, or * (at your option) any later version. * * This pr...
package org.androidpn.server.xmpp.handler; import java.util.Date; import org.androidpn.server.entity.Friend; import org.androidpn.server.entity.FriendGroup; import org.androidpn.server.entity.FriendMessage; import org.androidpn.server.entity.FriendMessage.FriendMessageStatus; import org.androidpn.server.entit...
/* * Copyright (C) 2010 Moduad Co., Ltd. * * 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 2 of the License, or * (at your option) any later version. * * This pr...
/* * Copyright (C) 2010 Moduad Co., Ltd. * * 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 2 of the License, or * (at your option) any later version. * * This pr...
/* * Copyright (C) 2010 Moduad Co., Ltd. * * 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 2 of the License, or * (at your option) any later version. * * This pr...
/* * Copyright (C) 2010 Moduad Co., Ltd. * * 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 2 of the License, or * (at your option) any later version. * * This pr...
/* * Copyright (C) 2010 Moduad Co., Ltd. * * 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 2 of the License, or * (at your option) any later version. * * This pr...
package org.androidpn.server.xmpp.handler; import java.util.Date; import java.util.List; import org.androidpn.server.entity.Friend; import org.androidpn.server.entity.FriendGroup; import org.androidpn.server.entity.Role; import org.androidpn.server.service.FriendGroupService; import org.androidpn.server.serv...
/* * Copyright (C) 2010 Moduad Co., Ltd. * * 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 2 of the License, or * (at your option) any later version. * * This pr...
/* * Copyright (C) 2010 Moduad Co., Ltd. * * 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 2 of the License, or * (at your option) any later version. * * This pr...
/* * Copyright (C) 2010 Moduad Co., Ltd. * * 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 2 of the License, or * (at your option) any later version. * * This pr...
/* * Copyright (C) 2010 Moduad Co., Ltd. * * 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 2 of the License, or * (at your option) any later version. * * This pr...
/* * Copyright (C) 2010 Moduad Co., Ltd. * * 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 2 of the License, or * (at your option) any later version. * * This pr...
/* * Copyright (C) 2010 Moduad Co., Ltd. * * 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 2 of the License, or * (at your option) any later version. * * This pr...
/* * Copyright (C) 2010 Moduad Co., Ltd. * * 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 2 of the License, or * (at your option) any later version. * * This pr...
/* * Copyright (C) 2010 Moduad Co., Ltd. * * 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 2 of the License, or * (at your option) any later version. * * This pr...
/* * Copyright (C) 2010 Moduad Co., Ltd. * * 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 2 of the License, or * (at your option) any later version. * * This program is...
/* * Copyright (C) 2010 Moduad Co., Ltd. * * 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 2 of the License, or * (at your option) any later version. * * This pr...
/* * Copyright (C) 2010 Moduad Co., Ltd. * * 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 2 of the License, or * (at your option) any later version. * * This pr...
/* * Copyright (C) 2010 Moduad Co., Ltd. * * 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 2 of the License, or * (at your option) any later version. * * This pr...
/* * Copyright (C) 2010 Moduad Co., Ltd. * * 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 2 of the License, or * (at your option) any later version. * * This pr...
/* * Copyright (C) 2010 Moduad Co., Ltd. * * 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 2 of the License, or * (at your option) any later version. * * This pr...
package org.androidpn.server.console.controller; import java.util.List; import javax.print.attribute.standard.Severity; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.androidpn.server.entity.Room; import org.androidpn.server.service.RoomService; impo...
/* * Copyright (C) 2010 Moduad Co., Ltd. * * 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 2 of the License, or * (at your option) any later version. * * This pr...
/* * Copyright (C) 2010 Moduad Co., Ltd. * * 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 2 of the License, or * (at your option) any later version. * * This pr...
/* * Copyright (C) 2010 Moduad Co., Ltd. * * 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 2 of the License, or * (at your option) any later version. * * This pr...
/* * Copyright (C) 2010 Moduad Co., Ltd. * * 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 2 of the License, or * (at your option) any later version. * * This pr...
/* * Copyright (C) 2010 Moduad Co., Ltd. * * 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 2 of the License, or * (at your option) any later version. * * This pr...
package org.androidpn.server.dao; import org.androidpn.server.entity.RoomMessage; /** * Dao roomMessage * * @author 蔡琪 * */ public interface RoomMessageDao extends BaseDao<RoomMessage, Long> { }
package org.androidpn.server.dao.impl; import java.util.List; import javax.persistence.TypedQuery; import org.androidpn.server.dao.UserDao; import org.androidpn.server.entity.User; import org.androidpn.server.service.UserNotFoundException; import org.springframework.stereotype.Repository; /** * dao use...
package org.androidpn.server.dao.impl; import java.util.List; import javax.persistence.TypedQuery; import org.androidpn.server.dao.FriendDao; import org.androidpn.server.entity.Friend; import org.springframework.stereotype.Repository; /** * Dao Friend * * @author 蔡琪 * */ @Repository("friendDa...
package org.androidpn.server.dao.impl; import java.util.List; import javax.persistence.NoResultException; import org.androidpn.server.dao.RoleDao; import org.androidpn.server.entity.Role; import org.springframework.stereotype.Repository; /** * Dao 角色 * * @author 蔡琪 * */ @Repository("roleDao")...
package org.androidpn.server.dao.impl; import java.util.List; import javax.persistence.TypedQuery; import org.androidpn.server.dao.FriendMessageDao; import org.androidpn.server.entity.Friend; import org.androidpn.server.entity.FriendMessage; import org.androidpn.server.entity.FriendMessage.FriendMessageStat...
package org.androidpn.server.dao.impl; import org.androidpn.server.dao.RoomMessageDao; import org.androidpn.server.entity.RoomMessage; import org.springframework.stereotype.Repository; /** * Dao room * * @author 蔡琪 * */ @Repository("roomMessageDao") public class RoomMessageDaoImpl extends BaseDaoI...
package org.androidpn.server.dao.impl; import java.util.List; import org.androidpn.server.dao.RoomDao; import org.androidpn.server.entity.Room; import org.androidpn.server.entity.Room.RoomStatus; import org.springframework.stereotype.Repository; /** * Dao room * * @author 蔡琪 * */ @Repository("r...
package org.androidpn.server.dao.impl; import java.io.Serializable; import java.lang.reflect.ParameterizedType; import java.lang.reflect.Type; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import javax.persistence.EntityManager; import javax.persistence.FlushModeType; import j...
package org.androidpn.server.dao.impl; import java.util.List; import javax.persistence.TypedQuery; import org.androidpn.server.dao.FriendGroupDao; import org.androidpn.server.entity.Friend; import org.androidpn.server.entity.FriendGroup; import org.springframework.stereotype.Repository; /** * Dao 角色 ...
package org.androidpn.server.dao; import java.util.List; import org.androidpn.server.entity.Friend; import org.androidpn.server.entity.FriendGroup; /** * Dao 好友分组 * * @author 蔡琪 * */ public interface FriendGroupDao extends BaseDao<FriendGroup, Long> { /** * 通过角色ID获取该角色的好友分组信息 * * @par...
package org.androidpn.server.dao; import org.androidpn.server.entity.Friend; /** * Dao Friend * * @author 蔡琪 * */ public interface FriendDao extends BaseDao<Friend, Long> { /** * 根据自己的发送者的角色ID和接收者的角色ID 获取发送者在接收者里的的好友信息 * * @param senderId * * @param receiverId * @return */ ...
package org.androidpn.server.dao; import java.util.List; import org.androidpn.server.entity.Role; /** * Dao 角色 * * @author 蔡琪 * */ public interface RoleDao extends BaseDao<Role, Long> { /** * 通过nickname获取角色信息 * * @param nickname * 角色名 * @return 角色信息 */ Role getRol...
package org.androidpn.server.dao; import java.util.List; import org.androidpn.server.entity.Room; /** * Dao room * * @author 蔡琪 * */ public interface RoomDao extends BaseDao<Room, Long> { /** * 获取在线游戏房间集合 * * @return */ List<Room> getOnlineRooms(); }
package org.androidpn.server.dao; import java.io.Serializable; import java.util.List; import javax.persistence.LockModeType; import org.androidpn.server.util.Filter; import org.androidpn.server.util.Order; import org.androidpn.server.util.Page; import org.androidpn.server.util.Pageable; /** * Dao 基类 ...