Code example for SingletonIterator

0
	@Override 
    public Iterator getTableClosureIterator() { 
		return new SingletonIterator( getTable() ); 
	} 
	@Override 
    public Iterator getKeyClosureIterator() { 
		return new SingletonIterator( getKey() ); 
	} 
 
	@Override 
    public void addSubclass(Subclass subclass) throws MappingException { 
		super.addSubclass(subclass); 
		setPolymorphic(true); 
	} 
 
	@Override 
    public boolean isExplicitPolymorphism() { 
		return explicitPolymorphism; 
	}