public InsertGeneratedIdentifierDelegate getInsertGeneratedIdentifierDelegate( PostInsertIdentityPersister persister, Dialect dialect, boolean isGetGeneratedKeysEnabled) throws HibernateException { if (isGetGeneratedKeysEnabled) { return new PortofinoGetGeneratedKeysDelegate(persister, dialect); } else if (dialect.supportsInsertSelectIdentity()) { return new InsertSelectDelegate(persister, dialect); } else { return new BasicDelegate(persister, dialect); } }
public AbstractReturningDelegate(PostInsertIdentityPersister persister) { this.persister = persister; }
protected PostInsertIdentityPersister getPersister() { return persister; }
protected AbstractSelectingDelegate(PostInsertIdentityPersister persister) { this.persister = persister; }
public PortofinoGetGeneratedKeysDelegate(PostInsertIdentityPersister persister, Dialect dialect) { super(persister, dialect); this.persister = persister; this.dialect = dialect; }