<$BlogRSDUrl$>

Monday, September 05, 2005

Tambahan Java Lagi

Building J2EE Projects with Maven.

An Introduction To Ajax. Menggunakan DWR.

Concurrency: Understanding the Value of Read-Write Locks.

Jakarta Commons Net.

AspectJ lead Adrian Colyer goes to Interface21 (Spring) from IBM.


Tambahan Iraq

August10 th,2005
Mosul, Iraq

A pregnant, 40 years old Iraqi woman was shot by US military on August10 th, 2005in the city of Mosul, northern Iraq, while in front of her house. The woman, who was in her32 nd week of pregnancy, was hit in her abdomen and collapsed immediately. As usual, US troops looked carelessly and walked away, not offering any help or medical care.
Bystanders then took the woman to the ER at the Republican Hospital in Mosul. The ER medical team performed a C-section in an attempt to save the fetus, but he was dead as the bullet had penetrated his chest and exited from his back.






Tak sedar2 lagi ke kita ni...


Tambahan America dan Ekonomi

Why the World Loves America's Deficits. Menarik artikel ini. Main website.

Oil for dollars, and dollars for US deficit. Artikel ini pun menarik. Cuba la baca kedua2 artikel ini.

Joseph E. Stiglitz.
The Roaring Nineties by Joseph Stiglitz.
Blowing the whistle on Dubyanomics.
Stiglitz: time to snuff the IMF?.
Nobel Prize Winner Joseph Stiglitz Speaks On Globalization.

Bye, Bye Bye Boeing Bye Bye.

Beli emas, beli emas, beli emas... Ekonomi US tak akan dpt bertahan dgn lama. Bila ekonomi US hancusss, ekonomi dunia hancusss. Wang kertas mungkin jatuh nilai dgn teruknya...


Tambahan Java

InfoGlue CMS/Portal 2.0 Final Released. Website InfoGlue. Lagi CMS sw. Banyak betul sw2 cms ini.

Getting Started With JasperReports. Using JasperReports with Hibernate. Pesaing jasperreport iaitu BIRT.

Artima Article: "Myths of Memory Management".

Collections: Understand the Power of ConcurrentMap.

Spring: A Quick Journey Through Spring AOP.

NetBeans 5.0 (yes, 5.0) does indeed support Struts. Dptkan developer build kat sini.


Acegi

Reference Documentation.
Securing Your Java Applications - Acegi Security Style.
acegi : portable, independent and rich webapp security.
Java - Acegi Security - Simple Example - V2 and V2 + Kerberos.
JUnit testing with Acegi Security.


Bahan2 bacaan menarik

AR-RaheeQ Al-Makhtum (THE SEALED NECTAR)- Memoirs of the Noble Prophet (S.A.W).

Al-Sunnah Islamic Page.

Stories of the Prophets & More.

The Bible Led Me to Islam.


Macam2

Hibernate Reference Documentation.

The AspectJTM 5 Development Kit Developer's Notebook.

Decorating with dynamic proxies. Apa dia dynamix proxies dlm Java?

Jeceira 0.1.0, Java Content Repository implementation, released. Website Jeceira.

Tim Bray, 'Just Enough JXTA'. Artikelnya.


x2

Perlahan2, semakin banyak helper method dimasukkan ke dlm DM yg dijana oleh x2. Utk class Orang yg punya lebih kurang 12 property, PersonDM yg dijana dah lebih 9,000 loc, di mana ada, errr, rasanya lebih 100 methods utk insert, find dan delete. Kebanyakkannya ialah method utk find. Itu pun, masih banyak lagi keupayaan hibernate yg belum dimasukkan ke dlm DM ni. Mau cecah 12,000 loc ni.

Besaunya...

Comments:
Mak aih! Satu object guna sampai 9000 loc? Fuiyoo, besar tu nanti dia punya class file..

Object DM En Hamdi ni byk pakai explicit interface (betul ke nama dia ni) kan? mcm ada findByName, findByIC kan? sebab tu jadi besar?
 
Yup. Lebih 9000 loc dan lebih 200 methods. Saya rancang nak masukkan lebih banyak ke dlm class itu sendiri dgn men'declare'kannya static. Jadi, walaupun saiznya besar, tapi ia hanya one time semasa class loader load class tersebut. Semua object yg dihasilkan dpd class tu tak la besar sangat krn sebhgn code tu berada pada class dan bukan pada object.

Utk satu property jenis String spt 'name', 36 method findBy* dihasilkan. Dan rasanya, more to come...
 
36 method tu ialah:
public static List findByNameObj(String name)
public static List findByNameObj(String name, int firstResult, int maxResult)
public static List findByNameObj(String name, Order order)
public static List findByNameObj(String name, Order[] order)
public static List findByNameObj(String name, Order order, int firstResult, int maxResult)
public static List findByNameObj(String name, Order[] order, int firstResult, int maxResult)
public static List findByNameObj(String[] name)
public static List findByNameObj(String[] name, int firstResult, int maxResult)
public static List findByNameObj(String[] name, Order order)
public static List findByNameObj(String[] name, Order[] order)
public static List findByNameObj(String[] name, Order order, int firstResult, int maxResult)
public static List findByNameObj(String[] name, Order[] order, int firstResult, int maxResult)
public List findByName(String name)
public List findByName(String[] name)
public List findByName(String name, Order order)
public List findByName(String[] name, Order order)
public List findByName(String name, Order[] order)
public List findByName(String[] name, Order[] order)
public List findByName(String name, int firstResult, int maxResult)
public List findByName(String[] name, int firstResult, int maxResult)
public List findByName(String name, Order order, int firstResult, int maxResult)
public List findByName(String[] name, Order order, int firstResult, int maxResult)
public List findByName(String name, Order[] order, int firstResult, int maxResult)
public List findByName(String[] name, Order[] order, int firstResult, int maxResult)
public static List findByNameLikeObj(String name)
public static List findByNameLikeObj(String name, int firstResult, int maxResult)
public static List findByNameLikeObj(String name, Order order)
public static List findByNameLikeObj(String name, Order order, int firstResult, int maxResult)
public static List findByNameLikeObj(String name, Order[] order)
public static List findByNameLikeObj(String name, Order[] order, int firstResult, int maxResult)
public List findByNameLike(String name)
public List findByNameLike(String name, int firstResult, int maxResult)
public List findByNameLike(String name, Order order)
public List findByNameLike(String name, Order order, int firstResult, int maxResult)
public List findByNameLike(String name, Order[] order)
public List findByNameLike(String name, Order[] order, int firstResult, int maxResult)
 
Post a Comment

This page is powered by Blogger. Isn't yours?