@Override public boolean isProcedureParameterNullPassingEnabled() { return delegate.isProcedureParameterNullPassingEnabled(); }
@SuppressWarnings("UnnecessaryUnboxing") public ParameterMemento toMemento(SessionFactoryImpl sessionFactory) { final boolean initialPassNullSetting = explicitPassNullSetting != null ? explicitPassNullSetting.booleanValue() : sessionFactory.getSessionFactoryOptions().isProcedureParameterNullPassingEnabled(); return new ParameterMemento( position, name, parameterMode, type, sessionFactory.getTypeResolver().heuristicType( type.getName() ), initialPassNullSetting ); } }
super( session, null ); this.procedureName = procedureName; this.globalParameterPassNullsSetting = session.getFactory().getSessionFactoryOptions().isProcedureParameterNullPassingEnabled();
super( session, null ); this.procedureName = procedureName; this.globalParameterPassNullsSetting = session.getFactory().getSessionFactoryOptions().isProcedureParameterNullPassingEnabled();
/** * The no-returns form. * * @param session The session * @param procedureName The name of the procedure to call */ public ProcedureCallImpl(SharedSessionContractImplementor session, String procedureName) { super( session, null ); this.procedureName = procedureName; this.globalParameterPassNullsSetting = session.getFactory().getSessionFactoryOptions().isProcedureParameterNullPassingEnabled(); this.queryReturns = NO_RETURNS; this.parameterMetadata = new ProcedureParameterMetadata( this ); this.paramBindings = new ProcedureParamBindings( parameterMetadata, this ); }
super( session, null ); this.procedureName = memento.getProcedureName(); this.globalParameterPassNullsSetting = session.getFactory().getSessionFactoryOptions().isProcedureParameterNullPassingEnabled();
@Override public boolean isProcedureParameterNullPassingEnabled() { return delegate.isProcedureParameterNullPassingEnabled(); }
@SuppressWarnings({"UnnecessaryUnboxing", "unchecked"}) public ParameterMemento toMemento(SessionFactoryImplementor sessionFactory) { final boolean initialPassNullSetting = explicitPassNullSetting != null ? explicitPassNullSetting.booleanValue() : sessionFactory.getSessionFactoryOptions().isProcedureParameterNullPassingEnabled(); return session -> { if ( name != null ) { return new ProcedureParameterImpl( name, parameterMode, type, null, initialPassNullSetting ); } else { return new ProcedureParameterImpl( position, parameterMode, type, null, initialPassNullSetting ); } }; } }
@Override @SuppressWarnings("unchecked") public ParameterMemento resolve(SessionFactoryImplementor factory) { return session -> new ProcedureParameterImpl( label, mode, javaType, factory.getTypeConfiguration().getBasicTypeRegistry().getBasicType( javaType ), factory.getSessionFactoryOptions().isProcedureParameterNullPassingEnabled() ); } };
@Override @SuppressWarnings("unchecked") public ParameterMemento resolve(SessionFactoryImplementor factory) { return session -> new ProcedureParameterImpl( name, mode, javaType, factory.getTypeConfiguration().getBasicTypeRegistry().getBasicType( javaType ), factory.getSessionFactoryOptions().isProcedureParameterNullPassingEnabled() ); } };
@Override @SuppressWarnings("unchecked") public QueryParameter toQueryParameter(SharedSessionContractImplementor session) { if ( getName() != null ) { return new ProcedureParameterImpl( getName(), getMode(), javaType, getHibernateType(), session.getFactory().getSessionFactoryOptions().isProcedureParameterNullPassingEnabled() ); } else { return new ProcedureParameterImpl( getPosition(), getMode(), javaType, getHibernateType(), session.getFactory().getSessionFactoryOptions().isProcedureParameterNullPassingEnabled() ); } } };