Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

set null in java.sql.date

Priyanka B KJul 17 2015 — edited Jul 17 2015

Hi All,

JDev: 11.1.1.7.0

I have a java class  and creating  it as data control. In class one attribute is sql date type. on page load i need to create a row with all empty values.

And there are options like copy and clear row. If user didnt enter any data in date field am getting null pointer exception. But while adding row it is taking null as input.

List<VO> objVOlist = (List<VO>)getupdateList();

objVO.setFrDate(null);

objVOlist.add(objVO);


Can anyone tell me how to insert null/empty values in sql.date field

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 14 2015
Added on Jul 17 2015
12 comments
3,291 views