Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] Access to JDBC metadata

The easiest way is probably to just select from it, and catch the error.

There is an API on SchemaManager getTableInfo(), which will return the
matching tables if they exist.




Dennis Fuglsang wrote:
> 
> Is there a way, through my EclipseLink persistence layer, to check if an
> underlying database table/view exists?   SchemaManager?   Do I have access
> to a JDBC Connection?   
> 
>  
> 
> Thanks in advance,
> 
>  
> 
> Dennis Fuglsang 
> 
> 


-----
http://wiki.eclipse.org/User:James.sutherland.oracle.com James Sutherland 
http://www.eclipse.org/eclipselink/
 EclipseLink ,  http://www.oracle.com/technology/products/ias/toplink/
TopLink 
Wiki:  http://wiki.eclipse.org/EclipseLink EclipseLink , 
http://wiki.oracle.com/page/TopLink TopLink 
Forums:  http://forums.oracle.com/forums/forum.jspa?forumID=48 TopLink , 
http://www.nabble.com/EclipseLink-f26430.html EclipseLink 
Book:  http://en.wikibooks.org/wiki/Java_Persistence Java Persistence 
Blog:  http://java-persistence-performance.blogspot.com/ Java Persistence
Performance 
-- 
View this message in context: http://old.nabble.com/Access-to-JDBC-metadata-tp31786511p31801042.html
Sent from the EclipseLink - Users mailing list archive at Nabble.com.



Back to the top