/** * Constructor; supply delegate. */ public GeneratorImpl(Seq seq, String name, StoreContext ctx, ClassMetaData meta) { _seq = new DelegatingSeq(seq, PersistenceExceptions.TRANSLATOR); _name = name; _ctx = ctx; _meta = meta; }
public void allocate(int additional) { _seq.allocate(additional, _ctx, _meta); }
public Object current() { return _seq.current(_ctx, _meta); }
public Object current(StoreContext ctx, ClassMetaData meta) { try { return _seq.current(ctx, meta); } catch (RuntimeException re) { throw translate(re); } }
/** * Return the native delegate. */ public Seq getInnermostDelegate() { return (_del == null) ? _seq : _del.getInnermostDelegate(); }
public boolean equals(Object other) { if (other == this) return true; if (!(other instanceof GeneratorImpl)) return false; return _seq.equals(((GeneratorImpl) other)._seq); } }
/** * Delegate. */ public Seq getDelegate() { return _seq.getDelegate(); }
public Object next() { return _seq.next(_ctx, _meta); }
public int hashCode() { return ((_seq == null) ? 0 : _seq.hashCode()); }
public Object next(StoreContext ctx, ClassMetaData meta) { try { return _seq.next(ctx, meta); } catch (RuntimeException re) { throw translate(re); } }
/** * Return the native delegate. */ public Seq getInnermostDelegate() { return (_del == null) ? _seq : _del.getInnermostDelegate(); }
public boolean equals(Object other) { if (other == this) return true; if ((other == null) || (other.getClass() != this.getClass())) return false; if (_seq == null) return false; return _seq.equals(((GeneratorImpl) other)._seq); } }
/** * Delegate. */ public Seq getDelegate() { return _seq.getDelegate(); }
public Object next() { return _seq.next(_ctx, _meta); }
public int hashCode() { return ((_seq == null) ? 0 : _seq.hashCode()); }
public void close() { try { _seq.close(); } catch (RuntimeException re) { throw translate(re); } } }
/** * Return the native delegate. */ public Seq getInnermostDelegate() { return (_del == null) ? _seq : _del.getInnermostDelegate(); }
/** * Constructor; supply delegate. */ public GeneratorImpl(Seq seq, String name, StoreContext ctx, ClassMetaData meta) { _seq = new DelegatingSeq(seq, PersistenceExceptions.TRANSLATOR); _name = name; _ctx = ctx; _meta = meta; }
public boolean equals(Object other) { if (other == this) return true; if ((other == null) || (other.getClass() != this.getClass())) return false; if (_seq == null) return false; return _seq.equals(((GeneratorImpl) other)._seq); } }
/** * Delegate. */ public Seq getDelegate() { return _seq.getDelegate(); }