hezhou_0521的博客
hezhou_0521 · 共 47 篇文章
java 回调 广义上的回调其实是一种设计模式
public interface IFilterMethod { List<UserModel> doCallFilter(UserModel userModel); } public class UserModel implements Serializable { /** * */ private static final long serialVersionUID = 1L; private String userName; private String password; private String address; private String type; private Str…
2013-08-21 09:51 · java · 评论(0)
oracle schema
我们先来看一下他们的定义: A schema is a collection of database objects (used by a user.). Schema objects are the logical structures that directly refer to the database’s data. A user is a name defined in the database that can connect to and access objects. Schemas and users help database administrators manage …
2013-08-21 09:20 · 数据库 · 评论(0)
oracle 高级查询
7、高级查询 7.1:UNION ALL:返回查询检索出的所有行,包括重复的行 7.2:UNION:返回查询检索出的所有非重复行。 7.3:INTERSECT:返回查询检查出来的共有行。 7.4:MINUS:返回将第二个查询检索出的行从第一个查询检索出的行中减去之后剩余的行。 7.5:GROUP BY 之ROLLUP,可以为每个分组返回小计记录以及为所有分组返回总计记录。 eg: select divid,sum(salary) from employee group by divid order by divid; DIV SUM(SALARY) ---- ---------- bus 1…
2011-11-16 22:28 · 数据库 · 评论(0)
Oracle 连接查询,日期,时间
1、oracle append有什么作用? insert /*+append*/ into table1 select * from table2 在使用了append选项以后,insert数据会直接加到表的最后面,而不会在表的空闲块中插入数据。 使用append会增加数据插入的速度。 /*+APPEND*/的作用是在表的高水位上分配空间,不再使用表的extent中的空余空间 append 属于direct insert,归档模式下append+table nologging会大量减少日志,非归档模式append会大量减少日志,append方式插入只会产生很少的undo 不去寻找 freel…
2011-11-15 21:37 · 数据库 · 评论(0)
java回调,js回调
public interface CallBack { //public String doThis2(String name,String password); public void doThis(String...strings); } public class HellBack { /* public String hechuan(String name,String password,CallBack callBack) { return callBack.doThis2(name, password); } public static void main(String[] arg…
2011-03-23 14:48 · java · 评论(0)
android中读取properties文件
java中经常用到properties文件,然后通过使用Properties类来解析,这里不再陈述使用properties文件的好处,主要探讨如何在android中使用properties文件! 方法一:因为最终是通过流文件来进行properties文件读取的,所以很自然,我们想到要将文件放入到assets文件夹或者raw文件夹中了。 例如,我们这里有一个文件——>test.properties,如果放入了assets文件夹中,可以如下打开 Properties pro = new Properties(); InputStream is = context.getAssets().open…
2010-12-06 13:44 · android · 评论(0)
url android
http://www.cnblogs.com/qq419524837/archive/2009/11/16/1603583.html 中国现阶段的主要矛盾是人民群众日益增长的智商和权钱主义们不断下降的道德之间的矛盾 开复:用胸怀接受不能改变的事”,拥抱变化 http://hackbaby.iteye.com/blog/715237 Android_Demo 附源码,值得学习 http://blog.csdn.net/hellogv 张国威 编程狂人 android Android SDK范例大全.txt Android SDK范例大全 2-10源代码
2010-11-19 18:03 · android · 评论(0)
ad_left.jsp
<title>管理页面</title> <script src="js/prototype.lite.js" type="text/javascript"></script> <script src="js/moo.fx.js" type="text/javascript"></script> <script src="js/moo.fx.pack.js" type="text/javascript"></script> <style> body { font:12px Arial, Helvetica, sans-serif; color: #000; background-color: …
2010-11-18 19:19 · java · 评论(0)
MessageTypeDao
package com.cx.lzf.mofan.dao; import java.util.List; import com.cx.lzf.mofan.domain.MessageType; public interface MessageTypeDao { public int deleteMessageTypeById(int id) throws Exception; public int editMessageTypeById(MessageType messageType) throws Exception; public void addMessageType(MessageT…
2010-11-18 18:55 · java · 评论(0)
ConnDataBase
package com.cx.lzf.mofan.common; import java.io.IOException; import java.io.Reader; import com.ibatis.common.resources.Resources; import com.ibatis.sqlmap.client.SqlMapClient; import com.ibatis.sqlmap.client.SqlMapClientBuilder; public class ConnDataBase { private static SqlMapClient sqlMapper; pub…
2010-11-18 18:39 · java · 评论(0)
JAVA泛型? T K V E等代表的意思
平时看java源代码的时候,如果碰到泛型的话,我想? T K V E这些是经常出现的,但是有时想不起来代表什么意思,今天整理下: ? 表示不确定的java类型。 T 表示java类型。 K V 分别代表java键值中的Key Value。 E 代表Element。 Object跟这些东西代表的java类型有啥区别呢? Object是所有类的根类,是具体的一个类,使用的时候可能是需要类型强制转换的,但是用T ?等这些的话,在实际用之前类型就已经确定了,不需要强制转换。
2010-11-16 20:21 · java · 评论(0)
判断两整形数字大小,不用判断语句
public class MaxMin { static int max = 0 ; public static void main(String[] args) throws InterruptedException { MaxMin m = new MaxMin(); int a = m.max(9, 10); System.out.println("最大:"+a); } public int max(int a , int b ) throws InterruptedException{ new MyThread(a,this).start(); new MyThread(b,this…
2010-11-12 10:51 · java · 评论(0)