com.microdeveloper.db.rectifier
Class ObjectValidation
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ObjectValidation
public ObjectValidation()
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 databaseowner
- owner of the object to checkobjectName
- name of the objectobjectType
- type of the object given as any valid database type (case insensitive)
- Returns:
- true if the object exists otherwise false
- Throws:
SQLException
Copyright©2001-2007 MicroDeveloper, Inc. All Rights Reserved.