Tutorial66.com
@Share Application Development Skill.



Tutorial is tutorial...66 is My Country Code Up to 10 Years EXP for Application Development Role in Thailand.
collapse collapse

Knowledge Search



Tutorial Category



xxHibernate Transaction with Non-managed and JTA

May 15, 2012, 05:37:00 AM by Admin | Views: 26 | Comments: 0

When you action with database table transaction manage is an importance thing.
Hibernate can manage transaction in begin and commit block with Example Code

Hibernate manage transaction with Non managed
[code]
Session session = factory.openSession();
Transaction ...

xxPL SQL Read file How To Read Text Files Using Oracle PL SQL

May 15, 2012, 05:20:50 AM by Admin | Views: 26 | Comments: 0

You can coding PL SQL to read text file in disk with this example

Example Code for using PL SQL to Read text file
[code]

DECLARE
  file UTL_FILE.FILE_TYPE;
  str VARCHAR2(200);
  cnum number:=0;
BEGIN
   file := UTL_FILE.FOPEN('c:\temp','tes...

xxHibernate Replicating object in different data source

May 15, 2012, 04:48:43 AM by Admin | Views: 17 | Comments: 0

In Hibernate you can replicating object between two different data source
with session.replicate() method  for example

Example code for Hibernate Replicating object in different data source
[code]

//get Session from data source 1
Session session1 = factor...

xxUsing Session.flush() in Hibernate for persistent objects

May 15, 2012, 03:45:55 AM by Admin | Views: 25 | Comments: 0

In Hibernate you can use  flush() method in Session for persistent objects
with example

Example code to using session.flush() in Hibernate
[code]

Student std = (Student) sess.load( Student.class, "10001" );
std.setFname("New First Name");
sess.flush(...

xxJava TreeMap Sorting Data in Map with TreeMap

May 15, 2012, 03:35:22 AM by Admin | Views: 21 | Comments: 0

In java when you use data in HashMap or Hashtable and iterate it with key or value
out put is random buy when you using TreeMap out put is sorting for example

Example Code for HashMap
[code]

      java.util.HashMap hh =new java.util.HashMap();
      for(int i=0;i<...

Pages: [1]

Tutorial for Application Development update




* Developer Zone

Welcome to developer zone for Web Application development Base on Java , PHP ,and other tools

SimplePortal 2.3.3 © 2008-2010, SimplePortal