Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-04

oracle.javatools.db
Class SchemaObjectIterator

java.lang.Object
  extended by oracle.javatools.db.SchemaObjectIterator
All Implemented Interfaces:
java.util.Iterator<SchemaObject>

public class SchemaObjectIterator
extends java.lang.Object
implements java.util.Iterator<SchemaObject>

An Iterator over all the SchemaObjects in a provider, or set of providers. Can optionally restrict the types of object to iterate over. This iterator is not synchronized, only use on one thread.

Since:
11

Constructor Summary
SchemaObjectIterator(DBObjectProvider... pros)
          Creates a new Iterator over the SchemaObjects in the given providers.
SchemaObjectIterator(DBObjectProvider pro)
          Creates a new Iterator over the SchemaObjects in the given provider.
SchemaObjectIterator(java.util.List<? extends DBObjectProvider> pros)
          Creates a new Iterator over the SchemaObjects in the given providers.
 
Method Summary
 boolean hasNext()
          Tests if there is another object in this iterator (i.e.
 SchemaObject next()
          Gets the next object from this iterator.
 void remove()
          Not supported by this Iterator.
 void setTypes(java.lang.String... types)
          Restricts the iterator to only the given object types.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchemaObjectIterator

public SchemaObjectIterator(java.util.List<? extends DBObjectProvider> pros)
Creates a new Iterator over the SchemaObjects in the given providers.


SchemaObjectIterator

public SchemaObjectIterator(DBObjectProvider... pros)
Creates a new Iterator over the SchemaObjects in the given providers.


SchemaObjectIterator

public SchemaObjectIterator(DBObjectProvider pro)
Creates a new Iterator over the SchemaObjects in the given provider.

Method Detail

setTypes

public void setTypes(java.lang.String... types)
Restricts the iterator to only the given object types.


hasNext

public boolean hasNext()
Tests if there is another object in this iterator (i.e. if next() will succeed).

Specified by:
hasNext in interface java.util.Iterator<SchemaObject>

remove

public void remove()
Not supported by this Iterator.

Specified by:
remove in interface java.util.Iterator<SchemaObject>

next

public SchemaObject next()
Gets the next object from this iterator. Only use after checking there is an object using hasNext().

Specified by:
next in interface java.util.Iterator<SchemaObject>

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-04

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