另外,还有最新的关于日期API的规范:JSR-310。官方的描述叫做“This JSR will provide a new and improved date and time API for Java.”,JSR-310将解决许多现有Java日期API的设计问题。比如Date和Calendar目前是可变对象,你可以随意改变对象的日期或者时间,而Joda就将DateTime对象设计成String对象一样地不可变,能够带来线程安全等等的好处,因此这一点也将被JSR-310采纳。
function(obj){// get val and desc from a pop up pagevaropt="<option value='"+val+"'>"+desc+"</option>";$(obj).append(opt);$(obj).val(val);// alert("test");// ...}
function(obj){// get val and desc from a pop up pagevaropt="<option selected value='"+val+"'>"+desc+"</option>";$(obj).append(opt);// alert("test");// ...}
The element also allows an optional attribute commitRequired that can be true or
false. Normally iBATIS will not commit transactions unless an insert, update, or delete operation has been
performed. This is true even if you explicitly call the commitTransaction() method. This behavior
creates problems in some cases. If you want iBATIS to always commit transactions, even if no insert,
update, or delete operation has been performed, then set the value of the commitRequired attribute to true.
Examples of where this attribute is useful include:
If you call a stored procedures that updates data as well as returning rows. In that case you would
call the procedure with the queryForList() operation – so iBATIS would not normally commit the
transaction. But then the updates would be rolled back.
In a WebSphere environment when you are using connection pooling and you use the JNDI
and the JDBC or JTA transaction manager. WebSphere requires all transactions on
pooled connections to be committed or the connection will not be returned to the pool.
Note that the commitRequired attribute has no effect when using the EXTERNAL transaction manager.