摘要
Reflection 是Java被视为动态(或准动态)语言的一个关键性质。这个机制允许程序在运行时透过Reflection APIs取得任何一个已知名称的class的内部信息,包括其modifiers(诸如public, static 等等)、superclass(例如Object)、实现之interfaces(例如Cloneable),也包括fields和methods的所有信息,并可于运行时改变fields内容或唤起methods。本文借由实例,大面积示范Reflection APIs。
关于本文:
读者基础:具备Java 语言基础。
本文适用工具:JDK1.5
...
/**
* 带参数查询
* @param querypath sql语句路径
* @param args 参数--查询条件
* @return result
* @throws BussinessException
*/
public List queryparam(String querypath,Object...args) throws BussinessException {
List list;
int i = 0;
try {
Session session = Hb ...
最近在写一个项目,我在设计表时有两个表的结构是一样的,但是另外一张表我在保存数据时可以,可是我保存另外一个表的数据时就不行了,报错如下:调用过程都是一样的,郁闷!
2007-11-12 10:56:18 org.hibernate.util.JDBCExceptionReporter logExceptions
警告: SQL Error: 1064, SQLState: 42000
2007-11-12 10:56:18 org.hibernate.util.JDBCExceptionReporter logExceptions
严重: You have an error in your S ...







评论排行榜