MDi JLib
1.7.4

com.microdeveloper.db.rectifier
Class ObjectValidation

java.lang.Object
  extended by com.microdeveloper.db.rectifier.ObjectValidation

public class ObjectValidation
extends Object

Provides common object validations for Oracle databases. Will only validate objects that the connection has access to.

Since:
1.6
Version:
1.0

Constructor Summary
ObjectValidation()
           
 
Method Summary
 boolean exists(Connection conn, String owner, String objectName, String objectType)
          Determines if a given object exists in the database or not.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectValidation

public ObjectValidation()
Method Detail

exists

public boolean exists(Connection conn,
                      String owner,
                      String objectName,
                      String objectType)
               throws SQLException
Determines if a given object exists in the database or not. Supports Oracle databases only.

Parameters:
conn - connection to the database
owner - owner of the object to check
objectName - name of the object
objectType - type of the object given as any valid database type (case insensitive)
Returns:
true if the object exists otherwise false
Throws:
SQLException

MDi JLib
1.7.4

Copyright©2001-2007 MicroDeveloper, Inc. All Rights Reserved.