Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.3.0)

E17493-04


oracle.jdeveloper.offlinedb
Class OfflineDBValidationManager

java.lang.Object
  extended by oracle.jdeveloper.offlinedb.OfflineDBValidationManager


public class OfflineDBValidationManager
extends java.lang.Object

Manager that can be used to extend the offline databases's validation logic. The registration mechanisms are deprecated in favour of the offline database's extension xml hook. For example to register a property validator for "MyExtraProperty" against only tables:

 <offline-database-hook xmlns="http://xmlns.oracle.com/ide/db/extension">
   <property-validators>
     <property-validator>
       <property>properties/MyExtraProperty</property>
       <validator-class>oracle.example.offlinedb.MyExtraPropertyValidator</validator-class>
       <object-type>TABLE</object-type>
     </property-validator>
   </property-validators>
 </offline-database-hook>
 
Since:
11

Nested Class Summary
static interface OfflineDBValidationManager.Validator
          Interface to be implemented for any class wishing to be registered to provide extra validation in the offlinedb.

 

Method Summary
static void registerExtraValidator(java.lang.String property, java.lang.String type, OfflineDBValidationManager.Validator v)
          Deprecated. use extension.xml instead
static void unregisterExtraValidator(java.lang.String property, java.lang.String type, OfflineDBValidationManager.Validator v)
          Deprecated. 

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Method Detail

registerExtraValidator

@Deprecated
public static void registerExtraValidator(java.lang.String property,
                                                     java.lang.String type,
                                                     OfflineDBValidationManager.Validator v)
Deprecated. use extension.xml instead
Registers a validator to include validation logic in an offline database. The registered validator will be called to valid objects in every offline database.
Parameters:
property - the property name (or path) that the validator is being registered against
type - the object type that the validator is being registered against, or null to register for all object types.
v - the validator being registered.

unregisterExtraValidator

@Deprecated
public static void unregisterExtraValidator(java.lang.String property,
                                                       java.lang.String type,
                                                       OfflineDBValidationManager.Validator v)
Deprecated. 
Unregisters the given validator from the given object type.
Parameters:
property - the property name (or path) that the validator is registered against
type - the type the validator is registered against, or null if it is registered for all objects.
v - the validator to unregister.

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.3.0)

E17493-04


Copyright © 1997, 2012, Oracle. All rights reserved.