Java 类org.hibernate.id.insert.InsertGeneratedIdentifierDelegate 实例源码

项目:lams    文件:IdentityGenerator.java   
public InsertGeneratedIdentifierDelegate getInsertGeneratedIdentifierDelegate(
        PostInsertIdentityPersister persister,
        Dialect dialect,
        boolean isGetGeneratedKeysEnabled) throws HibernateException {
    if ( isGetGeneratedKeysEnabled ) {
        return new GetGeneratedKeysDelegate( persister, dialect );
    }
    else if ( dialect.supportsInsertSelectIdentity() ) {
        return new InsertSelectDelegate( persister, dialect );
    }
    else {
        return new BasicDelegate( persister, dialect );
    }
}
项目:cacheonix-core    文件:IdentityGenerator.java   
public InsertGeneratedIdentifierDelegate getInsertGeneratedIdentifierDelegate(
        PostInsertIdentityPersister persister,
        Dialect dialect,
        boolean isGetGeneratedKeysEnabled) throws HibernateException {
    if ( isGetGeneratedKeysEnabled ) {
        return new GetGeneratedKeysDelegate( persister, dialect );
    }
    else if ( dialect.supportsInsertSelectIdentity() ) {
        return new InsertSelectDelegate( persister, dialect );
    }
    else {
        return new BasicDelegate( persister, dialect );
    }
}
项目:Portofino    文件:PortofinoIdentityGenerator.java   
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);
    }
}
项目:lams    文件:SequenceIdentityGenerator.java   
public InsertGeneratedIdentifierDelegate getInsertGeneratedIdentifierDelegate(
        PostInsertIdentityPersister persister,
        Dialect dialect,
        boolean isGetGeneratedKeysEnabled) throws HibernateException {
    return new Delegate( persister, dialect, getSequenceName() );
}
项目:lams    文件:PostInsertIdentifierGenerator.java   
public InsertGeneratedIdentifierDelegate getInsertGeneratedIdentifierDelegate(
PostInsertIdentityPersister persister,
      Dialect dialect,
      boolean isGetGeneratedKeysEnabled) throws HibernateException;
项目:lams    文件:SelectGenerator.java   
public InsertGeneratedIdentifierDelegate getInsertGeneratedIdentifierDelegate(
        PostInsertIdentityPersister persister,
        Dialect dialect,
        boolean isGetGeneratedKeysEnabled) throws HibernateException {
    return new SelectGeneratorDelegate( persister, dialect, uniqueKeyPropertyName );
}
项目:cacheonix-core    文件:SequenceIdentityGenerator.java   
public InsertGeneratedIdentifierDelegate getInsertGeneratedIdentifierDelegate(
        PostInsertIdentityPersister persister,
        Dialect dialect,
        boolean isGetGeneratedKeysEnabled) throws HibernateException {
    return new Delegate( persister, dialect, getSequenceName() );
}
项目:cacheonix-core    文件:PostInsertIdentifierGenerator.java   
public InsertGeneratedIdentifierDelegate getInsertGeneratedIdentifierDelegate(
PostInsertIdentityPersister persister,
      Dialect dialect,
      boolean isGetGeneratedKeysEnabled) throws HibernateException;
项目:cacheonix-core    文件:SelectGenerator.java   
public InsertGeneratedIdentifierDelegate getInsertGeneratedIdentifierDelegate(
        PostInsertIdentityPersister persister,
        Dialect dialect,
        boolean isGetGeneratedKeysEnabled) throws HibernateException {
    return new SelectGeneratorDelegate( persister, dialect, uniqueKeyPropertyName );
}