Example #1
0
        private TDeploymentControllerInterface InnerGetDeploymentControllerInterface <TDeploymentControllerInterface>(string uriToUse)
            where TDeploymentControllerInterface : class
        {
            string compilerPort = Settings.Get(Settings.Configs.CompilerService_Port);

            return(InnerGetDeploymentControllerInterface <TDeploymentControllerInterface>(
                       uriToUse,
                       Settings.Get(Settings.Configs.CompilerService_HostName),
                       compilerPort,
                       (RuntimePlatformUtils.IsJava() ? Settings.Get(Settings.Configs.RMI_RegistryPort) : compilerPort)
                       ));
        }
Example #2
0
        public override int ExecuteNonQueryGetIdentity(Command cmd, string idColumnName)
        {
            bool plSqlNeeded = RuntimePlatformUtils.IsJava();

            cmd.CommandText = ((plSqlNeeded ? "begin " : String.Empty) + cmd.CommandText + " RETURNING " + idColumnName.ToUpper() + " INTO @id"
                               + (plSqlNeeded ? " ;end;" : String.Empty));

            DataParameter IdParamenter = cmd.CreateOutputParameter("@id", DbType.Int32);

            cmd.ExecuteNonQuery();
            return(DataReaderUtils.SafeGet <int>(IdParamenter.Value));
        }