File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes Is there a way to determine 'UNIQUE' constraints? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Is there a way to determine Watch "Is there a way to determine New topic
Author

Is there a way to determine 'UNIQUE' constraints?

nico dotti
Ranch Hand

Joined: Oct 09, 2007
Posts: 124
I'm so close to getting everything I need from metadata to dynamically create a build.sql scxript, but I don't see a way to get UNIQUE constraints (not PK's or FK's though they should be unique I actually mean UNIQUE sql constraint). Looking for something like:

resultSetMetaData.isUnique(column)

Any suggestion? Thanks all.
 
jQuery in Action, 2nd edition
 
subject: Is there a way to determine 'UNIQUE' constraints?