Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!

Yudi Ono

Greenhorn
+ Follow
since Aug 24, 2008
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Yudi Ono

thank you paul for the quick reply.

yes you are correct paul..java.sql.ResultSet is what i mean.

i have a result set like this.


could you please give me the example code?

thanks and regards


yudi
hi.

how to store recordset result into array?


thanks

regards

yudi




hi i'am new to hibernate
when i compile the program the result is this :

[root@server-area2 Software]# java -jar replikasi.jar
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/log4j/Logger
at Replikasi.MainTarikAction.<clinit>(MainTarikAction.java:24)
at Replikasi.MainAction.main(MainAction.java:17)
Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Logger
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336)
... 2 more


what could be wrong?

i already put log4j-1.2.15 in eclipse lib classpath, when i ran the compiler in eclipse, it seems to be fine, but when i run it under linux
the error came up.

thanks

regards
hi, i'am new to hibernate
when i compile the program the result is this :

[root@server-area2 Software]# java -jar replikasi.jar
Exception in thread "main" java.lang.NoClassDefFoundError: org/hibernate/HibernateException
at org.replikasi.tebarpesona.MainAction.main(MainAction.java:21)
Caused by: java.lang.ClassNotFoundException: org.hibernate.HibernateException
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336)
... 1 more

what could be wrong?

thanks

regards
hi..
i want to retrieve column field value after i retrieve column name, but i don't know what to do..

here's my code




please help..

regards

Yudi

Yudi Ono wrote:hi..

i have a question..

is it possible to run query insert, update, delete at the same time in java?

if its possible could you please give me the example..

thanks & regards

Yudi Ono wrote:hi..

i have a question..

is it possible to run query insert, update, delete at the same time in java?

if its possible could you please give me the example..

thanks & regards

Yudi Ono wrote:hi..

i have a question..

is it possible to run query insert, update, delete at the same time in java?

if its possible could you please give me the example..

thanks & regards

@Paul, i want to perform batch operating all query(insert, delete, update) in to one transaction, the purpose is to identified which query is fall and when it's fall i just have to rollback the transaction.

@Scott

Having a batch operation of multiple different type (Select, insert, update) would create output akin to apples and oranges , as in its hard for the driver to know what to return



hi scott is it possible to change the multiple different type query and turn it into atomic query and hold them in one transaction and it also check if one query fall, it will return error, and automatically the rollback transaction run?
hi..

i have a question..

is it possible to run query insert, update, delete in the same time in java?

if its possible could you please give me the example..

thanks & regards
works perfect!


thanks rahul...you are so kind
please help me write the following sub query in hibernate.
i ran the following subquery in MYSQL it works perfect in MYSQL


select * from mst_bank, (select udate from util_rep where id = 1) A
where mban_date_upd >= udate


MstBank is the class for mst_bank table,
UtilRep is the class for util_rep table.


thanks

regards